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.
$ npm install uba -g
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
publish
folder to see if there is a.
$ 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
$ uba --help or -h
$ uba init demo
$ uba page myPage
$ uba server
$ uba build
$ uba publish