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.

28 lines
623 B

  1. image: node:latest
  2. before_script:
  3. - echo "these are the currently installed node packages "
  4. - npm list -g
  5. - npm list minify -g || npm install minify -g
  6. - npm list uglify -g || npm install uglify -g
  7. pages:
  8. stage: deploy
  9. script:
  10. - rm public -Rf
  11. - mkdir -p min
  12. - minify --js *.js > min/code.js
  13. - minify --html index.html > min/index.html
  14. - minify --css *.css > min/style.css
  15. - mkdir -p ugly
  16. - uglify --css --source min/*.css --output ugly/style.css
  17. - uglify --source min/*.js --output ugly/code.js
  18. - cp ugly public -r
  19. - cp min/*.html public/
  20. artifacts:
  21. paths:
  22. - public