mdc.sh 383 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # before
  3. cd build/mdc/
  4. rm -rf tmp/
  5. mkdir -p tmp
  6. # mdc.min.js
  7. npx rollup --config rollup.js --input mdc.js --file tmp/mdc.js
  8. npx babel tmp/mdc.js --out-file tmp/mdc.min.js
  9. # mdc.min.css
  10. npx node-sass --include-path ../../node_modules/ mdc.scss tmp/mdc.css
  11. npx csso --input tmp/mdc.css --output tmp/mdc.min.css
  12. # copy
  13. cp tmp/mdc.min.* ../../vendor/
  14. # after
  15. rm -r tmp/