Code Monkey home page Code Monkey logo

vue-component's Introduction

快速上手


使用 npm 安装

git仓库拉取项目,项目架构是基于vue-cli3.x【要求node8.x+】进行了一部分改造
所以可以直接在项目目录执行

npm i

项目目录

├── libs // 组件库
│   ├── components //  组件库js源码
│   ├── mixins  // 组件库公用 mixin
│   ├── styles  // 组件库css源码
│   ├── utils  // 组件公用 API
│   └── index.js // 入口文件
├── src // 组件资源区和文档放置区
│   ├── assets // 静态资源
│   │   ├── font // 组件库公用icon
│   │   ├── scss
│   │   │   ├── color.scss 全局样色表
│   │   │   ├── doc.scss  示例文档样式
│   │   │   ├── index.scss  全局样式引用
│   │   │   ├── reset.scss  浏览器样式重置
│   │   └── logo.png // logo
│   ├── components // 公共组件
│   │   ├── CodeShow.vue // 文档组件
│   │   ├── ColorShow.vue // 颜色展示组件
│   │   ├── Header.vue // header组件
│   │   └── Nav.vue // 侧边栏组件
│   ├── documents // 示例文档
│   │   ├── basicDocments // 基础组件库展示文档
│   │   ├── businessLibs // 业务组件库展示文档
│   ├── utils // 项目资源目录
│   │   ├── menu.json //  组件渲染列表
│   │   ├── icon.json //  icon展示列表
│   └── router // 路由文件
│   │     └── index.js // 路由配置文件
│   ├── App.vue // 根文件
│   ├── main.js // 入口文件
├── tests //  测试资源

........略

一个完整的组件开发应该包括:组件代码、文档展示、样式归纳、测试用例等等,此项目中集成了 ESlintjest,同学们有好的建议欢迎提出

Project setup

npm install

Compiles and hot-reloads for development

npm run dev

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Run your unit tests

npm run test

vue-component's People

Contributors

jinhongcan avatar zlmhs avatar zhanghengxin avatar

Watchers

James Cloos avatar

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.