npm
lllanlll
这个作者很懒,什么都没留下…
展开
-
npm学习 01创建并运行npm script
创建并运行npm script npm init快速创建项目 使用:npm init在当前目录快速创建package.json 多选项可一路默认回车 或使用:npm init -f使用默认配置快速创建 修改默认配置: npm config set init.author.email “875952924@qq.com” npm config set init.author.name “linjh”...原创 2019-10-08 17:48:10 · 4150 阅读 · 0 评论 -
npm学习 02多个npm script串行与并行
package.json { "name": "npmlearn", "version": "0.1.0", "description": "no", "main": "index.js", "scripts": { "lint:js": "eslint *.js", "lint:css": "stylelint *.less", "lint:json"...原创 2019-10-09 14:16:57 · 782 阅读 · 0 评论 -
npm学习 03npm script 传递参数和添加注释
1.npm script传递参数 1. eslint自动修复参数:–fix 第一种:可能改了lint:js而没有改lint:js:fix "lint:js": "eslint *.js", "lint:js:fix": "eslint *.js --fix", 第二种:代码更加健壮 "lint:js": "eslint *.js", "lint:js:fix": "npm run lint:...原创 2019-10-10 10:33:47 · 571 阅读 · 1 评论