songcuiping1 / tinper-uba

The rapid development of front-end builder,Providing templates、proxy、server and other functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

中文版本

tinper-uba

npm version Build Status devDependency Status NPM downloads

uba is a front-end develop tool which consist of initialize,local service,mock server,deploy. Just 5 command then the development can be done. lite and simple.

Installation

$ npm install uba -g

How to use

1、first initialize the uba project.

  • $ uba init uba-project
  • uba will create the project.

2、create a web page template

  • uba page web01
  • look the src/containers/

2、 Enter the project to create the project run server.

  • $ uba server -p 5000

If you want to modify the port -p 5000 default:port 3000

  • Now open the local service http://localhost:5000.

3、 After the development is completed to build an optimized version.

  • $ uba build
  • Build projects in our current directory.

4、 publising .war to maven.

  • $ uba publish
  • uba will be generated in the current folder publish.
  • Open your publishfolder to see if there is a.

API Documentation


help
$ uba --help or -h
1. uba init <project name>     		Initialization best practices
2. uba page <myPage>                Add Page
3. uba server -p 3000          		Start develop server
4. uba build   						Constructing optimization static resources
5. uba publish 						Publish war to Maven
6. uba --version       				Version
7. uba --help  						Help
version
$ uba --help or -h
Initialize
$ uba init demo
Add page
$ uba page myPage
Develop
$ uba server
Build
$ uba build
Publishing Maven
$ uba publish

About

The rapid development of front-end builder,Providing templates、proxy、server and other functions

License:BSD 2-Clause "Simplified" License


Languages

Language:JavaScript 53.9%Language:HTML 27.0%Language:CSS 19.1%