Skip to content

Commit

Permalink
update dependecies
Browse files Browse the repository at this point in the history
- `npm audit fix`
- update minor and patch dependencies
- remove unnecessary `devDependencies`
- fix SCSS: @import > @use
- improve ncu for workspaces
  • Loading branch information
irahopkinson committed Dec 13, 2024
1 parent d795f89 commit 2e9062c
Show file tree
Hide file tree
Showing 44 changed files with 3,453 additions and 6,510 deletions.
11 changes: 11 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,22 @@ module.exports = {
},
],
rules: {
// Disable Stylelint's indentation control
'@stylistic/indentation': null,
// Let Prettier handle selector list formatting
'@stylistic/selector-list-comma-newline-after': null,
'color-named': null,
'max-nesting-depth': 2,
'no-descending-specificity': null,
'selector-max-compound-selectors': 4,
'selector-max-id': 1,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'apply', 'layer', 'screen', 'variants'],
},
],
},
};

Expand Down
7 changes: 7 additions & 0 deletions extensions/.stylelintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ module.exports = {
'no-descending-specificity': null,
'selector-max-compound-selectors': 4,
'selector-max-id': 1,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'apply', 'layer', 'screen', 'variants'],
},
],
},
};

Expand Down
4 changes: 2 additions & 2 deletions extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ Platform.Bible WebViews must be treated differently than other code, so this pro

### Built-in Tailwind CSS support

This project is equipped with [Tailwind CSS](https://tailwindcss.com/) configured the same way it is configured in Platform.Bible's React component library `platform-bible-react` to enable WebViews to match Platform.Bible's look and feel. To add Tailwind CSS to your WebView, simply import your extension's `./src/tailwind.css` file into your WebView's style `.scss` file (note that you should not add the `.css` extension when importing local CSS files into `.scss` files):
This project is equipped with [Tailwind CSS](https://tailwindcss.com/) configured the same way it is configured in Platform.Bible's React component library `platform-bible-react` to enable WebViews to match Platform.Bible's look and feel. To add Tailwind CSS to your WebView, simply use your extension's `./src/tailwind.css` file in your WebView's style `.scss` file (note that you should not add the `.css` extension when using local CSS files into `.scss` files):

```scss
@import './path/to/src/tailwind';
@use './path/to/src/tailwind';
```

Adding this import to your WebView's styles enables Tailwind CSS in the WebView. Alternatively, you can directly use `./src/tailwind.css` as your WebView's style file if you do not need any additional CSS. Important Tailwind configuration notes:
Expand Down
26 changes: 13 additions & 13 deletions extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,43 +48,43 @@
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.15.10",
"@swc/core": "^1.7.35",
"@swc/core": "^1.9.3",
"@tailwindcss/typography": "^0.5.15",
"@types/node": "^20.16.11",
"@types/react": "^18.3.11",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/webpack": "^5.28.5",
"@typescript-eslint/parser": "^6.21.0",
"autoprefixer": "^10.4.20",
"concurrently": "^9.0.1",
"concurrently": "^9.1.0",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.3",
"css-loader": "^6.11.0",
"escape-string-regexp": "^5.0.0",
"glob": "^10.4.5",
"lucide-react": "^0.452.0",
"lucide-react": "^0.462.0",
"papi-dts": "file:../lib/papi-dts",
"platform-bible-react": "file:../lib/platform-bible-react",
"postcss": "^8.4.47",
"postcss": "^8.4.49",
"postcss-loader": "^8.1.1",
"prettier": "^3.3.3",
"prettier": "^3.4.1",
"prettier-plugin-jsdoc": "^1.3.0",
"replace-in-file": "^7.2.0",
"sass": "^1.79.5",
"sass-loader": "^16.0.2",
"stylelint": "^16.10.0",
"sass": "^1.81.1",
"sass-loader": "^16.0.3",
"stylelint": "^16.11.0",
"stylelint-config-recommended": "^14.0.1",
"stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-config-tailwindcss": "^0.0.7",
"swc-loader": "^0.2.6",
"tailwindcss": "^3.4.13",
"tailwindcss": "^3.4.15",
"tailwindcss-animate": "^1.0.7",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"tsx": "^4.19.1",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"tsx": "^4.19.2",
"typescript": "^5.4.5",
"webpack": "^5.95.0",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4",
"webpack-merge": "^6.0.1",
"zip-folder-promise": "^1.2.0"
Expand Down
7 changes: 7 additions & 0 deletions extensions/src/hello-someone/.stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ module.exports = {
'no-descending-specificity': null,
'selector-max-compound-selectors': 4,
'selector-max-id': 1,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'apply', 'layer', 'screen', 'variants'],
},
],
},
};

