Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1995eaton/code-templates
Easy code generation with node.js
https://github.com/1995eaton/code-templates
Last synced: about 1 month ago
JSON representation
Easy code generation with node.js
- Host: GitHub
- URL: https://github.com/1995eaton/code-templates
- Owner: 1995eaton
- Created: 2014-10-07T19:40:18.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-13T07:16:55.000Z (about 9 years ago)
- Last Synced: 2023-08-03T19:06:31.838Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##Adding a tempate
1. Add the project name and directory to the templates.json file
2. Create the project directory inside the template directory
3. Add project files/directories to the template directory##Customizing projects
* Paths can reference their associated project name with `$1`
* Files can reference their associated project name with `__$1`Example project (simple text file)
* JSON file entry: `"txt|text-file": "text-file"`
* Path: `templates/text-file/$1.txt`
* File contents: `project name: __$1`Using the above configuration, the following will occur
```shell
template txt sample1
# a file named sample1.txt will be created
# its contents will be: project name: sample1template text-file sample2
# this does the same thing
```