Skip to content

New command: vue build #173

Closed
Closed
@yyx990803

Description

@yyx990803

Ref: egoist/poi#9 (comment)

@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 the src files into a production scaffold generated with vue 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, which vue 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 from vue init?

Nice to Have

  • auto-infer the npm dependencies in the files and npm install them automatically

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions