Giter Site home page Giter Site logo

istrong-ca-fe-template's Introduction

cloudapp-fe-template

基于vue-cli初始化的vue项目脚手架(集成了动态路由生成、模块配置注入等功能),使用webpack来编译及测试环境搭建

Share Vue components!

一个非常简单的[vue-cli](https://github.com/vuejs/vue-cli)模板,可以用`.vue`组件编写和发布vue插件。

功能

  1. 动态路由生成
  2. 基础布局
  3. 模块配置注入机制

用法

npm i -g vue-cli
vue init WTMR/istrong-ca-fe-template project-name

project-name 为你的组件名称。

可视化分析构建结果

npm run report

方便你分析最终的构建结果,有助于你进一步地优化构建结果。

开发

安装

首次创建或克隆组件时,需要安装默认的依赖项,这里根据你自己组件的需求去修改package.json中的依赖性,然后install

npm install

编译

编译运行build

npm run build

测试

  • 如果你要修改你的测试服务端口,可以修改build/devConfig.js文件。
  • 如果你需要修改入口文件,可以修改build/webpack.dev.conf.js文件中的entry。

测试运行dev

npm run dev

常用命令

  • 安装依赖:npm install
  • 启动本地服务器:npm run dev
  • 代码规范检测:npm run lint
  • 自动修复代码规范问题:npm run fix
  • 发布成npm包:npm publish

istrong-ca-fe-template's People

Contributors

wtmr avatar

Watchers

James Cloos avatar  avatar

Forkers

ysj123321

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.