开发和分布html组件框架 OpenComponents

码农软件 · 软件分类 · 网页组件 · 2019-04-09 07:41:39

软件介绍

oc

OpenComponents是一款用于开发和部署强大,分布式html组件的框架。

的目标是拥有一个系统,这个系统允许大量合作(可能涉及在多个项目数百名工程师),并且拥有一个促进代码共享,减少依赖性,而且容易接近新特性和实验的工具

介绍

OpenComponents包含两个方面:

该框架包含三个部分:

  • The cli allows developers to create, develop, test, and publish components.

  • The library is where the components are stored after the publishing. When components depend on static resources (such as images, css files, etc.) these are stored, during packaging and publishing, in a publicly-exposed part of the library that serves as cdn.

  • The registry is a rest api that is used to consume, retrieve, and publish components. Since they are immutable, the registry is the entity that handles the traffic between the library and the consumers.

组件

该组件由以下目录组成


创建

创建一个包含组件的文件夹

npm install oc -g
oc init hello-world

编辑,调试,测试

使用组件文件夹作为库和观察文件开始本地测试注册表:

oc dev . 3030

观察组件消耗时的状态

oc preview http://localhost:3030/hello-world

一旦组件发生变化,你将能够刷新这个页面,看看它的外观。

发布到注册表

您需要一个连接到的在线注册表。具有相同名称和版本的组件将无法在注册表共存

# you have to do the registry config first, just onc
eoc registry add http://my-components-registry.mydomain.com
# then, ship it
oc publish hello-world/

现在应该可以登录 http://my-components-registry.mydomain.com/hello-world.

本文地址:https://codercto.com/soft/d/3179.html

大思维:集体智慧如何改变我们的世界

大思维:集体智慧如何改变我们的世界

杰夫·摩根 / 郭莉玲、尹玮琦、徐强 / 中信出版集团股份有限公司 / 2018-8-1 / CNY 65.00

智能时代,我们如何与机器互联,利用技术来让我们变得更聪明?为什么智能技术不会自动导致智能结果呢?线上线下群体如何协作?社会、政府或管理系统如何解决复杂的问题?本书从哲学、计算机科学和生物学等领域收集见解,揭示了如何引导组织和社会充分利用人脑和数字技术进行大规模思考,从而提高整个集体的智力水平,以解决我们时代的巨大挑战。是英国社会创新之父的洞见之作,解析企业、群体、社会如何明智决策、协作进化。一起来看看 《大思维:集体智慧如何改变我们的世界》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

URL 编码/解码
URL 编码/解码

URL 编码/解码

SHA 加密
SHA 加密

SHA 加密工具