@abhishekover9000/vuegen 中文文档教程

发布于 5年前 浏览 29 更新于 3年前

About

VueJS 应用程序的样板脚手架工具

Installation

npm i -s @abhishekover9000/vuegen

Usage

NOTE- YOU MUST CALL THIS FROM THE ROOT DIRECTORY LEVEL FOR IT TO WORK

STEP 1- Configure your App routes

vuegen -0 或 vuegen --config

STEP 2: generate something

SCAFFOLDING A COMPONENT/PAGE AND UNIT TEST

vuegen -s [NAME] 或 --scaffold [NAME]

CREATING A PAGE

vuegen -c [NAME] 或 --component [NAME]

CREATING A COMPONENT

vuegen - c [NAME] 或 --component [NAME]

CREATE A UNIT TEST

vuegen -u [NAME] 或 --unit [NAME]

CHANGE A ROUTE

参见步骤 1

NEXT STEPS

  • Adding more unit test library options beyond mocha/chai
  • Adding support for vuex store creation similar to rails g model
  • Build out Vue on Loud- A Ruby on Rails equivalent

About

Boilerplate Scaffolding Tool for VueJS Apps

Installation

npm i -s @abhishekover9000/vuegen

Usage

NOTE- YOU MUST CALL THIS FROM THE ROOT DIRECTORY LEVEL FOR IT TO WORK

STEP 1- Configure your App routes

vuegen -0 or vuegen --config

STEP 2: generate something

SCAFFOLDING A COMPONENT/PAGE AND UNIT TEST

vuegen -s [NAME] or --scaffold [NAME]

CREATING A PAGE

vuegen -c [NAME] or --component [NAME]

CREATING A COMPONENT

vuegen -c [NAME] or --component [NAME]

CREATE A UNIT TEST

vuegen -u [NAME] OR --unit [NAME]

CHANGE A ROUTE

see Step 1

NEXT STEPS

  • Adding more unit test library options beyond mocha/chai
  • Adding support for vuex store creation similar to rails g model
  • Build out Vue on Loud- A Ruby on Rails equivalent
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文