我发布了一个新包,旨在通过 cli 为节点开源项目生成一个非常小的样板。目前,它只是几个 npx 命令的组合,并且需要其他 npm 包,如 gitignore、许可证才能工作。我想使用以下命令执行 package.json 中的构建脚本。
npx get-set-node-oss build youremailaddress@xyz.com
链接到 npm 包:get-set-node-oss。我知道这个名字有点太长了。
{
"name": "get-set-node-oss",
"version": "1.0.1",
"description": "One command setup for your Node OSS project",
"scripts": {
"build": "npx license mit > LICENSE && npx gitignore node && npx covgen"
},
"author": "Harshit Juneja",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/harshitjuneja/get-set-node-oss.git"
},
"keywords": [
"node",
"boilerplate","gitignore","MIT","OSS"
],
"bugs": {
"url": "https://github.com/harshitjuneja/get-set-node-oss/issues"
},
"homepage": "https://github.com/harshitjuneja/get-set-node-oss#readme"
}
我希望用户创建一个新文件夹并 cd 进入该文件夹并执行
npx get-set-node-oss build emailstring
并获取生成的样板文件。