Expand Down
28 changes: 14 additions & 14 deletions extensions/src/hello-someone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
"platform-bible-utils": "file:../../../lib/platform-bible-utils"
},
"devDependencies": {
"@swc/core": "^1.7.35",
"@swc/core": "^1.9.3",
"@tailwindcss/typography": "^0.5.15",
"@types/node": "^20.16.11",
"@types/react": "^18.3.11",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/webpack": "^5.28.5",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"autoprefixer": "^10.4.20",
"concurrently": "^9.0.1",
"concurrently": "^9.1.0",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.3",
"css-loader": "^6.11.0",
Expand All @@ -59,34 +59,34 @@
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-no-type-assertion": "^1.3.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^4.6.2",
"glob": "^10.4.5",
"lucide-react": "^0.452.0",
"lucide-react": "^0.462.0",
"papi-dts": "file:../../../lib/papi-dts",
"platform-bible-react": "file:../../../lib/platform-bible-react",
"postcss": "^8.4.47",
"postcss": "^8.4.49",
"postcss-loader": "^8.1.1",
"prettier": "^3.3.3",
"prettier": "^3.4.1",
"prettier-plugin-jsdoc": "^1.3.0",
"sass": "^1.79.5",
"sass-loader": "^16.0.2",
"stylelint": "^16.10.0",
"sass": "^1.81.1",
"sass-loader": "^16.0.3",
"stylelint": "^16.11.0",
"stylelint-config-recommended": "^14.0.1",
"stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-config-tailwindcss": "^0.0.7",
"swc-loader": "^0.2.6",
"tailwindcss": "^3.4.13",
"tailwindcss": "^3.4.15",
"tailwindcss-animate": "^1.0.7",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"typescript": "^5.4.5",
"webpack": "^5.95.0",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4",
"webpack-merge": "^6.0.1",
"zip-build": "^1.8.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ const configBase: webpack.Configuration = {
'@emotion/react': path.resolve(__dirname, '..', '../../../node_modules/@emotion/react'),
'@emotion/styled': path.resolve(__dirname, '..', '../../../node_modules/@emotion/styled'),
'@mui/material': path.resolve(__dirname, '..', '../../../node_modules/@mui/material'),
'react-data-grid': path.resolve(__dirname, '..', '../../../node_modules/react-data-grid'),
},
},
};
Expand Down
7 changes: 7 additions & 0 deletions extensions/src/hello-world/.stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ module.exports = {
'no-descending-specificity': null,
'selector-max-compound-selectors': 4,
'selector-max-id': 1,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'apply', 'layer', 'screen', 'variants'],
},
],
},
};

