Skip to content

Commit

Permalink
generate readme + add readme script in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
richardguerre committed Aug 15, 2021
1 parent fc26de8 commit 9f31776
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,30 @@ USAGE
# Commands

<!-- commands -->
* [`module-butler generate`](#module-butler-generate)
* [`module-butler generate [MODULE1] [MODULE2] [MODULE3] [MODULE4] [MODULE5] [MODULE6] [MODULE7] [MODULE8] [MODULE9] [MODULE10]`](#module-butler-generate-module1-module2-module3-module4-module5-module6-module7-module8-module9-module10)
* [`module-butler help [COMMAND]`](#module-butler-help-command)
* [`module-butler init`](#module-butler-init)

## `module-butler generate`
## `module-butler generate [MODULE1] [MODULE2] [MODULE3] [MODULE4] [MODULE5] [MODULE6] [MODULE7] [MODULE8] [MODULE9] [MODULE10]`

generates modules using module names (comma and/or line separated) in .module-butler/input and template files in the templates directory.

```
USAGE
$ module-butler generate
$ module-butler generate [MODULE1] [MODULE2] [MODULE3] [MODULE4] [MODULE5] [MODULE6] [MODULE7] [MODULE8] [MODULE9]
[MODULE10]
ARGUMENTS
MODULE1 Name of module
MODULE2 Name of module
MODULE3 Name of module
MODULE4 Name of module
MODULE5 Name of module
MODULE6 Name of module
MODULE7 Name of module
MODULE8 Name of module
MODULE9 Name of module
MODULE10 Name of module
OPTIONS
-F, --force forcibly overwrite existing files
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"build": "rm -rf tsconfig.tsbuildinfo && rm -rf lib && tsc -b",
"prepack": "rm -rf tsconfig.tsbuildinfo && rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif-dev readme && git add README.md"
"readme": "oclif-dev readme",
"version": "yarn run readme && git add README.md"
},
"bugs": "https://github.com/richardguerre/module-butler/issues",
"dependencies": {
Expand Down

0 comments on commit 9f31776

Please sign in to comment.