node笔记

node中npm笔记整理:

启动node前需要查看目录下有没有package.json,他是npm配置文件,下面小结一下

(1)npm会根据包内容设置一些默认值,比如"scripts": {"start": "node server.js"};如果包的根目录有wscript文件,npm会默认将preinstall命令用node-waf进行编译,比如:"scripts":{"preinstall": "node-waf clean || true; node-waf configure build"}

如果包的根目录有binding.gyp文件,npm会默认将preinstall命令用node-gyp进行编译,比如:"scripts":{"preinstall": "node-gyp rebuild"}

(2)name、version、description、keywords、bugs(你项目别人看了有问题联系你)、lisense(许可证)

webpack打包工具整理:

(1)

 

 

 

 

 

 

参考网址:http://www.cnblogs.com/tzyy/p/5193811.html#_h1_1

posted @ 2016-12-06 11:08  陈小鹏  阅读(169)  评论(0编辑  收藏  举报