码迷,mamicode.com
首页 > 其他好文 > 详细

npm scripts构建

时间:2016-06-15 14:19:27      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:

管道(|)运算符会将一个命令的输出以流的方式作为另一个命令的输入。

重定向(>)运算符则会将输出重定向到文件。

< 将文件内容输入到一个命令

在Unix中,还可以通过“&”运算符同时运行两个命令。npm run script1.js & npm run script2.js

 

npm-run-all   A CLI tool to run multiple npm-scripts in parallel or sequential.

run-s is for sequential, run-p is for parallel. We can make simple plans with those commands.

cross-env Run commands that set environment variables across platforms(https://www.npmjs.com/package/cross-env)

 

ShellJS是个通过Node来运行Unix命令的npm包。这样就可以通过它在所有平台上运行Unix命令了,也包括Windows。(https://www.npmjs.com/package/shelljs)

 

 

 

 

参考文章http://www.infoq.com/cn/news/2016/02/gulp-grunt-npm-scripts-part2

相关知识 http://www.tutorialspoint.com/unix/unix-useful-commands.htm

https://www.pluralsight.com/courses/npm-build-tool-introduction

npm scripts构建

标签:

原文地址:http://www.cnblogs.com/chengzhenping/p/5587207.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!