Skip to content

Commit

Permalink
Merge pull request #96 from merkle-open/fix/typescript_issue
Browse files Browse the repository at this point in the history
fix: codesandbox-demos
  • Loading branch information
ernscht authored Oct 27, 2023
2 parents 3c1b726 + 8689912 commit dd2a9f2
Show file tree
Hide file tree
Showing 7 changed files with 156 additions and 23 deletions.
1 change: 1 addition & 0 deletions examples/gondel-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 7 additions & 3 deletions examples/gondel-react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "../../tsconfig.json",
{
"compilerOptions": {
"skipLibCheck": true,
"sourceMap": true,
Expand All @@ -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/*/*"]
}
}
3 changes: 2 additions & 1 deletion examples/plugin-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
25 changes: 23 additions & 2 deletions examples/plugin-data/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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/*/*"]
}
}
2 changes: 2 additions & 0 deletions examples/react-gondel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
25 changes: 23 additions & 2 deletions examples/typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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/*/*"]
}
}
113 changes: 98 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd2a9f2

Please sign in to comment.