Skip to content

Commit

Permalink
Update dev dependencies (#10247)
Browse files Browse the repository at this point in the history
  • Loading branch information
budnix committed Feb 16, 2023
1 parent 95920ca commit 2726773
Show file tree
Hide file tree
Showing 10 changed files with 2,462 additions and 1,945 deletions.
1 change: 1 addition & 0 deletions .github/workflows/code-examples.yml
Expand Up @@ -50,6 +50,7 @@ env:
./wrappers/react/node_modules/
./wrappers/vue/node_modules/
./wrappers/vue3/node_modules/
./visual-tests/node_modules/
jobs:
prepare-matrix:
Expand Down
22 changes: 12 additions & 10 deletions handsontable/.config/languages-development.js
Expand Up @@ -6,7 +6,6 @@ const SOURCE_LANGUAGES_DIRECTORY = 'src/i18n/languages';
const OUTPUT_LANGUAGES_DIRECTORY = 'languages';

const path = require('path');
const StringReplacePlugin = require('string-replace-webpack-plugin');
const WebpackOnBuildPlugin = require('on-build-webpack');
const fs = require('fs');
const fsExtra = require('fs-extra');
Expand Down Expand Up @@ -36,29 +35,32 @@ function getEntryJsFiles() {

const ruleForSnippetsInjection = {
test: /\.js$/,
loader: StringReplacePlugin.replace({
replacements: [
loader: 'string-replace-loader',
options: {
multiple: [
{
pattern: /import.+constants.+/,
replacement: function() {
search: /import.+constants.+/,
replace() {
// Adding the `index.js` file at the end of the import path ensures that the language
// will require the Handsontable module using the CommonJS environment (.js files).
const snippet1 = `import Handsontable from '${PACKAGE_FILENAME}';`;
const snippet2 = `const C = Handsontable.languages.dictionaryKeys;`;

return `${snippet1}${NEW_LINE_CHAR.repeat(2)}${snippet2}`;
}
},
flags: 'g'
},
{
pattern: /export default dictionary.+/,
replacement: function(matchingPhrase) {
search: /export default dictionary.+/,
replace(matchingPhrase) {
const snippet = `Handsontable.languages.registerLanguageDictionary(dictionary);`;

return `${snippet}${NEW_LINE_CHAR.repeat(2)}${matchingPhrase}`;
}
},
flags: 'g'
}
]
})
}
};

module.exports.create = function create() {
Expand Down
1 change: 1 addition & 0 deletions handsontable/jest.config.js
@@ -1,4 +1,5 @@
module.exports = {
testEnvironment: 'jsdom',
roots: [
'<rootDir>/test/unit',
'<rootDir>/src'
Expand Down
23 changes: 11 additions & 12 deletions handsontable/package.json
Expand Up @@ -106,11 +106,11 @@
"babel-plugin-forbidden-imports": "^0.1.2",
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
"babel-plugin-transform-require-ignore": "^0.1.1",
"chalk": "^4.1.0",
"chalk": "^4.1.2",
"concurrently": "^6.4.0",
"copy-webpack-plugin": "^6.0.3",
"cpy-cli": "^3.1.1",
"cross-env": "^5.0.1",
"cross-env": "^7.0.3",
"css-loader": "^2.1.1",
"dtslint": "^4.2.0",
"env-cmd": "^9.0.3",
Expand All @@ -122,31 +122,30 @@
"execa": "^5.0.0",
"fs-extra": "^4.0.2",
"glob": "^7.1.2",
"html-parse-stringify": "^2.0.3",
"html-webpack-plugin": "^3.2.0",
"http-server": "^0.12.3",
"global-jsdom": "^8.7.0",
"html-parse-stringify": "^3.0.1",
"html-webpack-plugin": "^4.5.2",
"http-server": "^14.1.1",
"jasmine-co": "^1.2.2",
"jasmine-console-reporter": "^3.1.0",
"jasmine-core": "^3.4.0",
"jasmine-terminal-reporter": "^1.0.3",
"jest": "^26.6.3",
"jest-cli": "^26.6.3",
"jsdom": "^15.2.1",
"jsdom-global": "^3.0.2",
"loader-utils": "^1.1.0",
"lodash": "^4.17.20",
"mini-css-extract-plugin": "^0.5.0",
"minimatch": "^3.0.4",
"on-build-webpack": "^0.1.0",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"optimize-css-assets-webpack-plugin": "^6.0.1",
"progress-bar-webpack-plugin": "^1.10.0",
"puppeteer": "^19.2.2",
"replace-in-file": "^6.1.0",
"rimraf": "^2.5.4",
"sass": "^1.3.0",
"sass-loader": "^10.2.0",
"string-replace-webpack-plugin": "^0.1.3",
"style-loader": "^0.18.2",
"rimraf": "^3.0.2",
"sass": "^1.58.0",
"sass-loader": "^10.4.1",
"string-replace-loader": "^2.3.0",
"stylelint": "^13.3.3",
"typescript": "3.8.2",
"webpack": "^4.44.1",
Expand Down

0 comments on commit 2726773

Please sign in to comment.