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:
|
before_script:
|
||||||
- apk update && apk add git
|
- apk update && apk add git
|
||||||
- npm install
|
- npm install --only=prod
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
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
|
- npm run hexo
|
||||||
|
|
||||||
only:
|
only:
|
||||||
|
@ -23,7 +23,7 @@ test:
|
||||||
|
|
||||||
renovate: # Check dependency update
|
renovate: # Check dependency update
|
||||||
script:
|
script:
|
||||||
- npm install renovate
|
- npm install --only=prod renovate
|
||||||
- npm run renovate
|
- npm run renovate
|
||||||
|
|
||||||
only:
|
only:
|
||||||
|
|
1
.npmrc
1
.npmrc
|
@ -1,3 +1,2 @@
|
||||||
only=prod
|
|
||||||
package-lock=false
|
package-lock=false
|
||||||
optional=false
|
optional=false
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[context.production]
|
[context.production]
|
||||||
publish = "public"
|
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-nofollow": "curbengh/hexo-nofollow#v2.0",
|
||||||
"hexo-renderer-ejs": "hexojs/hexo-renderer-ejs",
|
"hexo-renderer-ejs": "hexojs/hexo-renderer-ejs",
|
||||||
"hexo-renderer-marked": "hexojs/hexo-renderer-marked",
|
"hexo-renderer-marked": "hexojs/hexo-renderer-marked",
|
||||||
"hexo-server": "hexojs/hexo-server",
|
|
||||||
"hexo-yam": "curbengh/hexo-yam"
|
"hexo-yam": "curbengh/hexo-yam"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"hexo-server": "hexojs/hexo-server"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue