Everything awesome for using npm as a build tool.
You might also like awesome-npm.
Notice: I'm currently too busy to actively expand this list; therefore, I've decided to make this an OPEN Open Source Project. Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit.
npm run
ReferenceTools for running multiple commands or npm scripts in parallel or sequentially.
Tools to watch your source files and run a build command whenever any of the files change.
Utilities to perform common command-line tasks without worrying about cross-platform compatibility.
rm -rf
.mkdir -p
.cp -r
for Node.js.rsync
-like directory syncing with watch mode.echo
with JS escape sequence support.tee
.cat
.shx rm somefile
.A quick reference of the shell operators & commands that work the same on Unix and Windows.
&&
to run commands in sequence. If a command fails, the script exits.|
to pipe the stdout of one command into the stdin of the next. (do-something | something else
)>
to write the stdout of a command to a file. (do-something > file
)<
to send the contents of a file to a command's stdin. (command < file
)cd <dir>
to change the current working directory to <dir>
. Note that cd
alone prints the current working directory on windows, but changes the working directory to ~
on *nix.npm run
ReferenceYou can use npm run-script
or npm run
; they both do the same thing, but npm run
is shorter.
npm run
to print a list of scripts.npm run script
(where script
is the name of your script) will run prescript
, script
, and postscript
; in that order.
pre
and post
hooks (i.e. preprescript
won't work).--
to npm run
, followed by the arguments. Example: Given the script "mocha": "mocha"
, you can run npm run mocha -- --reporter xunit
. This effectively runs mocha --reporter xunit
.npm test
is the same as running npm run test
. The same applies to npm start
and npm stop
.npm run <script> -s
to silence the default npm output (useful for calling a script within another script).See CONTRIBUTING.md.
NPM Scripts Part 2 Objectives and Outcomes In this exercise you will learn to build a distribution folder containing the files that can be deployed on a web server hosting your project. This distrib
一、什么是 npm 脚本? npm 允许在package.json文件里面,使用scripts字段定义脚本命令。 { // ... "scripts": { "build": "node build.js" } } 上面代码是package.json文件的一个片段,里面的scripts字段是一个对象。它的每一个属性,对应一段脚本。比如,build命令对应的脚本是node b
Specifics of npm's package.json handling DESCRIPTION§ This document is all you need to know about what’s required in your package.json file. It must be actual JSON, not just a JavaScript object litera
by Colby Miller 通过Colby Miller 如何将React Native组件发布到NPM-比您想象的要容易 (How to publish a React Native component to NPM — it’s easier than you think) So you want to contribute to the open source community? Th
本文来源于我在InfoQ中文站翻译的文章,原文地址是:http://www.infoq.com/cn/news/2016/02/earlgrey-ios-functional-ui-test Cory House是“Building Applications with React and Flux”与“Clean Code: Writing Code for Humans”的作者,同时也是Plur
测试环境有一个需要SonarQube扫描的前端项目一直打包都是好好的,但是今天突然无法使用cnpm run build进行打包,上去服务器上面看看究竟报了什么样的错误。 既然本来打包的环境有问题,那么先干掉node_modules和package-lock.json再重新用cnpm install试试,得出如下结果。 [root@node6 yunlu-portals-sonar]# cnpm i
npm构建脚本 by Mohammed Ajmal Siddiqui 由Mohammed Ajmal Siddiqui NPM脚本简介 (Introduction to NPM Scripts) NPM scripts are among my favorite features of NPM. They are simple. They reduce the need for tools. He
Awesome npm Awesome npm resources and tips npm is a package manager for the JavaScript programming language and comes bundled in the Node.js runtime. Please read the contribution guidelines before con
Awesome Awesome Node.js A curated list of awesome lists that are about or related to Node.js. Inspired by the awesome list thing, going deeper down the rabbit hole. �� Meta stuff about this awesome li
Guidelines for Hacktoberfest 2021: About Hacktoberfest: Hacktoberfest is organised by DigitalOcean in partnership with Dev, Intel, DeepSource & Appwrite. It is a month-long celebration of open-source
A curated list of awesome things related to Vite.js This awesome list is for Vite 2.x and onward. Vite 1.x's list is archived. Resources Official Resources 文档 GitHub Repo Release Notes Vue 3 Docs Awes
Awesome Python 是一个资源整理集合,由 vinta 发起和维护。内容包括:Web框架、网络爬虫、网络内容提取、模板引擎、数据库、数据可视化、图片处理、文本处理、自然语言处理、机器学习、日志、代码分析等。 这个系列没有推荐 Python 书籍、经典博文、交互教程,所以另外推荐:《25本免费的Python电子书》、《学习Python编程的11个(教程)资源》、《PythonMonk:Py
Font Awesome 是一个图标工具包。其已经被重新设计并从头构建。除此之外,还增加了一些功能,比如 icon font ligature、SVG 框架、流行的前端库(如 React)的官方 NPM 包,以及对新 CDN 的访问。Font Awesome 已扩展至 7,865 个图标。