mdc.sh 371 B

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