Giter Club home page Giter Club logo

my-vue-project's Introduction

my-vue-project

启动并在浏览器打开项目

npm run dev

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

配置项目

启动
vue ui
Vue 项目管理器
http://localhost:8000/project/select
项目仪表盘
http://localhost:8000/dashboard

关于快速生成页面脚本说明

安装插件

安装 silly-datetime 插件
npm install silly-datetime --save-dev

用来获取系统时间。

安装 chalk 插件
npm install chalk --save-dev

chalk 是一个颜色的插件,用来修改命令行显示颜色,更美观。

使用插件

配置
  "scripts": {
    "views": "node scripts/generateView/generateView.js views",
    "cpt": "node scripts/generateView/generateView.js cpt",
    "page": "node scripts/generateView/generateView.js page"
  }

在 package.json 中配置

1、生成 vue 普通页面
npm run views file-name

会生成在 views 目录下

2、生成 vue 组件
npm run cpt file-name

会生成在 components 目录下

3、生成单个页面
npm run page views/components/tables/file-name.vue

默认会生成在 src 目录下的,需要拼写文件名后缀。

####以上方式都支持多层目录创建

npm run views aaa/bbb/ccc-ddd/file-name

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.