Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: Remove binary scripts #241

Merged
merged 1 commit into from
Jan 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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