compatibility-test.sh 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/bash
  2. # To cover all possible use case, you should change `optimizeCss` in `example/build.js` from "none" to
  3. # optimizeCss: "standard.keepLines"
  4. # optimizeCss: "standard.keepWhitespace"
  5. # optimizeCss: "standard.keepComments"
  6. # optimizeCss: "standard.keepComments.keepLines"
  7. # optimizeCss: "standard.keepLines.keepWhitespace" - default by r.js
  8. (
  9. npm install requirejs@2.1.10 -g
  10. npm install csso@1.3.12 -g
  11. r.js -o example/build.js
  12. npm install csso@1.4.0 -g
  13. r.js -o example/build.js
  14. npm install csso@1.8.0 -g
  15. r.js -o example/build.js
  16. npm install csso@2.0.0 -g
  17. r.js -o example/build.js
  18. npm install csso@latest -g
  19. r.js -o example/build.js
  20. # RequireJS@latest
  21. npm install requirejs@latest -g
  22. npm install csso@1.3.12 -g
  23. r.js -o example/build.js
  24. npm install csso@1.4.0 -g
  25. r.js -o example/build.js
  26. npm install csso@1.8.0 -g
  27. r.js -o example/build.js
  28. npm install csso@2.0.0 -g
  29. r.js -o example/build.js
  30. npm install csso@latest -g
  31. r.js -o example/build.js
  32. ) > compatibility.log