Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple CLI for scaffolding Vue.js projects

License

NotificationsYou must be signed in to change notification settings

coder-caicai/vue-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP: this is the work in progress branch of the upcoming vue-cli 3.0.Only for preview for template maintainers.

Development Setup

This project uses a monorepo setup that requires usingYarn because it relies onYarn workspaces.

# install dependenciesyarn# link `vue` executablecd packages/@vue/cliyarn link# create test projects in /packages/testcd -cd packages/testvue create test-appcd test-appyarnyarn dev

Core Concepts

There are two major parts of the system:

  • @vue/cli: globally installed, exposes thevue create <app> command;
  • @vue/cli-service: locally installed, exposes thevue-cli-service commands.

Both utilize a plugin-based architecture.

Creator

Creator is the class created when invokingvue create <app>. Responsible for prompting for preferences, generating the project files and installing dependencies.

Generator

Generators are globally-installed plugins for the Creator.@vue/cli ships with a number ofbuilt-in generators.

A generator should export a function which receives aGeneratorAPI instance as the only argument. The API allows a generator to inject prompts,package.json fields and files to the project being created.

Service

Service is the class created when invokingvue-cli-service <command> [...args]. Responsible for managing the internal webpack configuration, and exposes commands for serving and building the project.

Plugin

Plugins are locally installed into the project as devDependencies.@vue/cli-service ships with a number ofbuilt-inplugins.

A plugin should export a function which receives two arguments:

  • APluginAPI instance
  • Project local options specified invue.config.js

The API allows plugins to extend/modify the internal webpack config for different environments and inject additional commands tovue-cli-service.

About

Simple CLI for scaffolding Vue.js projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript99.1%
  • Vue0.9%

[8]ページ先頭

©2009-2025 Movatter.jp