webcomponents.github.io

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

  • Owner: webcomponents/webcomponents.github.io
  • Platform: Linux, Mac, Windows
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Main metrics

Overview
Name With Ownerwebcomponents/webcomponents.github.io
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 3)
PlatformLinux, Mac, Windows
License:
所有者活动
Created At2013-08-19 13:36:14
Pushed At2017-01-11 02:05:30
Last Commit At2017-01-11 13:05:29
Release Count0
用户参与
Stargazers Count734
Watchers Count79
Fork Count116
Commits Count831
Has Issues Enabled
Issues Count196
Issue Open Count6
Pull Requests Count137
Pull Requests Open Count1
Pull Requests Close Count31
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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.