Compare commits

...

2 Commits

Author SHA1 Message Date
Ivan Li
7d04d53d02 build: use pm2 serve for prod. 2021-05-03 12:03:18 +08:00
Ivan Li
e21e6fc3e2 build(dep): remove @types/date-fns. 2021-05-03 10:35:30 +08:00
3 changed files with 7 additions and 23 deletions

View File

@ -3,11 +3,16 @@ module.exports = {
{
name: "blog-bs",
script: "serve",
args: "-s build",
args: "",
watch: false,
ignore_watch: ["node_modules"],
log_date_format: "MM-DD HH:mm:ss.SSS Z",
env: {},
env: {
PM2_SERVE_PATH: "./build",
PM2_SERVE_PORT: 7135,
PM2_SERVE_SPA: "true",
PM2_SERVE_HOMEPAGE: "/index.html",
},
max_restarts: 5,
},
],

20
package-lock.json generated
View File

@ -44,7 +44,6 @@
"@graphql-codegen/typescript": "1.21.1",
"@graphql-codegen/typescript-operations": "1.17.15",
"@graphql-codegen/typescript-react-apollo": "2.2.3",
"@types/date-fns": "^2.6.0",
"@types/graphql": "^14.5.0",
"@types/ramda": "^0.27.40",
"@types/sass": "^1.16.0",
@ -3855,16 +3854,6 @@
"@babel/types": "^7.3.0"
}
},
"node_modules/@types/date-fns": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/@types/date-fns/-/date-fns-2.6.0.tgz",
"integrity": "sha1-sGLKRlYgApCb4MY6ZGftFzE2rME=",
"deprecated": "This is a stub types definition for date-fns (https://github.com/date-fns/date-fns). date-fns provides its own type definitions, so you don't need @types/date-fns installed!",
"dev": true,
"dependencies": {
"date-fns": "*"
}
},
"node_modules/@types/eslint": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.2.10.tgz",
@ -27364,15 +27353,6 @@
"@babel/types": "^7.3.0"
}
},
"@types/date-fns": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/@types/date-fns/-/date-fns-2.6.0.tgz",
"integrity": "sha1-sGLKRlYgApCb4MY6ZGftFzE2rME=",
"dev": true,
"requires": {
"date-fns": "*"
}
},
"@types/eslint": {
"version": "7.2.10",
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.2.10.tgz",

View File

@ -66,7 +66,6 @@
"@graphql-codegen/typescript": "1.21.1",
"@graphql-codegen/typescript-operations": "1.17.15",
"@graphql-codegen/typescript-react-apollo": "2.2.3",
"@types/date-fns": "^2.6.0",
"@types/graphql": "^14.5.0",
"@types/ramda": "^0.27.40",
"@types/sass": "^1.16.0",