[译]为什么我要离开gulp和grunt转投npm脚本的怀抱

前端开发 作者: 2024-08-21 11:10:02
原文链接:https://medium.freecodecamp.com/why-i-left-gulp-and-grunt-for-npm-scripts-3d6853dd22b8#.n7m1855
{
  "name": "npm-scripts-example","version": "1.0.0": {
    "prebuild": "echo I run before the build script"
  }
}
: {
    "clean": "rimraf ./dist && mkdir dist"
  }
}
: {
    "build": "node build.js"
  }
}
grep ‘Cory House’ bigFile.txt > linesThatHaveMyName.txt
npm run script1.js & npm run script2.js
&& chain tasks (Run one task after another)
< input file contents to a command
> redirect command output to a file
| redirect command output to another command
node scriptName.js
原创声明
本站部分文章基于互联网的整理,我们会把真正“有用/优质”的文章整理提供给各位开发者。本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
本文链接:http://www.jiecseo.com/news/show_66058.html