|
|
@@ -7,20 +7,20 @@
|
|
|
"scripts": {
|
|
|
"format": "prettier --write \"modules/**/*.ts\"",
|
|
|
"populate": "ts-node -r tsconfig-paths/register mock-data/populate.ts",
|
|
|
- "start": "ts-node -r tsconfig-paths/register src/main.ts",
|
|
|
- "start:debug": "nodemon --config nodemon-debug.json",
|
|
|
- "prestart:prod": "rimraf dist && tsc",
|
|
|
- "start:prod": "node dist/main.js",
|
|
|
- "start:hmr": "node dist/server",
|
|
|
+ "start:dev": "nodemon --config nodemon-debug.json",
|
|
|
"lint": "tslint --type-check --project tsconfig.json -c tslint.json",
|
|
|
"test": "jest",
|
|
|
"test:watch": "jest --watch",
|
|
|
"test:cov": "jest --coverage",
|
|
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
|
|
- "webpack": "webpack --config webpack.config.js",
|
|
|
+ "build": "rimraf dist && tsc -p tsconfig.build.json && gulp",
|
|
|
"precommit": "lint-staged",
|
|
|
"postcommit": "git update-index --again"
|
|
|
},
|
|
|
+ "main": "dist/index.js",
|
|
|
+ "files": [
|
|
|
+ "dist/**/*"
|
|
|
+ ],
|
|
|
"lint-staged": {
|
|
|
"*.ts": [
|
|
|
"yarn lint --fix",
|
|
|
@@ -60,6 +60,7 @@
|
|
|
"@types/supertest": "^2.0.4",
|
|
|
"faker": "^4.1.0",
|
|
|
"graphql-request": "^1.6.0",
|
|
|
+ "gulp": "^4.0.0",
|
|
|
"husky": "^0.14.3",
|
|
|
"jest": "^21.2.1",
|
|
|
"lint-staged": "^7.1.3",
|
|
|
@@ -68,13 +69,9 @@
|
|
|
"rimraf": "^2.6.2",
|
|
|
"supertest": "^3.0.0",
|
|
|
"ts-jest": "^21.2.4",
|
|
|
- "ts-loader": "^4.1.0",
|
|
|
"ts-node": "^6.0.0",
|
|
|
"tsconfig-paths": "^3.3.1",
|
|
|
- "tslint": "5.3.2",
|
|
|
- "webpack": "^4.2.0",
|
|
|
- "webpack-cli": "^2.0.13",
|
|
|
- "webpack-node-externals": "^1.6.0"
|
|
|
+ "tslint": "5.3.2"
|
|
|
},
|
|
|
"jest": {
|
|
|
"moduleFileExtensions": [
|