Giter VIP home page Giter VIP logo

ccms-components's Introduction

CCMS Components Build Status npm version

开发指南 Angular1.x + ES6 开发风格指南

Document

组件API文档

How To Use

npm install --save ccms-components
import angular from 'angular';
import ccmsComponents from 'ccms-components';

angular.module('app', [ccmsComponents]);

友情提示

ccms模块产品请将组件库手动设置到webpack的externals中,避免重复打包

externals: {'ccms-components': '\'ccms.components\''}

开发规范

  1. 所有组件模板以.tpl.html为后缀名,区别于业务模板的.html后缀,便于打包时对组件跟业务模板做差异化处理.

组件库使用 Phabricator 系统 做 code view,工作流程可以参考 Phabricator 新用户指南

运行文档服务

文档使用 jekyll 生成,这是使用 ruby 脚本编写的一个工具,为了运行 jekyll 你需要安装 ruby 环境。

推荐使用 rvm 管理 ruby 版本, 类似于用 nvm 管理 nodejs 版本。

# 安装 rvm 及 ruby
curl -L https://get.rvm.io | bash -s stable --autolibs=enabled --ruby

# 首次设置 ruby 版本
rvm use 2.3.0 --default --create

# 安装 bundler,用于管理依赖
gem install bundler

# 在 CCMS_Components 项目根目录运行 bundler install 即可安装 Gemfile 指定的依赖(包括 jekyll)
bundler install

# 在 CCMS_Components 项目根目录运行文档服务,http://localhost:3001/docs/
jekyll serve

ccms-components's People

Contributors

kuitos avatar arzyu avatar ashnorseman avatar

Watchers

James Cloos avatar 张斌 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.