https://github.com/lsongdev/create-z
Universal Project Scaffold Tools
https://github.com/lsongdev/create-z
Last synced: about 1 year ago
JSON representation
Universal Project Scaffold Tools
- Host: GitHub
- URL: https://github.com/lsongdev/create-z
- Owner: lsongdev
- Created: 2021-09-29T05:53:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-30T09:46:03.000Z (over 4 years ago)
- Last Synced: 2025-02-13T22:23:38.873Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://npmjs.org/create-x
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## create-z
> Universal Project Scaffold Tools
> /ˈkreɪzi/
### Install
```sh
~$ npm i -g create-z
```
### How to use?
First, create template files in your project:
```sh
~$ mkdir -p templates/page
~$ echo "hello world" >> templates/page/index.js.hbs
```
Then,
```sh
~$ create-z page
[O] ~/Projects/my-project/index.js
```
You will see them ...
```sh
~$ cat ~/Projects/my-project/index.js
hello world
```
**Ask Questions**
```sh
~$ $EDITOR templates/page/index.js.hbs
```
```patch
+ ---
+ questions:
+ - type: input
+ name: name
+ message: Please input your page name:
+ ---
- hello world
+ hello {{{name}}}
```
```sh
~$ create-z page
Please input your page name: mypage
[O] ~/Projects/my-project/index.js
```
Then ...
```sh
~$ cat ~/Projects/my-project/index.js
hello mypage
```