1.0.5 • Published 9 years ago
ugen v1.0.5
Ugen
CLI tool for scaffolding new apps.
Install
npm i -g ugen
Create Ugen package
# Create package folder
mkdir APP_DIR_NAME && cd APP_DIR_NAME
# Copy some files and templates in folder 'boilerplate'
# Template file must have *.template extension
# There are should be placed tags like <% TAG_NAME %> inside a template
mkdir boilerplate && cp SOME_DIR/* ./boilerpalate
# Create ugen.config.js
ugen config
Update ugen.config.js if you need
Config is presented in json format. One of the properties of this config is "questions". For example, you can add validation function for every question. It would be great to use validator.js for this purpose.
Build app from package
# Build app from Ugen package folder
ugen build
# After that you can remove 'boilerplate' folder from app
rm -rf boilerplate
Demo
Try Example
npm i -g ugen
git clone git@github.com:Oversan/ugen.git && cd ugen/example
ugen config
ugen build
# rm -rf ./boilerplate
npm i