clony-pasta
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "clony-pasta", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Foolishly simple scaffolding tool using the ez template language.", | ||
@@ -5,0 +5,0 @@ "author": "Scott Hardy", |
@@ -12,3 +12,3 @@ # clony-pasta | ||
## installation | ||
## Installation | ||
```bash | ||
@@ -18,3 +18,3 @@ npm install clony-pasta -g | ||
## usage | ||
## Usage | ||
```bash | ||
@@ -24,5 +24,23 @@ clony-pasta [git repository] [destination folder] | ||
### example usage | ||
### Example Usage | ||
Set up a git repository with a scaffold. For example, your `package.json` might look something like this: | ||
``` | ||
{ | ||
"name": "{% scoped? %}@{% scope %}/{% end %}{% name %}", | ||
"version": "0.0.0", | ||
"description": "{% description %}", | ||
"author": "{% author %}", | ||
"license": "MIT", | ||
... | ||
} | ||
``` | ||
Conditional files and directories are also supported. For example, if you only sometimes want to generate tests, you could name your test directory `{% makeTests? %}tests{% end %}` and it will only include the directory (and sub-directories) if you respond "yes" to the `makeTests?` prompt. | ||
Then, when you want to generate a new project based on the scaffold, invoke the command: | ||
```bash | ||
clony-pasta git@github.com:scott113341/scaffold-npm-module.git my-module | ||
clony-pasta git@github.com:scott113341/scaffold-npm-module.git my-new-project | ||
``` | ||
@@ -29,0 +47,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20733
54