NPM Scripts Build

Source: Internet
Author: User
Tags npm scripts

The pipe (|) operator will stream the output of one command as input to another command.

The redirect (>) operator redirects the output to a file.

< Enter the contents of a file into a command

In Unix, you can also run two commands simultaneously with the "&" operator. 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 are for parallel. We can make simple plans with those commands.

cross-envRun commands that set environment variables across platforms (HTTPS://WWW.NPMJS.COM/PACKAGE/CROSS-ENV)

Shelljs is a NPM package that runs UNIX commands through node. This makes it possible to run UNIX commands on all platforms, including Windows. (HTTPS://WWW.NPMJS.COM/PACKAGE/SHELLJS)

Reference article Http://www.infoq.com/cn/news/2016/02/gulp-grunt-npm-scripts-part2

Related Knowledge http://www.tutorialspoint.com/unix/unix-useful-commands.htm

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

NPM Scripts Build

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.