_____ 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 tomanyarn global upgrade tomanInitialize toman plugin with the generated project, with the given options.
Options:
projectselect projecttypeproject typeportproject portnameproject namehdisplay helpno-colordisable colorquietquiet 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-covMIT License
Copyright (c) 2017 Folie.js

