Jcube-cli is a simple set of scaffolding that supports Vue、React、ordinary projects.
Prerequisites: Node.js (>=4.x, 6.x preferred) and Git.
npm install -g jcube-cli
jcube init <dependence-type> [project-name] [options]
Example:
jcube init react my-project
Project structure:
|-jcube_app_pc //product line
|-develop //development
|-my-project //project
...
|-release //production
|-my-project //project
...
workflow:
npm run dev
: start programming.npm run build
: building project.npm run release
: release production code, they will be pushed to the corresponding release directory.
All commands can be searched by jcube --help
Generated project with dependence.
dependence-type:
- react
vue: coming soonnormal: coming soon
Available options:
- -v: create a directory of version
check the last-modified of static resource to determine whether that's right.
jcube queryCDN
: every time run npm run release
could be generated a file that needs to be updated, distinguish the results in two colors.
- green: static resource has been updated.
- red: nothing new has been updated.
jcube queryCDN [url]
: run this command to check single resource.