create-vue-app 现在默认支持 PWA

1,386 阅读1分钟

NPM version NPM downloads CircleCI donate

How does this work?

This is a CLI that wraps SAO and template-vue, so running create-vue-app my-app is equivalent to running sao vue my-app.

Basically this is similar to create-react-app and template-vue uses Poi under the hood.

Install

yarn global add create-vue-app

Usage

# Generate project in cwd
mkdir my-vue-app && cd my-vue-app
create-vue-app

# Generate project in specific folder
create-vue-app my-vue-app
cd my-vue-app

Alternatively, if you have Yarn^0.24, you can use the yarn create command:

yarn create vue-app my-vue-app

For details about folder structure please head to template-vue.

For more usages on Poi please head to its documentation.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

create-vue-app © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).

egoistian.com · GitHub @egoist · Twitter @rem_rin_rin