Skip to content

Commit 9e51a4b

Browse files
author
hirsch88
committed
✨ Add new script db.setup
1 parent c806d25 commit 9e51a4b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

package-scripts.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ module.exports = {
3030
setup: {
3131
script: series(
3232
'yarn install',
33-
'nps db.drop',
34-
'nps db.migrate',
35-
'nps db.seed'
33+
'nps db.setup',
3634
),
3735
description: 'Setup`s the development environment(yarn & database)'
3836
},
@@ -146,8 +144,15 @@ module.exports = {
146144
drop: {
147145
script: runFast('./node_modules/typeorm/cli.js schema:drop'),
148146
description: 'Drops the schema of the database'
147+
},
148+
setup: {
149+
script: series(
150+
'nps db.drop',
151+
'nps db.migrate',
152+
'nps db.seed'
153+
),
154+
description: 'Recreates the database with seeded data'
149155
}
150-
151156
},
152157
/**
153158
* These run various kinds of tests. Default is unit.

0 commit comments

Comments
 (0)