|
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": "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", |
10 | 11 | "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\"", |
11 | 13 | "test:pretty": "npm run test -- --verbose", |
12 | 14 | "test:coverage": "npm run test -- --coverage", |
13 | 15 | "pretest:black-box": "./node_modules/.bin/tslint -c ./tslint.json -t stylish './test/black-box/**/*.ts'", |
14 | 16 | "test:black-box": "npm run banner test && cross-env NODE_ENV=test ./node_modules/.bin/jest ./test/black-box -i", |
15 | 17 | "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", |
22 | 18 | "db:migrate": "npm run banner migrate && \"./node_modules/.bin/knex\" migrate:latest", |
23 | 19 | "db:migrate:rollback": "npm run banner rollback && \"./node_modules/.bin/knex\" migrate:rollback", |
24 | 20 | "db:seed": "npm run banner seed && \"./node_modules/.bin/knex\" seed:run", |
25 | 21 | "db:reset": "npm run console db:reset", |
26 | 22 | "console": "npm run ts-node:fast -- ./src/console/commander.ts", |
27 | 23 | "console:dev": "npm run ts-node -- ./src/console/commander.ts", |
28 | 24 | "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", |
31 | 27 | "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" |
35 | 35 | }, |
36 | 36 | "repository": "git+ssh://git@github.com/w3tec/express-typescript-boilerplate.git", |
37 | 37 | "engines": { |
|
0 commit comments