1.0.7 • Published 7 years ago

jscaffold v1.0.7

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

A spa webpack scaffold with asynchronous modules loading

This tool just likes vue-cli, but with new feature: asynchronous modules loading templates.

installation

npm install -g jscaffold

be aware: node >= 4.0.0 required

usage

  • init
jscaffold init <tempate-name> <project-name>

tempate-name: now just webpack, more template coming soon project-name: blank project name will create project in current directory, or will creat a named directory.

  • list
jscaffold list 

This will list the templates available.

workflow for example:

  1. In a vue project with webpack, we use require.ensure to split code , our templates will build project into modules with a vinfo.json.
  2. The vinfo.json describes builded version, builded date, and builded modules list width chunckhash for loading in browser.
  3. The index.html in distribute directory will load the vinfo.json for loading modules list asynchronously in it in sequence. This is the point.