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

Chore: Fix/remove tools (fixes #471) #476

Merged
merged 3 commits into from Apr 21, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -70,12 +70,11 @@
"unit": "npm-run-all -s unit:*",
"unit:esm": "nyc mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'",
"unit:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs",
"generate-regex": "node tools/generate-identifier-regex.js",
"test": "npm-run-all -p unit lint",
"lint": "eslint \"*.?(c)js\" lib/ tests/lib/",
"fixlint": "npm run lint -- --fix",
"rollup": "rollup -c rollup.config.js",
"sync-docs": "node sync-docs.js",
"sync-docs": "node tools/sync-docs.js",
"generate-release": "eslint-generate-release",
"generate-alpharelease": "eslint-generate-prerelease alpha",
"generate-betarelease": "eslint-generate-prerelease beta",
Expand Down
15 changes: 0 additions & 15 deletions tools/convert.js

This file was deleted.

10 changes: 4 additions & 6 deletions tools/create-test.js
Expand Up @@ -3,8 +3,6 @@
* @author Nicholas C. Zakas
*/

"use strict";

/*
* Usage:
* node tools/create-test.js ecma-features/binaryLiterals/ file_with_code.js
Expand All @@ -16,9 +14,9 @@
// Requirements
//------------------------------------------------------------------------------

var shelljs = require("shelljs"),
espree = require("../espree"),
path = require("path");
import shelljs from "shelljs";
import { parse } from "../espree.js"
import path from "path";

//------------------------------------------------------------------------------
// Initialization
Expand Down Expand Up @@ -72,7 +70,7 @@ code.forEach(function(source, index) {
//------------------------------------------------------------------------------

try {
result = espree.parse(sourceCode, {
result = parse(sourceCode, {
ecmaVersion: 8, // change as needed
ecmaFeatures: {
experimentalObjectRestSpread: true
Expand Down
52 changes: 0 additions & 52 deletions tools/generate-identifier-regex.js

This file was deleted.

335 changes: 0 additions & 335 deletions tools/generate-test-fixture.js

This file was deleted.

18 changes: 0 additions & 18 deletions tools/list-complexity.js

This file was deleted.

File renamed without changes.
14 changes: 0 additions & 14 deletions tools/update-coverage.sh

This file was deleted.

72 changes: 0 additions & 72 deletions tools/update-tests-esprima.js

This file was deleted.

7 changes: 3 additions & 4 deletions tools/update-tests.js → tools/update-tests.cjs
Expand Up @@ -2,10 +2,7 @@
* @fileoverview A simple script to update existing tests to reflect new
* parser changes.
* @author Nicholas C. Zakas

"use strict";

/*
*
* Usage:
* node tools/update-tests.js
*
Expand All @@ -15,6 +12,8 @@
// Requirements
//------------------------------------------------------------------------------

"use strict";

var shelljs = require("shelljs"),
espree = require("../espree"),
tester = require("../tests/lib/tester"),
nzakas marked this conversation as resolved.
Show resolved Hide resolved
Expand Down