Socket
Socket
Sign inDemoInstall

vue-cli

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-cli

Opinionated CLI for starting Vue.js single page applications


Version published
Weekly downloads
5.4K
increased by12.72%
Maintainers
1
Weekly downloads
 
Created
Source

vue-cli

A simple CLI for scaffolding Vue.js projects.

Installation

$ npm install -g vue-cli

Usage

$ vue init webpack my-project
$ cd my-project
$ npm install
$ npm run dev

The above command pulls the template from vuejs-templates/webpack, prompts for some information, and generates the project at .my-project/.

When a new template is added to the vuejs-templates organization, you will be able to run vue init <template-name> <project-name> to use that template.

You can run vue list to see all available official templates.

Custom Templates

It's unlikely to make everyone happy with the official templates. You can simply fork an official template and then use it via vue-cli with:

vue init username/repo my-project

Where username/repo is the GitHub repo shorthand for your fork.

You can also create your own template from scratch:

  • A template repo must have a template directory that holds the template files.

  • All template files will be piped through Handlebars for simple templating - vue-cli will automatically infer the prompts based on {{}} interpolations found in the files.

  • A template repo may have a meta.json file that provides a schema for the prompts. The schema will be passed to prompt-for as options. See example.

Keywords

FAQs

Package last updated on 27 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc