mirror of https://gitlab.com/curben/blog
chore: move hexo-server to dev-deps
This commit is contained in:
parent
9505fd3513
commit
d2d627ba27
|
@ -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,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"
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue