Skip to content

Commit

Permalink
Merge pull request #241 from eslint/packagecleanup
Browse files Browse the repository at this point in the history
Update: Remove binary scripts
  • Loading branch information
nzakas committed Jan 20, 2016
2 parents c14bbef + a0ddc30 commit 15af2a1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 344 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ var ast = espree.parse(code, {
// create a top-level tokens array containing all tokens
tokens: true,

// try to continue parsing if an error is encountered, store errors in a
// top-level errors array
tolerant: true,

// specify the language version (3, 5, or 6, default is 5)
ecmaVersion: 5,

Expand Down Expand Up @@ -87,12 +83,13 @@ Espree is licensed under a permissive BSD 2-clause license.
* `npm run lint` - run all linting
* `npm run browserify` - creates a version of Espree that is usable in a browser

## Differences from Espree 1.x
## Differences from Espree 2.x

* The `tokenize()` method does not use `ecmaFeatures`. Any string will be tokenized completely based on ECMAScript 6 semantics.
* Trailing whitespace no longer is counted as part of a node.
* `let` and `const` declarations are no longer parsed by default. You must opt-in using `ecmaFeatures.blockBindings`.

* The `esparse` and `esvalidate` binary scripts have been removed.
* There is no `tolerant` option. We will investigate adding this back in the future.

## Known Incompatibilities

Expand Down
127 changes: 0 additions & 127 deletions bin/esparse.js

This file was deleted.

199 changes: 0 additions & 199 deletions bin/esvalidate.js

This file was deleted.

15 changes: 3 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
{
"name": "espree",
"description": "An actively-maintained fork of Esprima, the ECMAScript parsing infrastructure for multipurpose analysis",
"description": "An Esprima-compatible JavaScript parser built on Acorn",
"author": "Nicholas C. Zakas <[email protected]>",
"homepage": "https://github.com/eslint/espree",
"main": "espree.js",
"bin": {
"esparse": "./bin/esparse.js",
"esvalidate": "./bin/esvalidate.js"
},
"version": "3.0.0-alpha-2",
"files": [
"bin",
"lib",
"test/run.js",
"test/runner.js",
"test/test.js",
"test/compat.js",
"test/reflect.js",
"espree.js"
],
"engines": {
Expand Down Expand Up @@ -60,7 +50,8 @@
"ecmascript",
"javascript",
"parser",
"syntax"
"syntax",
"acorn"
],
"scripts": {
"generate-regex": "node tools/generate-identifier-regex.js",
Expand Down

0 comments on commit 15af2a1

Please sign in to comment.