ecma262 README

The project's README from github.com/tc39/ecma262. As one markdown file: README.md.

ECMAScript

This repo

This repository contains the source for the current draft of ECMA-262, the ECMAScript® Language Specification.

This source is processed to obtain a human-readable version, which you can view here.

If you want to explore how the specification was written, you can also view the source with its history in searchfox.

Current Proposals

Proposals follow the TC39 process and are tracked in the proposals repository.

Contributing New Proposals

Please see Contributing to ECMAScript for the most up-to-date information on contributing proposals to this standard.

Developing the Specification

After cloning, do npm install to set up your environment. You can then do npm run build to build the spec or npm run watch to set up a continuous build. The results will appear in the out directory, which you can use npm run clean to delete.

Community

ecma262 (tc39/ecma262)

Searching Database…

15.7K ·GitHub
这是什么?它是 ECMA-262 当前草案的源码仓库。ECMA-262 就是 ECMAScript(JavaScript)语言规范,由 TC39 委员会维护。源码经过处理后生成人类可读的规范版本。
这是一个 JavaScript 引擎或者能在代码里用的库吗?都不是——它是规范文档本身,不是软件。草案用标记语言编写,再处理成开发者和引擎作者阅读的 HTML 版本。
如何在本地构建这份规范?克隆仓库,运行 npm install,然后用 npm run build 构建规范;npm run watch 可以持续构建。输出放在 out 目录里,npm run clean 会删掉它。
要参与开发需要安装什么?只需 Node.js 和 npm。整套工具链(包括渲染规范的 ecmarkup 处理器)通过 npm install 配置好,不涉及其他运行时。
ecmarkup 是什么?它是编写这份规范所用的工具链。构建脚本会对 spec.html 运行 ecmarkup 并加上 --multipage 参数,在 out 目录里生成多页的 HTML 版本。
草案会自动检查错误吗?会。GitHub Actions 工作流会构建规范并用 esmeta 做类型检查,默认构建还带 --lint-spec --strict 参数,所以规范写法或格式有问题都会导致构建失败。
能拿到 PDF 版的规范吗?有专门的脚本:npm run pdf 会构建一个带外部资源的可打印版本,并借助 Prince(prince-books)渲染出 out/ECMA-262.pdf。
Creator
tc39
Size
1.5 GB
Stars
15.7K
Age
12y
Commits · 90 Days