Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 789 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 789 Bytes

npm scripts实战进阶

目录

  1. npm scripts简介
  2. Bash编程
  3. shell编程
  4. 示例:clean
  5. 示例:less
  6. 示例:stream
  7. 示例:js
  8. 示例:build
  9. 示例:hashname

开始之前

  1. 推荐使用支持Bash的操作系统(比如Linux,Solaris,BSD和Mac OSX等)来运行案例
  2. 本机安装好node和npm
  3. 掌握node和npm的基本操作,了解基本的命令行操作
  4. 了解package.json的配置项

相关资料

  1. http://www.ruanyifeng.com/blog/2016/10/npm_scripts.html
  2. https://docs.npmjs.com/misc/scripts
  3. https://www.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/
  4. https://www.keithcirkel.co.uk/why-we-should-stop-using-grunt/