We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c806d25 commit 9e51a4bCopy full SHA for 9e51a4b
package-scripts.js
@@ -30,9 +30,7 @@ module.exports = {
30
setup: {
31
script: series(
32
'yarn install',
33
- 'nps db.drop',
34
- 'nps db.migrate',
35
- 'nps db.seed'
+ 'nps db.setup',
36
),
37
description: 'Setup`s the development environment(yarn & database)'
38
},
@@ -146,8 +144,15 @@ module.exports = {
146
144
drop: {
147
145
script: runFast('./node_modules/typeorm/cli.js schema:drop'),
148
description: 'Drops the schema of the database'
+ },
+ 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'
155
}
-
156
157
/**
158
* These run various kinds of tests. Default is unit.
0 commit comments