GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: update ESLint update script to consolidate dependencies · starrify/node@6fd0a60

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • tools.yml
  • tools
    • update-babel-eslint.sh
    • update-eslint.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/tools.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/tools.yml
-9Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ jobs:
2323
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
2424
./update-eslint.sh
2525
fi
26-
- id: "@babel/eslint-parser"
27-
run: |
28-
cd tools
29-
NEW_VERSION=$(npm view @babel/eslint-parser dist-tags.latest)
30-
CURRENT_VERSION=$(node -p "require('./node_modules/@babel/eslint-parser/package.json').version")
31-
if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
32-
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
33-
./update-babel-eslint.sh
34-
fi
3526
- id: "lint-md-dependencies"
3627
run: |
3728
cd tools/lint-md
Collapse file

‎tools/update-babel-eslint.sh‎

Copy file name to clipboardExpand all lines: tools/update-babel-eslint.sh
-31Lines changed: 0 additions & 31 deletions
This file was deleted.
Collapse file

‎tools/update-eslint.sh‎

Copy file name to clipboardExpand all lines: tools/update-eslint.sh
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,24 @@
55
# This script must be in the tools directory when it runs because it uses the
66
# script source file path to determine directories to work in.
77

8-
set -e
8+
set -ex
99

1010
cd "$( dirname "$0" )" || exit
11-
rm -rf node_modules/eslint node_modules/eslint-plugin-markdown
11+
rm -rf node_modules/eslint
1212
(
13+
rm -rf eslint-tmp
1314
mkdir eslint-tmp
1415
cd eslint-tmp || exit
1516

1617
ROOT="$PWD/../.."
1718
[ -z "$NODE" ] && NODE="$ROOT/out/Release/node"
18-
[ -x "$NODE" ] || NODE=`command -v node`
19+
[ -x "$NODE" ] || NODE=$(command -v node)
1920
NPM="$ROOT/deps/npm/bin/npm-cli.js"
2021

2122
"$NODE" "$NPM" init --yes
2223

23-
"$NODE" "$NPM" install --global-style --no-bin-links --ignore-scripts --no-package-lock eslint eslint-plugin-markdown
24-
24+
"$NODE" "$NPM" install --global-style --no-bin-links --ignore-scripts eslint
25+
(cd node_modules/eslint && "$NODE" "$NPM" install --no-bin-links --ignore-scripts --production --omit=peer eslint-plugin-markdown @babel/core @babel/eslint-parser @babel/plugin-syntax-import-assertions)
2526
# Use dmn to remove some unneeded files.
2627
"$NODE" "$NPM" exec -- [email protected] -f clean
2728
# Use removeNPMAbsolutePaths to remove unused data in package.json.
@@ -30,5 +31,4 @@ rm -rf node_modules/eslint node_modules/eslint-plugin-markdown
3031
)
3132

3233
mv eslint-tmp/node_modules/eslint node_modules/eslint
33-
mv eslint-tmp/node_modules/eslint-plugin-markdown node_modules/eslint-plugin-markdown
3434
rm -rf eslint-tmp/

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.