|
13 | 13 | "test:black-box:pretty": "npm run test:black-box -- --verbose", |
14 | 14 | "lint": "./node_modules/.bin/tslint -c ./tslint.json -p tsconfig.json 'src/**/*.ts' --format stylish", |
15 | 15 | "transpile": "./node_modules/.bin/tsc", |
16 | | - "clean:dist": "./node_modules/.bin/rimraf ./dist", |
| 16 | + "clean": "npm run clean:src && npm run clean:knex", |
| 17 | + "clean:src": "./node_modules/.bin/trash './src/**/*.js' './src/**/*.js.map'", |
| 18 | + "clean:knex": "./node_modules/.bin/trash knexfile.js knexfile.js.map", |
17 | 19 | "copy:assets": "npm run copy:swagger && npm run copy:public", |
18 | | - "copy:swagger": "./node_modules/.bin/copyup ./src/api/swagger.json ./dist", |
19 | | - "copy:public": "./node_modules/.bin/copyup ./src/public/* ./dist", |
| 20 | + "copy:swagger": "./node_modules/.bin/copyup ./src/api/swagger.json ./dist/src", |
| 21 | + "copy:public": "./node_modules/.bin/copyup ./src/public/* ./dist/src", |
20 | 22 | "db:migrate": "npm run banner migrate && ./node_modules/.bin/knex migrate:latest", |
21 | 23 | "db:migrate:rollback": "npm run banner rollback && ./node_modules/.bin/knex migrate:rollback", |
22 | 24 | "db:seed": "npm run banner seed && ./node_modules/.bin/knex seed:run", |
|
27 | 29 | "setup": "yarn install && npm run db:migrate && npm run db:seed", |
28 | 30 | "serve": "npm run banner serve && ./node_modules/.bin/nodemon --watch 'src/**/*.ts' --watch 'src/**/*.json' --watch '.env'", |
29 | 31 | "test": "npm run banner test && NODE_ENV=test ./node_modules/.bin/jest ./test/unit", |
30 | | - "build": "npm run banner build && npm run lint && npm run clean:dist && npm run transpile && npm run copy:assets", |
| 32 | + "build": "npm run banner build && npm run lint && npm run clean:src && npm run transpile && npm run clean:knex", |
31 | 33 | "start": "node dist/app.js" |
32 | 34 | }, |
33 | 35 | "repository": "git+ssh://git@github.com/w3tec/express-typescript-boilerplate.git", |
|
60 | 62 | "dependencies": { |
61 | 63 | "@types/bluebird": "^3.5.8", |
62 | 64 | "@types/body-parser": "^1.16.4", |
63 | | - "@types/bookshelf": "^0.9.1", |
| 65 | + "@types/bookshelf": "^0.9.3", |
64 | 66 | "@types/chalk": "^0.4.31", |
65 | 67 | "@types/commander": "^2.9.1", |
66 | 68 | "@types/cors": "^2.8.1", |
|
74 | 76 | "@types/jest": "^20.0.2", |
75 | 77 | "@types/jsonwebtoken": "^7.2.1", |
76 | 78 | "@types/knex": "0.0.52", |
77 | | - "@types/lodash": "^4.14.66", |
| 79 | + "@types/lodash": "^4.14.67", |
78 | 80 | "@types/mkdirp": "^0.3.29", |
79 | 81 | "@types/morgan": "^1.7.32", |
80 | 82 | "@types/pluralize": "^0.0.27", |
81 | 83 | "@types/reflect-metadata": "0.0.5", |
82 | | - "@types/request": "^0.0.44", |
| 84 | + "@types/request": "^0.0.45", |
83 | 85 | "@types/request-promise": "^4.1.35", |
84 | 86 | "@types/serve-favicon": "^2.2.28", |
85 | 87 | "@types/winston": "^2.3.3", |
86 | 88 | "body-parser": "^1.17.2", |
87 | 89 | "bookshelf": "^0.10.3", |
88 | 90 | "bookshelf-camelcase": "^1.1.4", |
89 | 91 | "chalk": "^1.1.3", |
90 | | - "class-validator": "^0.7.1", |
| 92 | + "class-validator": "^0.7.2", |
91 | 93 | "commander": "^2.10.0", |
92 | 94 | "compression": "^1.6.2", |
93 | 95 | "copyfiles": "^1.2.0", |
|
122 | 124 | "serve-favicon": "^2.4.3", |
123 | 125 | "swagger-jsdoc": "^1.9.5", |
124 | 126 | "swagger-ui-express": "^2.0.0", |
| 127 | + "trash-cli": "^1.4.0", |
125 | 128 | "ts-jest": "^20.0.6", |
126 | 129 | "ts-node": "^3.1.0", |
127 | 130 | "tslint": "^5.4.3", |
|
0 commit comments