From 01cfdd170e76581283ef73f81e095495f4a88e4e Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sat, 29 Jul 2023 16:17:42 +0530 Subject: [PATCH 1/6] chore: standardize npm script names --- package.json | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 12c8d0b1..a427b63c 100644 --- a/package.json +++ b/package.json @@ -67,22 +67,21 @@ "pre-commit": "lint-staged" }, "scripts": { - "unit": "npm-run-all -s unit:*", - "unit:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'", - "unit:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs", - "test": "npm-run-all -p unit lint", - "lint": "eslint . --report-unused-disable-directives", - "fixlint": "npm run lint -- --fix", "build": "rollup -c rollup.config.js", "build:debug": "npm run build -- -m", - "update-version": "node tools/update-version.js", - "pretest": "npm run build", + "lint": "eslint . --report-unused-disable-directives", + "lint:fix": "npm run lint -- --fix", "prepublishOnly": "npm run update-version && npm run build", - "sync-docs": "node sync-docs.js", - "generate-release": "eslint-generate-release", - "generate-alpharelease": "eslint-generate-prerelease alpha", - "generate-betarelease": "eslint-generate-prerelease beta", - "generate-rcrelease": "eslint-generate-prerelease rc", - "publish-release": "eslint-publish-release" + "pretest": "npm run build", + "sync:docs": "node sync-docs.js", + "test": "npm-run-all -s test:*", + "test:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'", + "test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs", + "update-version": "node tools/update-version.js", + "release:generate:latest": "eslint-generate-release", + "release:generate:alpha": "eslint-generate-prerelease alpha", + "release:generate:beta": "eslint-generate-prerelease beta", + "release:generate:rc": "eslint-generate-prerelease rc", + "release:publish": "eslint-publish-release" } } From db9529dcbf0414ef239710c7e1e4fba115f3b046 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sat, 29 Jul 2023 16:20:25 +0530 Subject: [PATCH 2/6] ci: update test GHA job --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9e7069e..db62f4cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,5 @@ jobs: node-version: ${{ matrix.node }} - name: Install dependencies run: npm install - - name: Build commonjs - run: npm run build - name: Run tests - run: npm run unit + run: npm run test From b1ed4106bc1e327c2ada4311d7053f80c8d7e6fa Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sat, 29 Jul 2023 16:33:46 +0530 Subject: [PATCH 3/6] chore: standardize npm script names --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index a427b63c..91e9faf5 100644 --- a/package.json +++ b/package.json @@ -71,17 +71,17 @@ "build:debug": "npm run build -- -m", "lint": "eslint . --report-unused-disable-directives", "lint:fix": "npm run lint -- --fix", - "prepublishOnly": "npm run update-version && npm run build", + "prepublishOnly": "npm run update:version && npm run build", "pretest": "npm run build", - "sync:docs": "node sync-docs.js", - "test": "npm-run-all -s test:*", - "test:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'", - "test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs", - "update-version": "node tools/update-version.js", "release:generate:latest": "eslint-generate-release", "release:generate:alpha": "eslint-generate-prerelease alpha", "release:generate:beta": "eslint-generate-prerelease beta", "release:generate:rc": "eslint-generate-prerelease rc", - "release:publish": "eslint-publish-release" + "release:publish": "eslint-publish-release", + "sync:docs": "node sync-docs.js", + "test": "npm-run-all -s test:*", + "test:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'", + "test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs", + "update:version": "node tools/update-version.js" } } From 7714094f03ea6ad6daafec1b5881a63766d04229 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Wed, 2 Aug 2023 06:03:16 +0530 Subject: [PATCH 4/6] chore: standardize npm script names --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 91e9faf5..b3e38722 100644 --- a/package.json +++ b/package.json @@ -69,19 +69,19 @@ "scripts": { "build": "rollup -c rollup.config.js", "build:debug": "npm run build -- -m", + "build:docs": "node sync-docs.js", + "build:update-version": "node tools/update-version.js", "lint": "eslint . --report-unused-disable-directives", "lint:fix": "npm run lint -- --fix", - "prepublishOnly": "npm run update:version && npm run build", + "prepublishOnly": "npm run build:update-version && npm run build", "pretest": "npm run build", "release:generate:latest": "eslint-generate-release", "release:generate:alpha": "eslint-generate-prerelease alpha", "release:generate:beta": "eslint-generate-prerelease beta", "release:generate:rc": "eslint-generate-prerelease rc", "release:publish": "eslint-publish-release", - "sync:docs": "node sync-docs.js", "test": "npm-run-all -s test:*", "test:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'", - "test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs", - "update:version": "node tools/update-version.js" + "test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs" } } From 48c4b67ae0a2d6c0016c4fb54cf9af1b1240514c Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Wed, 2 Aug 2023 06:04:40 +0530 Subject: [PATCH 5/6] docs: update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 87ace4c1..58b863ce 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ We work hard to ensure that Espree is safe for everyone and that security issues ## Build Commands -* `npm test` - run all linting and tests +* `npm test` - run all tests * `npm run lint` - run all linting ## Differences from Espree 2.x From ea4f2b53d7f279eacdac19eb9757f2825295bbb7 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sat, 5 Aug 2023 06:37:08 +0530 Subject: [PATCH 6/6] chore: fix build:docs script Co-authored-by: Milos Djermanovic --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b3e38722..60b71853 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "scripts": { "build": "rollup -c rollup.config.js", "build:debug": "npm run build -- -m", - "build:docs": "node sync-docs.js", + "build:docs": "node tools/sync-docs.js", "build:update-version": "node tools/update-version.js", "lint": "eslint . --report-unused-disable-directives", "lint:fix": "npm run lint -- --fix",