Giter Site home page Giter Site logo

specs's Introduction

Specs

legokit is a collection of iOS components.

Installation

LEGOKIT is available through CocoaPods. To install it, simply add the following line to your Podfile:

source 'https://github.com/legokit/Specs.git'

pod 'LEGOCoreKit'

提交文档

  • 导入一个组件模板:

pod lib create [name]

  • 添加本地specs仓库(可忽略):

pod repo add [name] [url]

  • 本地验证组件合法性(可忽略):

pod lib lint

  • 推送Spec至远程Specs仓库:

pod repo push Specs

--allow-warnings(允许出现警告)

--use-libraries(引用的 .a 静态库/ .framework 静态库或者c语言文件)

--sources='https://github.com/legokit/Specs.git,https://github.com/CocoaPods/Specs.git’ (依赖其他私有库,公有库)

  • 清除本地组件缓存

pod cache clean LEGO_XXX

pod trunk…

  • delete 删除库的一个版本
  • info 返回库的信息
  • me 返回当前会话信息
  • push 发布到cocoapods 公有库
  • register 注册一个会话
  • add-owner 添加库的所有者
  • remove-owner 移除库的所有者

参考

CocoaPods 官网

开发规范

组件/类名将以 LEGO 开头,如 LEGOCoreKit,类名可以 LEGO 开头,以清晰识别其功能,如 LEGOCoreKit.h.

关于单元测试

在具体组件 Example 上进行单元测试完毕,再推送至 specs,specs 在无特殊情况下,项目依赖将使用最新版本.

specs's People

Contributors

yangqingren001 avatar yangqingren avatar machenshuang avatar

Stargazers

Max avatar

Watchers

Max avatar James Cloos avatar lijialiang avatar  avatar

Forkers

yangqingren

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.