Skip to content

Commit d7d3824

Browse files
author
hirsch88
committed
Fix npm scripts
1 parent 9f61b10 commit d7d3824

File tree

2 files changed

+399
-37
lines changed

2 files changed

+399
-37
lines changed

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
"test:black-box:pretty": "npm run test:black-box -- --verbose",
1616
"lint": "./node_modules/.bin/tslint -c ./tslint.json -p tsconfig.json 'src/**/*.ts' --format stylish",
1717
"transpile": "./node_modules/.bin/tsc",
18-
"clean": "npm run clean:src && npm run clean:knex",
19-
"clean:src": "./node_modules/.bin/trash './src/**/*.js' './src/**/*.js.map'",
20-
"clean:knex": "./node_modules/.bin/trash knexfile.js knexfile.js.map",
18+
"clean": "npm run clean:dist",
19+
"clean:dist": "./node_modules/.bin/trash './dist'",
2120
"copy:assets": "npm run copy:swagger && npm run copy:public",
2221
"copy:swagger": "./node_modules/.bin/copyup ./src/api/swagger.json ./dist",
2322
"copy:public": "./node_modules/.bin/copyup ./src/public/* ./dist",
@@ -29,9 +28,9 @@
2928
"console:dev": "npm run ts-node -- ./src/console/commander.ts",
3029
"console:help": "npm run ts-node:fast -- ./src/console/commander.ts --help",
3130
"setup": "npm run banner setup && yarn install && npm run db:migrate && npm run db:seed",
32-
"serve": "npm run banner serve && ./node_modules/.bin/nodemon --watch 'src/**/*.ts' --watch 'src/**/*.json' --watch '.env'",
31+
"serve": "npm run banner serve && npm run clean && ./node_modules/.bin/nodemon --watch 'src/**/*.ts' --watch 'src/**/*.json' --watch '.env'",
3332
"test": "npm run banner test && NODE_ENV=test ./node_modules/.bin/jest ./test/unit",
34-
"build": "npm run banner build && npm run lint && npm run clean:dist && npm run transpile && npm run copy:assets",
33+
"build": "npm run banner build && npm run lint && npm run clean && npm run transpile && npm run copy:assets",
3534
"start": "node dist/app.js"
3635
},
3736
"repository": "git+ssh://git@github.com/w3tec/express-typescript-boilerplate.git",
@@ -130,7 +129,7 @@
130129
"ts-jest": "^20.0.6",
131130
"ts-node": "^3.1.0",
132131
"tslint": "^5.4.3",
133-
"typescript": "^2.3.4",
132+
"typescript": "^2.4.1",
134133
"winston": "^2.3.1"
135134
},
136135
"jest": {

0 commit comments

Comments
 (0)