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
567 B

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