diff --git a/examples/gondel-react/package.json b/examples/gondel-react/package.json index 02b7420..ce24da9 100644 --- a/examples/gondel-react/package.json +++ b/examples/gondel-react/package.json @@ -15,6 +15,7 @@ "react-dom": "17.0.2" }, "devDependencies": { + "@types/react": "18.2.31", "css-loader": "5.2.7", "html-webpack-plugin": "4.5.2", "style-loader": "2.0.0", diff --git a/examples/gondel-react/tsconfig.json b/examples/gondel-react/tsconfig.json index a405e4b..0dc00d4 100644 --- a/examples/gondel-react/tsconfig.json +++ b/examples/gondel-react/tsconfig.json @@ -1,5 +1,4 @@ -{ - "extends": "../../tsconfig.json", +{ "compilerOptions": { "skipLibCheck": true, "sourceMap": true, @@ -17,11 +16,16 @@ "removeComments": false, "importHelpers": true, "outDir": "dist", - "types": ["jest", "webpack-env"], + "types": ["jest", "webpack-env", "node"], "lib": [ "es6", "es7", "dom" ] + }, + "exclude": ["dist", "build", "node_modules"], + "paths": { + "@gondel/core/*": ["./packages/core/src/*"], + "@gondel/plugin-*/*": ["./packages/plugins/*/*"] } } diff --git a/examples/plugin-data/package.json b/examples/plugin-data/package.json index 7222ee1..6c3d66a 100644 --- a/examples/plugin-data/package.json +++ b/examples/plugin-data/package.json @@ -6,11 +6,12 @@ "start": "webpack serve" }, "dependencies": { - "@gondel/core": "^1.2.8", + "@gondel/core": "1.2.8", "@gondel/plugin-data": "^1.2.8", "@gondel/plugin-hot": "^1.2.8" }, "devDependencies": { + "@babel/core": "7.22.10", "html-webpack-plugin": "4.5.2", "ts-config-webpack-plugin": "2.0.3", "webpack": "4.46.0", diff --git a/examples/plugin-data/tsconfig.json b/examples/plugin-data/tsconfig.json index 99bd998..7d9da74 100644 --- a/examples/plugin-data/tsconfig.json +++ b/examples/plugin-data/tsconfig.json @@ -1,6 +1,27 @@ { - "extends": "../../tsconfig.json", "compilerOptions": { - "skipLibCheck": true + "skipLibCheck": true, + "sourceMap": true, + "target": "es5", + "module": "esnext", + "jsx": "react", + "allowSyntheticDefaultImports": true, + "moduleResolution": "node", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "declaration": false, + "noImplicitAny": true, + "noImplicitReturns": true, + "strictNullChecks": true, + "removeComments": false, + "importHelpers": true, + "outDir": "dist", + "types": ["jest", "webpack-env"], + "lib": ["es6", "es7", "dom"] + }, + "exclude": ["dist", "build", "node_modules"], + "paths": { + "@gondel/core/*": ["./packages/core/src/*"], + "@gondel/plugin-*/*": ["./packages/plugins/*/*"] } } diff --git a/examples/react-gondel/package.json b/examples/react-gondel/package.json index fabd878..0c369f1 100644 --- a/examples/react-gondel/package.json +++ b/examples/react-gondel/package.json @@ -16,8 +16,10 @@ }, "devDependencies": { "@babel/core": "7.22.10", + "@babel/plugin-proposal-decorators": "7.23.2", "@babel/preset-env": "7.22.10", "@babel/preset-react": "7.22.5", + "babel-plugin-transform-class-properties": "6.24.1", "html-webpack-plugin": "4.5.2", "js-config-webpack-plugin": "2.0.3", "webpack": "4.46.0", diff --git a/examples/typescript/tsconfig.json b/examples/typescript/tsconfig.json index 99bd998..7d9da74 100644 --- a/examples/typescript/tsconfig.json +++ b/examples/typescript/tsconfig.json @@ -1,6 +1,27 @@ { - "extends": "../../tsconfig.json", "compilerOptions": { - "skipLibCheck": true + "skipLibCheck": true, + "sourceMap": true, + "target": "es5", + "module": "esnext", + "jsx": "react", + "allowSyntheticDefaultImports": true, + "moduleResolution": "node", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "declaration": false, + "noImplicitAny": true, + "noImplicitReturns": true, + "strictNullChecks": true, + "removeComments": false, + "importHelpers": true, + "outDir": "dist", + "types": ["jest", "webpack-env"], + "lib": ["es6", "es7", "dom"] + }, + "exclude": ["dist", "build", "node_modules"], + "paths": { + "@gondel/core/*": ["./packages/core/src/*"], + "@gondel/plugin-*/*": ["./packages/plugins/*/*"] } } diff --git a/package-lock.json b/package-lock.json index 5e1ba10..9380d00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -130,6 +130,7 @@ "react-dom": "17.0.2" }, "devDependencies": { + "@types/react": "18.2.31", "css-loader": "5.2.7", "html-webpack-plugin": "4.5.2", "style-loader": "2.0.0", @@ -140,6 +141,17 @@ "webpack-dev-server": "4.15.1" } }, + "examples/gondel-react/node_modules/@types/react": { + "version": "18.2.31", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.31.tgz", + "integrity": "sha512-c2UnPv548q+5DFh03y8lEDeMfDwBn9G3dRwfkrxQMo/dOtRHUUO57k6pHvBIfH/VF4Nh+98mZ5aaSe+2echD5g==", + "dev": true, + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, "examples/gondel-react/node_modules/typescript": { "version": "4.7.4", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", @@ -214,11 +226,12 @@ "name": "gondel-plugin-data-example", "version": "1.2.8", "dependencies": { - "@gondel/core": "^1.2.8", + "@gondel/core": "1.2.8", "@gondel/plugin-data": "^1.2.8", "@gondel/plugin-hot": "^1.2.8" }, "devDependencies": { + "@babel/core": "7.22.10", "html-webpack-plugin": "4.5.2", "ts-config-webpack-plugin": "2.0.3", "webpack": "4.46.0", @@ -299,8 +312,10 @@ }, "devDependencies": { "@babel/core": "7.22.10", + "@babel/plugin-proposal-decorators": "7.23.2", "@babel/preset-env": "7.22.10", "@babel/preset-react": "7.22.5", + "babel-plugin-transform-class-properties": "6.24.1", "html-webpack-plugin": "4.5.2", "js-config-webpack-plugin": "2.0.3", "webpack": "4.46.0", @@ -308,6 +323,74 @@ "webpack-dev-server": "4.15.1" } }, + "examples/react-gondel/node_modules/@babel/plugin-proposal-decorators": { + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.23.2.tgz", + "integrity": "sha512-eR0gJQc830fJVGz37oKLvt9W9uUIQSAovUl0e9sJ3YeO09dlcoBVYD3CLrjCj4qHdXmfiyTyFt8yeQYSN5fxLg==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.20", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/plugin-syntax-decorators": "^7.22.10" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "examples/react-gondel/node_modules/@babel/plugin-proposal-decorators/node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz", + "integrity": "sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-function-name": "^7.22.5", + "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "examples/react-gondel/node_modules/@babel/plugin-proposal-decorators/node_modules/@babel/helper-replace-supers": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", + "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-optimise-call-expression": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "examples/react-gondel/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, "examples/trigger-public-event": { "name": "gondel-communication-trigger-public-event-example", "version": "1.2.8", @@ -640,9 +723,9 @@ } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz", - "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", "dev": true, "engines": { "node": ">=6.9.0" @@ -674,12 +757,12 @@ } }, "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.5.tgz", - "integrity": "sha512-aBiH1NKMG0H2cGZqspNvsaBe6wNGjbJjuLy29aU+eDZjSbbN53BaxlpB02xm9v34pLTZ1nIQPFYn2qMZoa5BQQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz", + "integrity": "sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==", "dev": true, "dependencies": { - "@babel/types": "^7.22.5" + "@babel/types": "^7.23.0" }, "engines": { "node": ">=6.9.0" @@ -817,9 +900,9 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz", - "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", "dev": true, "engines": { "node": ">=6.9.0" @@ -2355,13 +2438,13 @@ } }, "node_modules/@babel/types": { - "version": "7.22.10", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.10.tgz", - "integrity": "sha512-obaoigiLrlDZ7TUQln/8m4mSqIW2QFeOrCQc9r+xsaHGNoplVNYlRVpsfE8Vj35GEm2ZH4ZhrNYogs/3fj85kg==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", + "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", "dev": true, "dependencies": { "@babel/helper-string-parser": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, "engines": {