Browse Source

adapt CI for local npm packages

master
hoschi-it 3 years ago
parent
commit
78bff40151
  1. 14
      .gitlab-ci.yml

14
.gitlab-ci.yml

@ -1,13 +1,12 @@
image: node:latest
cache:
paths:
- /usr/local/lib/node_modules/
- /usr/local/lib/node
paths:
- node_modules
before_script:
- echo "these are the currently installed node packages "
- npm list -g --depth 0
- npm list
- npm list minify || npm install -g minify
- npm list uglify || npm install -g uglify
@ -15,11 +14,12 @@ pages:
stage: deploy
script:
- ln -s node_modules/minify/bin/minify.js minify
- rm public -Rf
- mkdir -p min
- minify *.js > min/code.js
- minify index.html > min/index.html
- minify *.css > min/style.css
- ./minify --js *.js > min/code.js
- ./minify --html index.html > min/index.html
- ./minify --css *.css > min/style.css
- cp min public -r
artifacts:

Loading…
Cancel
Save