1.4.1 • Published 7 years ago

toman v1.4.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago
  _____      U  ___ u   __  __       _        _   _     
 |_ " _|      \/"_ \/ U|' \/ '|u U  /"\  u   | \ |"|    
   | |        | | | | \| |\/| |/  \/ _ \/   <|  \| |>   
  /| |\   .-,_| |_| |  | |  | |   / ___ \   U| |\  |u   
 u |_|U    \_)-\___/   |_|  |_|  /_/   \_\   |_| \_|    
 _// \\_        \\    <<,-,,-.    \\    >>   ||   \\,-.
(__) (__)      (__)    (./  \.)  (__)  (__)  (_")  (_/                                                

Build Status codecov

NPM

A module for taking advantage of the built-in node project in node LTS according to auto generation config.

Installation

yarn global add toman

Installation lastest version

yarn global upgrade toman

Usage

Initialize toman plugin with the generated project, with the given options.

Options:

  • project select project
  • type project type
  • port project port
  • name project name
  • h display help
  • no-color disable color
  • quiet quiet 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 10023

api 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-cov

webapp 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-cov

Screenshot

License

MIT License

Copyright (c) 2017 Folie.js

1.4.1

7 years ago

1.4.0

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago