Permalink
Browse files

Minor improvements for developing the spec

  • Loading branch information...
1 parent c836e4e commit 8bfc0fcec97f420fced9f653eef6b67e62b5a12a @domenic domenic committed Oct 2, 2015
Showing with 12 additions and 11 deletions.
  1. +2 −0 .gitignore
  2. +3 −0 README.md
  3. +7 −11 package.json
View
@@ -0,0 +1,2 @@
+node_modules/
+out/
View
@@ -48,3 +48,6 @@ If you wish to submit a proposal and are not a representative of a TC39 member,
2. [Register as a TC39 contributor](http://www.ecma-international.org/memento/register_TC39_Royalty_Free_Task_Group.php) (it is not necessary to submit the contribution as attachment to the form)
3. Submit a pull request here for your strawman proposal.
+## 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.
View
@@ -1,22 +1,18 @@
{
+ "private": true,
"name": "ecma262",
"version": "1.0.0",
"description": "The ECMAScript specification",
- "main": "index.js",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1",
+ "clean": "rm -rf out",
+ "build": "npm run clean && mkdir out && ecmarkup --verbose spec.html out/index.html --css out/ecmarkup.css --js out/ecmarkup.js",
+ "watch": "npm run clean && mkdir out && ecmarkup --watch --verbose spec.html out/index.html --css out/ecmarkup.css --js out/ecmarkup.js",
"update-pages": "node node_modules/ecmarkup/bin/ecmarkup.js spec.html _index.html --css _ecmarkup.css --js _ecmarkup.js --verbose && git checkout gh-pages && rm -f index.html ecmarkup.css ecmarkup.js && mv _index.html index.html && mv _ecmarkup.css ecmarkup.css && mv _ecmarkup.js ecmarkup.js && git add index.html ecmarkup.js ecmarkup.css && git commit -m \"update pages\" && git checkout master"
},
- "repository": {
- "type": "git",
- "url": "https://github.com/tc39/ecma262"
- },
+ "repository": "tc39/ecma262",
"author": "ECMA TC39",
- "license": "Copyright ECMA",
- "bugs": {
- "url": "https://github.com/tc39/ecma262/issues"
- },
- "homepage": "https://github.com/tc39/ecma262",
+ "license": "SEE LICENSE IN https://tc39.github.io/ecma262/#sec-copyright-and-software-license",
+ "homepage": "https://tc39.github.io/ecma262/",
"dependencies": {
"ecmarkup": "^2.5.4"
}

0 comments on commit 8bfc0fc

Please sign in to comment.