New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

generator-yz-vue

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-yz-vue

You can use the generator as the follows: ## install yo and generator-yz-vue global ``` yarn add global yo or npm install global yo yarn add global generator-yz-vue or npm install global generator-yz-vue ```

latest
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

generator-yz-vue

You can use the generator as the follows:

install yo and generator-yz-vue global

yarn add global yo or npm install global yo
yarn add global generator-yz-vue or npm install global generator-yz-vue

create project

mkdir vue-example
cd vue-example
yo yz-vue

You can create a generator base on yeoman as the follows:

  • 新建一个以generator开头的文件夹,如mkdir generator-vue-cli
  • 全局安装 yoman模块: yarn global add yo
  • 在新建的文件夹中初始化文件目录:yarn init -y
  • 安装 yeoman-generator模块:yarn add yeoman-generator
  • 在根目录下新建如下目录:generators/app/templates,其中templates中存放的是希望脚手架安装的文件。
  • 编写入口文件:generators/app/index.js
  • 将此模块链接到全局:yarn link
  • 调用脚手架:新建一个文件夹,在命令中切换到该文件夹,在命令行中输入命令:yo vue-cli

Keywords

scaffolding

FAQs

Package last updated on 17 Oct 2021

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