_____ U ___ u __ __ _ _ _
|_ " _| \/"_ \/ U|' \/ '|u U /"\ u | \ |"|
| | | | | | \| |\/| |/ \/ _ \/ <| \| |>
/| |\ .-,_| |_| | | | | | / ___ \ U| |\ |u
u |_|U \_)-\___/ |_| |_| /_/ \_\ |_| \_|
_// \\_ \\ <<,-,,-. \\ >> || \\,-.
(__) (__) (__) (./ \.) (__) (__) (_") (_/
A module for taking advantage of the built-in node project in node LTS according to auto generation config.
yarn global add toman
yarn global upgrade toman
Initialize toman plugin with the generated project, with the given options.
Options:
project
select projecttype
project typeport
project portname
project nameh
display helpno-color
disable colorquiet
quiet mode - only displays warn and error messages
// generate typescript webapp base on react
toman g webapp --name web --port 10022
// generate api service base on koa1.0
toman g api --name apiservice --port 10023
├── config/ # constant config
│ locales/ # string id translate
│ pm2/ # deploy script
│ ├── 21.json # test script
│ ├── ga.json # ga script
│ └── release.json # release script
├── lib/ # application source code
│ ├── api/ # api controller
│ ├── middleware/ # api middleware
│ ├── schemas/ # database
│ ├── services/ # third part service
│ ├── route.js # api routes
│ └── app.js # backend entry point.
├── node_modules/ # libraries and utilities
├── app.js # startup
├── package.json # project pkg
├── skyfile.js # deploy script
├── .gitignore # ignore file
├── .gitlab-ci.yml # ci test
└── test/ # Unit tests and test-cov
├── config/ # constant config
├── mock/ # mock test
│ pm2/ # deploy script
│ ├── 21.json # test script
│ ├── ga.json # ga script
│ └── release.json # release script
├── src/ # application source code
│ ├── app/ # application config
│ ├── common.ts # common ts
│ ├── global.d.js # global varible
│ ├── index.html # start page
│ ├── home.index.mustache # start ts
│ └── style.ts # style reference
├── node_modules/ # libraries and utilities
├── postcss.config.js # post css cfg
├── tsconfig.json # ts cfg
├── tsconfig.mock.json # mock config
├── tslint.json # eslint standard
├── package.json # project pkg
├── skyfile.js # deploy script
├── .gitignore # ignore file
├── .gitlab-ci.yml # ci test
└── test/ # Unit tests and test-cov
MIT License
Copyright (c) 2017 Folie.js