Closed
Description
@egoist is the author of vbuild
which is a zero-config tool for prototyping Vue projects. We'd like to fold that functionality into vue-cli
as vue build
with a sharper focus on prototyping experience.
Summary
- if a user wants to build a production app, use
vue init
; - if a user wants to quickly prototype an idea, use
vue build --dev
(and in most cases can later just copy thesrc
files into a production scaffold generated withvue init
)
Technical Notes (open to discussion)
- Should support directly building a
*.vue
file, e.g.vue build App.vue
and BOOM. Great for single-component prototyping. (Maybe even incorporate something like react-storybook if running in single-component mode) - We want this to be clearly focused on prototyping, so the default setup should be minimal and fast. Probably better to use a lighter weight ES2015 transpiler e.g.
buble
. - Users will still inevitably have their preferences, even for prototyping. But maybe we can make this config global, e.g. have one single
vue.config.js
in the user's home directory, whichvue build
will then use for all prototypes - configure once, run everywhere. - Is there any smart way to transition a project using
vue build
to a proper scaffolded project created fromvue init
?
Nice to Have
- auto-infer the npm dependencies in the files and
npm install
them automatically