From f896b77fa7a53435796e461de92c2e17d36fb468 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Mon, 7 Oct 2024 09:38:33 -0500 Subject: [PATCH] Add a local pg and perl links. --- package-lock.json | 126 +++++++++++++++++++++++++++++++++------------ package.json | 6 +-- webpack.config.mjs | 9 +++- 3 files changed, 104 insertions(+), 37 deletions(-) diff --git a/package-lock.json b/package-lock.json index 604138d..2ee0c87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@codemirror/lang-html": "^6.4.9", "@codemirror/lang-xml": "^6.1.0", "@codemirror/theme-one-dark": "^6.1.2", - "@openwebwork/codemirror-lang-pg": "^0.0.1-beta.12", + "@openwebwork/codemirror-lang-pg": "file:../codemirror-lang-pg-link", "@replit/codemirror-emacs": "^6.1.0", "@replit/codemirror-vim": "^6.2.1", "cm6-theme-basic-dark": "^0.2.0", @@ -24,8 +24,8 @@ "cm6-theme-solarized-dark": "^0.2.0", "cm6-theme-solarized-light": "^0.2.0", "codemirror": "^6.0.1", - "codemirror-lang-mt": "^0.0.2-beta.1", - "codemirror-lang-perl": "^0.1.5-beta.3", + "codemirror-lang-mt": "file:../codemirror-lang-mt-link", + "codemirror-lang-perl": "file:../codemirror-lang-perl-link", "thememirror": "^2.0.1" }, "devDependencies": { @@ -47,6 +47,90 @@ "webpack-dev-server": "^5.1.0" } }, + "../codemirror-lang-mt-link": { + "name": "codemirror-lang-mt", + "version": "0.0.2-beta.1", + "license": "MIT", + "dependencies": { + "@codemirror/lang-css": "^6.3.0", + "@codemirror/lang-html": "^6.4.9", + "@codemirror/lang-javascript": "^6.2.2", + "@codemirror/language": "^6.10.2", + "@lezer/highlight": "^1.2.1", + "@lezer/lr": "^1.4.2" + }, + "devDependencies": { + "@codemirror/autocomplete": "^6.18.0", + "@lezer/generator": "^1.7.1", + "@stylistic/eslint-plugin": "^2.7.2", + "@types/mocha": "^10.0.7", + "eslint": "^9.9.1", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-mocha": "^10.5.0", + "mocha": "^10.7.3", + "prettier": "^3.3.3", + "rollup": "^4.21.2", + "rollup-plugin-dts": "^6.1.1", + "rollup-plugin-ts": "^3.4.5", + "ts-node": "^10.9.2", + "typescript": "^5.5.4", + "typescript-eslint": "^8.4.0" + } + }, + "../codemirror-lang-perl-link": { + "name": "codemirror-lang-perl", + "version": "0.1.5-beta.3", + "license": "MIT", + "dependencies": { + "@codemirror/language": "^6.10.2", + "@lezer/highlight": "^1.2.1", + "@lezer/lr": "^1.4.2" + }, + "devDependencies": { + "@codemirror/autocomplete": "^6.18.0", + "@lezer/generator": "^1.7.1", + "@stylistic/eslint-plugin": "^2.7.2", + "@types/mocha": "^10.0.7", + "eslint": "^9.9.1", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-mocha": "^10.5.0", + "mocha": "^10.7.3", + "prettier": "^3.3.3", + "rollup": "^4.21.2", + "rollup-plugin-dts": "^6.1.1", + "rollup-plugin-ts": "^3.4.5", + "ts-node": "^10.9.2", + "typescript": "^5.5.4", + "typescript-eslint": "^8.4.0" + } + }, + "../codemirror-lang-pg-link": { + "name": "@openwebwork/codemirror-lang-pg", + "version": "0.0.1-beta.12", + "license": "MIT", + "dependencies": { + "@codemirror/language": "^6.10.2", + "@lezer/highlight": "^1.2.1", + "@lezer/lr": "^1.4.2" + }, + "devDependencies": { + "@codemirror/autocomplete": "^6.18.0", + "@lezer/generator": "^1.7.1", + "@stylistic/eslint-plugin": "^2.7.2", + "@types/mocha": "^10.0.7", + "eslint": "^9.9.1", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-mocha": "^10.5.0", + "mocha": "^10.7.3", + "prettier": "^3.3.3", + "rollup": "^4.21.2", + "rollup-plugin-dts": "^6.1.1", + "rollup-plugin-ts": "^3.4.5", + "ts-node": "^10.9.2", + "typescript": "^5.5.4", + "typescript-eslint": "^8.4.0" + } + }, "node_modules/@awmottaz/prettier-plugin-void-html": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/@awmottaz/prettier-plugin-void-html/-/prettier-plugin-void-html-1.6.1.tgz", @@ -711,15 +795,8 @@ } }, "node_modules/@openwebwork/codemirror-lang-pg": { - "version": "0.0.1-beta.12", - "resolved": "https://registry.npmjs.org/@openwebwork/codemirror-lang-pg/-/codemirror-lang-pg-0.0.1-beta.12.tgz", - "integrity": "sha512-XqnhwdGCU4+OtzWZs9xs2blciMN3mBYQq8qUFI8/sgXj69HWkamWqva7qQYLJbRMAm8vuHBB6+stGHrKmmuWNg==", - "license": "MIT", - "dependencies": { - "@codemirror/language": "^6.10.2", - "@lezer/highlight": "^1.2.1", - "@lezer/lr": "^1.4.2" - } + "resolved": "../codemirror-lang-pg-link", + "link": true }, "node_modules/@replit/codemirror-emacs": { "version": "6.1.0", @@ -2069,29 +2146,12 @@ } }, "node_modules/codemirror-lang-mt": { - "version": "0.0.2-beta.1", - "resolved": "https://registry.npmjs.org/codemirror-lang-mt/-/codemirror-lang-mt-0.0.2-beta.1.tgz", - "integrity": "sha512-KfWdRQJmeeAiXrU72JHDwwFkZkWaO0yHmhXurdJhVYrRNc/TAOlDHOulA9lQBkritcoFoo2UyyybuoE2FWHtFw==", - "license": "MIT", - "dependencies": { - "@codemirror/lang-css": "^6.3.0", - "@codemirror/lang-html": "^6.4.9", - "@codemirror/lang-javascript": "^6.2.2", - "@codemirror/language": "^6.10.2", - "@lezer/highlight": "^1.2.1", - "@lezer/lr": "^1.4.2" - } + "resolved": "../codemirror-lang-mt-link", + "link": true }, "node_modules/codemirror-lang-perl": { - "version": "0.1.5-beta.3", - "resolved": "https://registry.npmjs.org/codemirror-lang-perl/-/codemirror-lang-perl-0.1.5-beta.3.tgz", - "integrity": "sha512-0mMDzAOHYy4EknXkYJ4JVv/CWFehKxgOuHasSeh8ZFzZ5Na+hYia/uUOPOgv0/lCxXZw04J3y0hH4GhZLK+Gqg==", - "license": "MIT", - "dependencies": { - "@codemirror/language": "^6.10.2", - "@lezer/highlight": "^1.2.1", - "@lezer/lr": "^1.4.2" - } + "resolved": "../codemirror-lang-perl-link", + "link": true }, "node_modules/color-convert": { "version": "2.0.1", diff --git a/package.json b/package.json index 72bce7c..8b45bf8 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@codemirror/lang-html": "^6.4.9", "@codemirror/lang-xml": "^6.1.0", "@codemirror/theme-one-dark": "^6.1.2", - "@openwebwork/codemirror-lang-pg": "^0.0.1-beta.12", + "@openwebwork/codemirror-lang-pg": "file:../codemirror-lang-pg-link", "@replit/codemirror-emacs": "^6.1.0", "@replit/codemirror-vim": "^6.2.1", "cm6-theme-basic-dark": "^0.2.0", @@ -39,8 +39,8 @@ "cm6-theme-solarized-dark": "^0.2.0", "cm6-theme-solarized-light": "^0.2.0", "codemirror": "^6.0.1", - "codemirror-lang-mt": "^0.0.2-beta.1", - "codemirror-lang-perl": "^0.1.5-beta.3", + "codemirror-lang-mt": "file:../codemirror-lang-mt-link", + "codemirror-lang-perl": "file:../codemirror-lang-perl-link", "thememirror": "^2.0.1" }, "devDependencies": { diff --git a/webpack.config.mjs b/webpack.config.mjs index 24b817f..70c3fd2 100644 --- a/webpack.config.mjs +++ b/webpack.config.mjs @@ -19,7 +19,14 @@ export default (_env, argv) => { modules: ['node_modules'], extensions: ['.ts', '.js'], mainFields: ['browser', 'module', 'main'], - alias: { src: path.resolve(import.meta.dirname, 'src') } + alias: { src: path.resolve(import.meta.dirname, 'src') }, + symlinks: false + }, + snapshot: { + managedPaths: [ + // eslint-disable-next-line @stylistic/max-len + /^(.+?[\\/]node_modules[\\/](?!(@openwebwork[\\/]codemirror-lang-pg)|(codemirror-lang-(perl|mt)))(@.+?[\\/])?.+?)[\\/]/ + ] }, module: { rules: [