@achavarriafh/create-npm-package 中文文档教程
Create Npm Package
请注意,您需要使用 npm 6 或更高版本。
运行:
npm i -g npm
安装最新版本的npm
Usage
Interactive mode
npx @achavarriafh/create-npm-package
Or using npm init
npm init @achavarriafh/npm-package
Command mode
npx @achavarriafh/create-npm-package <projectName>
示例:
npx @achavarriafh/create-npm-package my-first-package
Or using npm init
npm init @achavarriafh/npm-package <projectName>
示例:
npm init @achavarriafh/npm-package my-first-package
Using a proxy
如果您使用代理,请配置https_proxy
环境变量。
Built-in starters
- Default library template
Developing locally
如果你想添加功能,克隆这个 repo,打开终端:
Install dependencies
npm install
然后,编译并运行 starter:
npm run dev
它会帮助你测试你的更改。
Citations
由 Alexander Chavarria 创建:
从 Create Stencil App 分叉:
License
- MIT
Create Npm Package
Note that you will need to use npm 6 or higher.
Run:
npm i -g npm
To install latest version of npm
Usage
Interactive mode
npx @achavarriafh/create-npm-package
Or using npm init
npm init @achavarriafh/npm-package
Command mode
npx @achavarriafh/create-npm-package <projectName>
Example:
npx @achavarriafh/create-npm-package my-first-package
Or using npm init
npm init @achavarriafh/npm-package <projectName>
Example:
npm init @achavarriafh/npm-package my-first-package
Using a proxy
If you are behind a proxy, configure https_proxy
environment variable.
Built-in starters
- Default library template
Developing locally
If you want to add features, clone this repo, open terminal:
Install dependencies
npm install
Then, compile and run the starter:
npm run dev
And it will help you test out your changes.
Citations
Created by Alexander Chavarria:
Forked from Create Stencil App:
License
- MIT
更多