https://github.com/french-exception/node-npm-project-create-api
https://github.com/french-exception/node-npm-project-create-api
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/french-exception/node-npm-project-create-api
- Owner: French-Exception
- Created: 2019-12-15T10:03:34.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2019-12-18T23:07:52.000Z (over 6 years ago)
- Last Synced: 2025-07-01T02:44:20.133Z (about 1 year ago)
- Language: TypeScript
- Size: 52.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation
```bash
git clone git@github.com:French-Exception/frenchex-node-npm-project-create-cli.git
npm install --only dev
```
# Usage
```bash
$ node src/index.js --help
index.js
Commands:
index.js create Create a new Npm project
index.js clone Create a new Npm project from a git url
Options:
--help Show help [boolean]
--version Show version number [boolean]
$ node src/index.js create --help
index.js create
Create a new Npm project
Options:
--help Show help [boolean]
--version Show version number [boolean]
--scope Scope for new npm module [string]
--git create git [boolean] [default: true]
--git-branch git branch to checkout [string] [default: "develop"]
--git-flow Init git flow [boolean] [default: true]
--destroy-before If dir exists, delete it [boolean] [default: false]
--root-path path
[string] [default: "C:\code\node_modules\@frenchex\npm-project-create-cli"]
--install NPM to install with --save [array] [default: []]
--devInstall NPM to install with --save [array] [default: []]
--author Author name [string]
--npm-bin node NPM bin [string] [default: "npm"]
--git-bin git bin [string] [default: "git"]
--log-level
[choices: "trace", "debug", "log", "info", "warn", "error", "fatal"] [default:
"info"]
$ node src/index.js clone --help
index.js clone
Create a new Npm project from a git url
Options:
--help Show help [boolean]
--version Show version number [boolean]
--branch branch to checkout [string] [default: "develop"]
--root-path directory
[string] [default: "C:\code\node_modules\@frenchex\npm-project-create-cli"]
--git-bin git bin [string] [default: "git"]
--npm-bin npm bin [string] [default: "npm"]
--dev npm i --only dev [boolean] [default: true]
--destroy-before Delete directory if exists before cloning
[boolean] [default: false]
--log-level
[choices: "trace", "debug", "log", "info", "warn", "error", "fatal"] [default:
"info"]
```