Skip to content

Commit

Permalink
Minor improvements for developing the spec
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Oct 2, 2015
1 parent c836e4e commit 8bfc0fc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
node_modules/
out/
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -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.
18 changes: 7 additions & 11 deletions package.json
@@ -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"
}
Expand Down

0 comments on commit 8bfc0fc

Please sign in to comment.