chore: move hexo-server to dev-deps

This commit is contained in:
curben 2019-08-23 12:02:37 +09:30
parent 9505fd3513
commit d2d627ba27
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
4 changed files with 7 additions and 6 deletions

View File

@ -6,11 +6,11 @@ cache: # add cache to 'node_modules' for speeding up builds
before_script:
- apk update && apk add git
- npm install
- npm install --only=prod
test:
script:
- npm install snyk && npm run snyk # Refer to "scripts" in package.json
- npm install --only=prod snyk && npm run snyk # Refer to "scripts" in package.json
- npm run hexo
only:
@ -23,7 +23,7 @@ test:
renovate: # Check dependency update
script:
- npm install renovate
- npm install --only=prod renovate
- npm run renovate
only:

1
.npmrc
View File

@ -1,3 +1,2 @@
only=prod
package-lock=false
optional=false

View File

@ -1,3 +1,3 @@
[context.production]
publish = "public"
command = "npm install snyk && npm run snyk && npm run hexo"
command = "npm install --only=prod snyk && npm run snyk && npm run hexo"

View File

@ -17,7 +17,9 @@
"hexo-nofollow": "curbengh/hexo-nofollow#v2.0",
"hexo-renderer-ejs": "hexojs/hexo-renderer-ejs",
"hexo-renderer-marked": "hexojs/hexo-renderer-marked",
"hexo-server": "hexojs/hexo-server",
"hexo-yam": "curbengh/hexo-yam"
},
"devDependencies": {
"hexo-server": "hexojs/hexo-server"
}
}