【文件属性】:
文件名称:generator-npm:用于浏览器模块的yeoman生成器
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-05 15:01:53
JavaScript
npm模块生成器
消耗性npm模块的生成器,使用browserify和npm run脚本作为构建过程。
安装
$ git clone https://github.com/nichoth/generator-npm.git
$ cd generator-npm
$ npm link
用
$ cd my-project && yo npm
取决于作者姓名,电子邮件和github的npm初始化设置。 如果尚未设置,请像这样设置它们:
$ npm config set init.author.name your name
$ npm config set init.author.email your email
$ npm config set init.author.github github handle
示例输出
├── example/
│ ├── example.js
│
【文件预览】:
generator-npm-master
----.jshintrc(275B)
----.gitignore(14B)
----app()
--------templates()
--------index.js(5KB)
----package.json(743B)
----.travis.yml(72B)
----README.md(2KB)
----.yo-rc.json(31B)
----.gitattributes(12B)
----.editorconfig(197B)