https://github.com/kessler/node-nmg
(my) Node Module Generator
https://github.com/kessler/node-nmg
Last synced: about 2 months ago
JSON representation
(my) Node Module Generator
- Host: GitHub
- URL: https://github.com/kessler/node-nmg
- Owner: kessler
- License: mit
- Created: 2014-09-13T17:27:36.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-08T14:27:04.000Z (about 10 years ago)
- Last Synced: 2025-03-08T08:12:40.557Z (about 2 months ago)
- Language: JavaScript
- Size: 219 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# my Node Module Generator - WIP
An efficiency tool.
This tool will create a new module for you, based on a template. It can also create a github project automatically as well as initialized git in the newly created module.
```
npm install -g nmg
nmg create awesome --inithub
```
configure by creating an [rc](https://github.com/dominictarr/rc) config somewhere (probably ~/.config)
```
{
"context": {
"author": "[your name]",
"github": {
"user": "[your github username]"
}
},"githubToken": "[a github token with repo permissions]"
}
```
and then
```
nmg create [moduleName]
nmg create [moduleName] --github // also create a repo on github
nmg create [moduleName] --gitinit // also create a local git repo, add all files and do initial commit
nmg create [moduleName] --inithub // combine the above two commands
```
You can also do
```
nmg --usage
```
to see some help# todo
- add makefile to minimal
- add .editorconfig to minimal
- add .jshintrc to minimal
- fix whitespaces in package.json minimal template
- add partials support
- use proper cli / args lib (like yargs or nomnom)