yarn global add create-vue-app
create-vue-app my-app
cd my-app
yarn dev
And then you can go to http://localhost:4000
and start coding!
- Build Web app
- Build Vue component
- Build Electron app
- Optionally unit test with Karma
You can use npm
if you like, but yarn
would save a lot time here.
yarn global add create-vue-app
create-vue-app my-app
# you can also use the alias `cva`
# cva my-app
And you're all set, follow the instructions in terminal and start writing app!
We use vbuild-karma to test your components:
Is it similar to create-react-app?
Absolutely yes, you can already tell from the name ;)
Both create-vue-app
and create-react-app
are aiming for developing app with no-config.
How does this work?
You may know that create-react-app
is using react-scripts under the hood, while we are using vbuild.
The difference is that, it's hard to gracefully use react-scripts
in other React projects, while vbuild
can work indepently. You can use vbuild
in a similar way to how you use react-scripts
, a.k.a. no-config. It automatically uses data from your package.json and enviroment variables, etc. But you can also use a config file to put all configs in one place, eg: vbuild.config.js
or vbuild
field in package.json
.
This project starts as a built-in command called vbuild init
in vbuild itself. But we think it's not a must for vbuild
and can be handled elsewhere. So it turned into create-vue-app
.
How to upgrade?
Simply upgrade vbuild
in your project, eg: yarn upgrade vbuild
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
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