|
6 | 6 | "node": ">=10.15.3"
|
7 | 7 | },
|
8 | 8 | "scripts": {
|
9 |
| - "clean": "rm -rf build/app && rm -rf dist", |
10 |
| - "build": "npm run clean && tsc && next build dist && cp -R src/static dist/static ", |
| 9 | + "clean": "rm -rf build/app && rm -rf dist && rm -rf src/.next", |
| 10 | + "build": "npm run clean && next build src && tsc --project tsconfig.server.json && cp -R src/static dist/static ", |
| 11 | + "build:2": "npm run clean && tsc && next build dist && cp -R src/static dist/static ", |
11 | 12 | "build:docker": "docker build --tag 'clintonwoo/hackernews-react-graphql:latest' --rm . && docker run -p 80:3000 --name hackernews-react-graphql clintonwoo/hackernews-react-graphql",
|
12 | 13 | "build:static-website": "NODE_ENV=production rm -rf build/static && npm install --only=dev && next build src && next export src -o build/static",
|
13 | 14 | "debug": "DEBUG=app:* npm start",
|
14 |
| - "debug:inspect": "DEBUG=app* ts-node --inspect src/server.js", |
| 15 | + "debug:inspect": "node --inspect -r ts-node/register src/server.ts", |
| 16 | + "debug:inspect-production": "NODE_ENV=production node --inspect dist/server.js", |
| 17 | + "debug:inspectr": "NODE_ENV=production DEBUG=app* ts-node --inspect dist/server.js", |
15 | 18 | "debug:all": "DEBUG=* npm start",
|
| 19 | + "lint": "tslint 'src/**/*.ts?(x)'", |
16 | 20 | "nodemon": "nodemon src/server.ts --exec ts-node",
|
17 | 21 | "prettier:check": "prettier --check",
|
18 | 22 | "prettier:format": "prettier --write",
|
19 | 23 | "test": "jest --config jest.config.js",
|
20 | 24 | "tsc:check": "tsc --noEmit",
|
21 | 25 | "start": "ts-node src/server.ts",
|
22 |
| - "start:production": "NODE_ENV=production node dist/server.js" |
| 26 | + "start:prod": "NODE_ENV=production node dist/server.js" |
23 | 27 | },
|
24 | 28 | "author": "Clinton D'Annolfo",
|
25 | 29 | "license": "Apache-2.0",
|
|
31 | 35 | ],
|
32 | 36 | "dependencies": {
|
33 | 37 | "apollo-cache-inmemory": "1.5.1",
|
34 |
| - "apollo-client": "2.5.1", |
| 38 | + "apollo-client": "2.6.0", |
35 | 39 | "apollo-fetch": "0.7.0",
|
36 | 40 | "apollo-link-http": "1.5.14",
|
37 | 41 | "apollo-server-express": "2.4.8",
|
|
48 | 52 | "graphql-tools": "4.0.4",
|
49 | 53 | "isomorphic-fetch": "2.2.1",
|
50 | 54 | "lru-cache": "5.1.1",
|
51 |
| - "next": "8.0.3", |
| 55 | + "next": "8.1.0", |
52 | 56 | "passport": "0.4.0",
|
53 | 57 | "passport-local": "1.0.0",
|
54 | 58 | "react": "16.8.6",
|
55 |
| - "react-apollo": "2.5.3", |
| 59 | + "react-apollo": "2.5.6", |
56 | 60 | "react-dom": "16.8.6",
|
57 | 61 | "react-render-html": "0.6.0",
|
58 | 62 | "url": "0.11.0"
|
59 | 63 | },
|
60 | 64 | "devDependencies": {
|
61 |
| - "@types/async": "^2.4.1", |
| 65 | + "@types/async": "2.4.1", |
62 | 66 | "@types/body-parser": "1.17.0",
|
63 | 67 | "@types/cookie": "0.3.2",
|
64 | 68 | "@types/cookie-parser": "1.4.1",
|
65 | 69 | "@types/debug": "4.1.3",
|
66 | 70 | "@types/enzyme": "3.9.1",
|
67 |
| - "@types/enzyme-adapter-react-16": "^1.0.5", |
| 71 | + "@types/enzyme-adapter-react-16": "1.0.5", |
68 | 72 | "@types/express": "4.16.1",
|
69 | 73 | "@types/express-session": "1.15.12",
|
70 | 74 | "@types/graphql": "14.2.0",
|
71 | 75 | "@types/isomorphic-fetch": "0.0.35",
|
72 |
| - "@types/jest": "^24.0.11", |
| 76 | + "@types/jest": "24.0.11", |
73 | 77 | "@types/lru-cache": "5.1.0",
|
74 |
| - "@types/node": "^11.13.0", |
| 78 | + "@types/node": "11.13.0", |
75 | 79 | "@types/passport": "1.0.0",
|
76 | 80 | "@types/passport-local": "1.0.33",
|
77 | 81 | "@types/react": "16.8.10",
|
78 | 82 | "@types/zeit__next-typescript": "0.1.2",
|
79 | 83 | "@zeit/next-css": "1.0.1",
|
80 | 84 | "@zeit/next-typescript": "1.1.1",
|
81 |
| - "babel-loader": "^8.0.4", |
82 |
| - "babel-plugin-transform-define": "^1.3.0", |
| 85 | + "babel-loader": "8.0.4", |
| 86 | + "babel-plugin-transform-define": "1.3.0", |
83 | 87 | "enzyme": "3.9.0",
|
84 | 88 | "enzyme-adapter-react-16": "1.11.2",
|
85 | 89 | "enzyme-to-json": "3.3.5",
|
86 |
| - "jest": "24.5.0", |
| 90 | + "jest": "24.7.1", |
87 | 91 | "jest-enzyme": "7.0.2",
|
88 | 92 | "mockdate": "2.0.2",
|
89 | 93 | "nodemon": "1.18.10",
|
90 | 94 | "postcss": "7.0.14",
|
91 | 95 | "postcss-preset-env": "6.6.0",
|
92 | 96 | "prettier": "1.16.4",
|
93 | 97 | "react-test-renderer": "16.8.5",
|
94 |
| - "rimraf": "^2.6.3", |
95 |
| - "ts-jest": "^24.0.2", |
| 98 | + "rimraf": "2.6.3", |
| 99 | + "ts-jest": "24.0.2", |
96 | 100 | "ts-node": "8.0.3",
|
97 |
| - "tslint": "^5.15.0", |
98 |
| - "tslint-config-airbnb": "^5.11.1", |
99 |
| - "tslint-config-prettier": "^1.18.0", |
| 101 | + "tslint": "5.15.0", |
| 102 | + "tslint-config-airbnb": "5.11.1", |
| 103 | + "tslint-config-prettier": "1.18.0", |
100 | 104 | "typescript": "3.4.1"
|
101 | 105 | },
|
102 | 106 | "nodemonConfig": {
|
|
0 commit comments