vfe-cli

vfe build cli, base on webpack & gulp.

Usage no npm install needed!

<script type="module">
  import vfeCli from 'https://cdn.skypack.dev/vfe-cli';
</script>

README

vfe-cli

npm version

vfe-cli is command-line interface for vfe

Usage

Install cli

npm install vfe-cli -g

Init project using vfe-template

vfe init [template]

Note: Using proxy option, vfe init -p $proxy. Such as vfe init -p tx. See $tx

vfe init support 3 types template:

  • default An simple boilerplate that using vfe as component builder only.
  • client The boilerplate is appropriate for client-side render project. It use Zect as components framework.
  • node The boilerplate is appropriate for server-side render project. It use Real and comps.
  • spa The boilerplate is appropriate for that project which using client-side render and hash router without reloading. Components framework use Zect and router use Routed.
  • autonode Autonode template.

Run default build task

vfe

Start develop watcher

vfe start
## aliase
vfe s

Note: Start command support run with another task name, such as vfe start sometask, only if task name is start-sometask.

Releasing for production

vfe release
## aliase
vfe r

Note: Release command support run with another task name, such as vfe release sometask, only if task name is release-sometask.

License

MIT.