From: xangelo Date: Mon, 5 Jun 2023 14:18:39 +0000 (-0400) Subject: add command to run seed without transpiling X-Git-Tag: v0.0.1~68 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=3a461ea3faad206e07489d0e40d8a454c165ffda;p=risinglegends.git add command to run seed without transpiling `npm run seed` will run all seed data `npm run seed -- --specific=monsters.ts` will run just the monster seed --- diff --git a/data/monsters.csv b/data/monsters.csv index 58119c0..ccb9ad4 100644 --- a/data/monsters.csv +++ b/data/monsters.csv @@ -2,5 +2,1002 @@ name,level,strength,constitution,intelligence,dexterity,hp,exp,gold,helmAp,chest Giant Rat,1,3,3,3,3,5,2,1,0,0,0,0,alley_1 Slime,2,1,5,2,3,12,3,1,0,0,0,0,alley_1 Drunk Thug,3,5,4,2,5,16,5,8,0,5,0,0,alley_1 -Kobold,4,7,8,4,7,22,9,2,3,3,0,0,alley_1 -Goblin Scout,5,13,11,5,10,37,11,4,6,10,5,5,forest_1 +Sneaky Bandit,4,7,7,4,7,23,7,5,6,6,6,6,alley_1 +Kobold,5,5,8,4,7,30,9,2,5,5,0,0,alley_1 +Goblin Scout,6,13,11,5,10,37,11,4,6,10,5,5,forest_1 +Kobold Guard,7,17,16,10,10,52,14,6,10,10,10,0,forest_1 +Adept Scorceror,8,13,22,18,5,40,17,10,0,5,0,0,forest_1 +Lost Centaur,10,22,25,25,20,80,22,0,15,20,0,0,forest_1 +,,,,,,,,,,,,, +,,,,,,,,,,,,, +,,,,,,,,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,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,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, +,,,,,,0,0,,,,,, \ No newline at end of file diff --git a/package.json b/package.json index 55c29b4..55a8c50 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "up": "npx prisma migrate dev --name \"init\"", "start": "pm2 start dist/server/api.js", "build": "npx webpack && npx tsc", + "seed": "npx ts-node ./node_modules/knex/bin/cli.js seed:run", "dev:client": "npx webpack -w", "dev:server": "npx nodemon src/server/api.ts" }, diff --git a/seeds/monsters.ts b/seeds/monsters.ts index f05a89c..a327286 100644 --- a/seeds/monsters.ts +++ b/seeds/monsters.ts @@ -13,12 +13,18 @@ export async function seed(knex: Knex): Promise { const data = await read(join(__dirname, '..', 'data', 'monsters.csv'), 'utf8'); + const stats = { + created: 0, + skipped: 0 + }; + const monsters: Omit[] = []; data.split("\r\n").slice(1).forEach(line => { let pieces = line.split(','); - if(pieces.length === 14) { + if(pieces.length === 14 && pieces[0].length) { console.log('Creating', pieces[0]); + stats.created++; monsters.push({ name: pieces[0], level: parseInt(pieces[1]), @@ -38,10 +44,12 @@ export async function seed(knex: Knex): Promise { }) } else { - console.log(`Skipping`, line); + stats.skipped++; } }) // Inserts seed entries await knex("monsters").insert(monsters); + + console.log(stats); };