Skip to content

afknapping/create-vue-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create Vue App

NPM version NPM downloads Build Status donate

tl;dr

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!

Features

  • Build Web app
  • Build Vue component
  • Build Electron app
  • Optionally unit test with Karma

Install

You can use npm if you like, but yarn would save a lot time here.

yarn global add create-vue-app

Usage

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!

Unit tests

We use vbuild-karma to test your components:

test

FAQ

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

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

About

Create Vue apps with no build configuration.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 85.1%
  • Vue 10.7%
  • HTML 4.2%