Skip to content

Commit 712d8a0

Browse files
committed
Reorder npm scripts so it's simpler to read
1 parent 6d179fc commit 712d8a0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,34 @@
44
"description": "A delightful way to building a RESTful API with NodeJs & TypeScript",
55
"main": "src/app.ts",
66
"scripts": {
7-
"banner": "npm run ts-node:fast -- ./src/console/lib/banner.ts",
8-
"ts-node": "./node_modules/.bin/ts-node",
9-
"ts-node:fast": "./node_modules/.bin/ts-node -F",
7+
"setup": "yarn install && npm run banner setup && npm run db:migrate && npm run db:seed",
8+
"serve": "npm run banner serve && \"./node_modules/.bin/nodemon\" --watch src --watch .env",
9+
"build": "npm run banner build && npm run lint && npm run clean:dist && npm run transpile && npm run copy:assets",
10+
"start": "node dist/app.js",
1011
"pretest": "./node_modules/.bin/tslint -c ./tslint.json -t stylish './test/unit/**/*.ts'",
12+
"test": "npm run banner test && cross-env NODE_ENV=test \"./node_modules/.bin/jest\"",
1113
"test:pretty": "npm run test -- --verbose",
1214
"test:coverage": "npm run test -- --coverage",
1315
"pretest:black-box": "./node_modules/.bin/tslint -c ./tslint.json -t stylish './test/black-box/**/*.ts'",
1416
"test:black-box": "npm run banner test && cross-env NODE_ENV=test ./node_modules/.bin/jest ./test/black-box -i",
1517
"test:black-box:pretty": "npm run test:black-box -- --verbose",
16-
"lint": "./node_modules/.bin/tslint -c ./tslint.json -p tsconfig.json 'src/**/*.ts' --format stylish",
17-
"transpile": "./node_modules/.bin/tsc",
18-
"clean:dist": "./node_modules/.bin/trash './dist'",
19-
"copy:assets": "npm run copy:swagger && npm run copy:public",
20-
"copy:swagger": "./node_modules/.bin/copyup ./src/api/swagger.json ./dist",
21-
"copy:public": "./node_modules/.bin/copyup ./src/public/* ./dist",
2218
"db:migrate": "npm run banner migrate && \"./node_modules/.bin/knex\" migrate:latest",
2319
"db:migrate:rollback": "npm run banner rollback && \"./node_modules/.bin/knex\" migrate:rollback",
2420
"db:seed": "npm run banner seed && \"./node_modules/.bin/knex\" seed:run",
2521
"db:reset": "npm run console db:reset",
2622
"console": "npm run ts-node:fast -- ./src/console/commander.ts",
2723
"console:dev": "npm run ts-node -- ./src/console/commander.ts",
2824
"console:help": "npm run ts-node:fast -- ./src/console/commander.ts --help",
29-
"setup": "yarn install && npm run banner setup && npm run db:migrate && npm run db:seed",
30-
"serve": "npm run banner serve && \"./node_modules/.bin/nodemon\" --watch src --watch .env",
25+
"lint": "./node_modules/.bin/tslint -c ./tslint.json -p tsconfig.json 'src/**/*.ts' --format stylish",
26+
"transpile": "./node_modules/.bin/tsc",
3127
"clean": "npm run banner clean && npm run clean:dist",
32-
"test": "npm run banner test && cross-env NODE_ENV=test \"./node_modules/.bin/jest\" ./test/unit",
33-
"build": "npm run banner build && npm run lint && npm run clean:dist && npm run transpile && npm run copy:assets",
34-
"start": "node dist/app.js"
28+
"clean:dist": "./node_modules/.bin/trash './dist'",
29+
"copy:assets": "npm run copy:swagger && npm run copy:public",
30+
"copy:swagger": "./node_modules/.bin/copyup ./src/api/swagger.json ./dist",
31+
"copy:public": "./node_modules/.bin/copyup ./src/public/* ./dist",
32+
"banner": "npm run ts-node:fast -- ./src/console/lib/banner.ts",
33+
"ts-node": "./node_modules/.bin/ts-node",
34+
"ts-node:fast": "./node_modules/.bin/ts-node -F"
3535
},
3636
"repository": "git+ssh://git@github.com/w3tec/express-typescript-boilerplate.git",
3737
"engines": {

0 commit comments

Comments
 (0)