1.4.1 • Published 8 years ago
toman v1.4.1
_____ 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.
Installation
yarn global add tomanInstallation lastest version
yarn global upgrade tomanUsage
Initialize 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
Example
// 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 10023api Directory Layout
├── 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-covwebapp Directory Layout
├── 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-covScreenshot
License
MIT License
Copyright (c) 2017 Folie.js