Expand Down
28 changes: 14 additions & 14 deletions extensions/src/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
"platform-bible-utils": "file:../../../lib/platform-bible-utils"
},
"devDependencies": {
"@swc/core": "^1.7.35",
"@swc/core": "^1.9.3",
"@tailwindcss/typography": "^0.5.15",
"@types/node": "^20.16.11",
"@types/react": "^18.3.11",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/webpack": "^5.28.5",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"autoprefixer": "^10.4.20",
"concurrently": "^9.0.1",
"concurrently": "^9.1.0",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.3",
"css-loader": "^6.11.0",
Expand All @@ -59,34 +59,34 @@
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-no-type-assertion": "^1.3.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^4.6.2",
"glob": "^10.4.5",
"lucide-react": "^0.452.0",
"lucide-react": "^0.462.0",
"papi-dts": "file:../../../lib/papi-dts",
"platform-bible-react": "file:../../../lib/platform-bible-react",
"postcss": "^8.4.47",
"postcss": "^8.4.49",
"postcss-loader": "^8.1.1",
"prettier": "^3.3.3",
"prettier": "^3.4.1",
"prettier-plugin-jsdoc": "^1.3.0",
"sass": "^1.79.5",
"sass-loader": "^16.0.2",
"stylelint": "^16.10.0",
"sass": "^1.81.1",
"sass-loader": "^16.0.3",
"stylelint": "^16.11.0",
"stylelint-config-recommended": "^14.0.1",
"stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-config-tailwindcss": "^0.0.7",
"swc-loader": "^0.2.6",
"tailwindcss": "^3.4.13",
"tailwindcss": "^3.4.15",
"tailwindcss-animate": "^1.0.7",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"typescript": "^5.4.5",
"webpack": "^5.95.0",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4",
"webpack-merge": "^6.0.1",
"zip-build": "^1.8.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import './hello-world.web-view.base';
@use './hello-world.web-view.base';

.title {
.framework {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import './hello-world.web-view.base';
@use './hello-world.web-view.base';

.title {
color: rebeccapurple;
Expand Down
1 change: 0 additions & 1 deletion extensions/src/hello-world/webpack/webpack.config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ const configBase: webpack.Configuration = {
'@emotion/react': path.resolve(__dirname, '..', '../../../node_modules/@emotion/react'),
'@emotion/styled': path.resolve(__dirname, '..', '../../../node_modules/@emotion/styled'),
'@mui/material': path.resolve(__dirname, '..', '../../../node_modules/@mui/material'),
'react-data-grid': path.resolve(__dirname, '..', '../../../node_modules/react-data-grid'),
},
},
};
Expand Down
7 changes: 7 additions & 0 deletions extensions/src/legacy-comment-manager/.stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ module.exports = {
'no-descending-specificity': null,
'selector-max-compound-selectors': 4,
'selector-max-id': 1,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'apply', 'layer', 'screen', 'variants'],
},
],
},
};

Expand Down
28 changes: 14 additions & 14 deletions extensions/src/legacy-comment-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
"platform-bible-utils": "file:../../../lib/platform-bible-utils"
},
"devDependencies": {
"@swc/core": "^1.7.35",
"@swc/core": "^1.9.3",
"@tailwindcss/typography": "^0.5.15",
"@types/node": "^20.16.11",
"@types/react": "^18.3.11",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/webpack": "^5.28.5",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"autoprefixer": "^10.4.20",
"concurrently": "^9.0.1",
"concurrently": "^9.1.0",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.3",
"css-loader": "^6.11.0",
Expand All @@ -60,34 +60,34 @@
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-no-type-assertion": "^1.3.0",
"eslint-plugin-promise": "^6.6.0",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^4.6.2",
"glob": "^10.4.5",
"lucide-react": "^0.452.0",
"lucide-react": "^0.462.0",
"papi-dts": "file:../../../lib/papi-dts",
"platform-bible-react": "file:../../../lib/platform-bible-react",
"postcss": "^8.4.47",
"postcss": "^8.4.49",
"postcss-loader": "^8.1.1",
"prettier": "^3.3.3",
"prettier": "^3.4.1",
"prettier-plugin-jsdoc": "^1.3.0",
"sass": "^1.79.5",
"sass-loader": "^16.0.2",
"stylelint": "^16.10.0",
"sass": "^1.81.1",
"sass-loader": "^16.0.3",
"stylelint": "^16.11.0",
"stylelint-config-recommended": "^14.0.1",
"stylelint-config-sass-guidelines": "^12.1.0",
"stylelint-config-tailwindcss": "^0.0.7",
"swc-loader": "^0.2.6",
"tailwindcss": "^3.4.13",
"tailwindcss": "^3.4.15",
"tailwindcss-animate": "^1.0.7",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"typescript": "^5.4.5",
"webpack": "^5.95.0",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4",
"webpack-merge": "^6.0.1",
"zip-build": "^1.8.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ const configBase: webpack.Configuration = {
'@emotion/react': path.resolve(__dirname, '..', '../../../node_modules/@emotion/react'),
'@emotion/styled': path.resolve(__dirname, '..', '../../../node_modules/@emotion/styled'),
'@mui/material': path.resolve(__dirname, '..', '../../../node_modules/@mui/material'),
'react-data-grid': path.resolve(__dirname, '..', '../../../node_modules/react-data-grid'),
},
},
};
Expand Down
7 changes: 7 additions & 0 deletions extensions/src/paratext-registration/.stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ module.exports = {
'no-descending-specificity': null,
'selector-max-compound-selectors': 4,
'selector-max-id': 1,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'apply', 'layer', 'screen', 'variants'],
},
],
},
};

Expand Down
Loading

0 comments on commit 2e9062c

Please sign in to comment.