|
4 | 4 | "description": "A delightful way to building a RESTful API with NodeJs & TypeScript", |
5 | 5 | "main": "src/app.ts", |
6 | 6 | "scripts": { |
| 7 | + "banner": "./node_modules/.bin/ts-node --fast ./src/console/lib/banner.ts", |
7 | 8 | "pretest": "./node_modules/.bin/tslint -c ./tslint.json -t stylish './test/unit/**/*.ts'", |
8 | | - "test": "NODE_ENV=test ./node_modules/.bin/jest ./test/unit", |
| 9 | + "test": "npm run banner test && NODE_ENV=test ./node_modules/.bin/jest ./test/unit", |
9 | 10 | "test:pretty": "npm run test -- --verbose", |
10 | 11 | "test:coverage": "npm run test -- --coverage", |
11 | 12 | "pretest:black-box": "./node_modules/.bin/tslint -c ./tslint.json -t stylish './test/black-box/**/*.ts'", |
12 | | - "test:black-box": "NODE_ENV=test ./node_modules/.bin/jest ./test/black-box -i", |
| 13 | + "test:black-box": "npm run banner test && NODE_ENV=test ./node_modules/.bin/jest ./test/black-box -i", |
13 | 14 | "test:black-box:pretty": "npm run test:black-box -- --verbose", |
14 | 15 | "lint": "./node_modules/.bin/tslint -c ./tslint.json -p tsconfig.json 'src/**/*.ts' --format stylish", |
15 | | - "build": "npm run lint && npm run clean:dist && npm run transpile && npm run copy:assets", |
| 16 | + "build": "npm run banner build && npm run lint && npm run clean:dist && npm run transpile && npm run copy:assets", |
16 | 17 | "transpile": "./node_modules/.bin/tsc", |
17 | 18 | "clean:dist": "./node_modules/.bin/rimraf ./dist", |
18 | 19 | "copy:assets": "npm run copy:swagger && npm run copy:public", |
19 | 20 | "copy:swagger": "./node_modules/.bin/copyup ./src/api/swagger.json ./dist", |
20 | 21 | "copy:public": "./node_modules/.bin/copyup ./src/public/* ./dist", |
21 | | - "db:migrate": "./node_modules/.bin/knex migrate:latest", |
22 | | - "db:migrate:rollback": "./node_modules/.bin/knex migrate:rollback", |
23 | | - "db:seed": "./node_modules/.bin/knex seed:run", |
| 22 | + "db:migrate": "npm run banner migrate && ./node_modules/.bin/knex migrate:latest", |
| 23 | + "db:migrate:rollback": "npm run banner rollback && ./node_modules/.bin/knex migrate:rollback", |
| 24 | + "db:seed": "npm run banner seed && ./node_modules/.bin/knex seed:run", |
24 | 25 | "db:reset": "npm run console db:reset", |
25 | 26 | "console": "./node_modules/.bin/ts-node --fast ./src/console/commander.ts", |
26 | 27 | "console:dev": "./node_modules/.bin/ts-node ./src/console/commander.ts", |
27 | 28 | "console:help": "./node_modules/.bin/ts-node --fast ./src/console/commander.ts --help", |
28 | | - "serve": "./node_modules/.bin/nodemon --watch 'src/**/*.ts' --watch 'src/**/*.json' --watch '.env'", |
| 29 | + "serve": "npm run banner serve && ./node_modules/.bin/nodemon --watch 'src/**/*.ts' --watch 'src/**/*.json' --watch '.env'", |
29 | 30 | "start": "node dist/app.js" |
30 | 31 | }, |
31 | 32 | "repository": "git+ssh://git@github.com/w3tec/express-typescript-boilerplate.git", |
|
0 commit comments