You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
538 B

image: node:latest
cache:
paths:
- /usr/local/lib/node_modules/
- /usr/local/lib/node
before_script:
- echo "these are the currently installed node packages "
- npm list -g --depth 0
- npm list minify || npm install -g minify
- npm list uglify || npm install -g uglify
pages:
stage: deploy
script:
- rm public -Rf
- mkdir -p min
- minify *.js > min/code.js
- minify index.html > min/index.html
- minify *.css > min/style.css
- cp min public -r
artifacts:
paths:
- public
only:
- master