webcomponents.github.io

WebComponents.org 是社区成员记录 Web Components 最佳实践的地方。「WebComponents.org is where community-members document Web Components best practices」

  • 所有者: webcomponents/webcomponents.github.io
  • 平台: Linux, Mac, Windows
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

webcomponents.github.io

已废弃。请参见 webcomponents/webcomponents.org

WebComponents.org 是 Web 组件作者讨论和分享最佳实践、模式和学习资源的地方。

设置

这个网站是用 Node 中的静态生成器 DocPad 制作,安装它的最佳方式是通过 npm

首先,您需要克隆项目:

$ git clone https://github.com/webcomponents/webcomponents.github.io

然后转到该文件夹并安装所有依赖项:

$ cd webcomponents.github.io
$ npm install

现在你可以继续了!

用法

DocPad 在这个项目中有三个基本选项:

要在您编辑和保存文件(可在 http://localhost:9778 处查看)中重新生成站点,请运行:

$ npm run watch

要生成站点的静态版本,可以上传到服务器(它会创建一个名为 out 的文件夹),运行:

 <code class =“language-sh”> $ npm run build

要生成输出并将其发送到 gh-pages 分支,请运行:

$ npm run build

任务

我们在 Node 中使用 Grunt ,任务管理器>,使事物自动化。

要安装它和所有其他依赖项,请运行:

$ npm install -g grunt-cli

要检查性能回归,请运行:

$ grunt pagespeed

PS:您需要 生成 PageSpeed API 密钥 并将其定义为一个环境变量。

浏览器支持

我们确实在意它。

Chrome logo Edge logo Firefox logo Internet Explorer logo Opera logo Safari logo
Latest heavy_check_mark Latest heavy_check_mark Latest heavy_check_mark IE 9+ heavy_check_mark Latest heavy_check_mark Latest heavy_check_mark

团队

WebComponents.org 由这些人以及一大批令人尊敬的 贡献者 维护(名单请参见自述文件)。

贡献

请参阅参与指南

许可证

源代码可在 MIT 许可下获得,内容位于 创作共享 BY-SA 3.0

主要指標

概覽
名稱與所有者webcomponents/webcomponents.github.io
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台Linux, Mac, Windows
許可證
所有者活动
創建於2013-08-19 13:36:14
推送於2017-01-11 02:05:30
最后一次提交2017-01-11 13:05:29
發布數0
用户参与
星數731
關注者數79
派生數116
提交數831
已啟用問題?
問題數196
打開的問題數6
拉請求數137
打開的拉請求數1
關閉的拉請求數31
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

webcomponents.github.io

Build Status
Dependency Status
DevDependencies Status

Deprecated. Please see webcomponents/webcomponents.org.

WebComponents.org is a place for web component authors to discuss and share best practices, patterns and learning resources.

Setup

This site is made with DocPad, a static generator in Node, and the best way to install it is via npm.

First, you need to clone the project:

$ git clone https://github.com/webcomponents/webcomponents.github.io

Then go to the folder and install all dependencies:

$ cd webcomponents.github.io
$ npm install

Now you're good to go!

Usage

DocPad has three basic options used in this project:

To regenerate the site as you edit and save files, which can be viewed at http://localhost:9778, run:

$ npm run watch

To generate a static version of the site, that is ready to upload to a server (it will create a folder called out), run:

$ npm run build

To generate and send the output to gh-pages branch, run:

$ npm run deploy

Tasks

We use Grunt, a task-runner in Node, to automate things.

To install it and all the other dependencies, run:

$ npm install -g grunt-cli

To check performance regressions, run:

$ grunt pagespeed

P.S.: You'll need to generate a PageSpeed API key and defined it as an environment variable.

Browser Support

We do care about it.