Skip to content

Commit ec88d57

Browse files
authored
Update project structure (#183)
1 parent 2451392 commit ec88d57

19 files changed

+262
-289
lines changed

config/rollup/rollup.config.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1+
import terser from "@rollup/plugin-terser";
2+
import typescript from "@rollup/plugin-typescript";
13
import { dirname, join } from "path";
2-
import { terser } from "rollup-plugin-terser";
3-
import typescript from "rollup-plugin-typescript2";
44
import typescriptEngine from "typescript";
55
import { fileURLToPath } from "url";
66

77
import packageJSON from "../../package.json" assert { type: "json" };
88

99
const filePath = fileURLToPath(import.meta.url);
1010
const fileDirectory = dirname(filePath);
11-
1211
const input = join(fileDirectory, "..", "..", "src", "index.tsx");
1312
const external = [
1413
...Object.keys(packageJSON.dependencies ?? {}),
@@ -27,7 +26,6 @@ const plugins = [
2726
];
2827

2928
function createBundleConfiguration(filename, format) {
30-
console.log(filename, format);
3129
/** @type {import("rollup").RollupOptions} */
3230
return {
3331
input,

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
"url": "https://github.com/P5-wrapper/react/issues"
6464
},
6565
"dependencies": {
66+
"@rollup/plugin-terser": "^0.1.0",
67+
"@rollup/plugin-typescript": "^9.0.2",
6668
"microdiff": "^1.3.1",
6769
"p5": "^1.5.0"
6870
},
@@ -71,42 +73,40 @@
7173
"react-dom": ">= 17.0.2"
7274
},
7375
"devDependencies": {
74-
"@babel/core": "^7.19.6",
75-
"@babel/preset-env": "^7.19.4",
76+
"@babel/core": "^7.20.2",
77+
"@babel/preset-env": "^7.20.2",
7678
"@babel/preset-react": "^7.18.6",
7779
"@babel/preset-typescript": "^7.18.6",
7880
"@testing-library/react": "^13.4.0",
7981
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
80-
"@types/jest": "^29.2.0",
82+
"@types/jest": "^29.2.3",
8183
"@types/p5": "^1.4.3",
82-
"@types/react": "^18.0.21",
83-
"@types/react-dom": "^18.0.6",
84-
"@typescript-eslint/eslint-plugin": "^5.40.1",
85-
"@typescript-eslint/parser": "^5.40.1",
86-
"babel-loader": "^9.0.0",
87-
"canvas": "^2.10.1",
88-
"css-loader": "^6.7.1",
89-
"eslint": "^8.26.0",
90-
"eslint-plugin-react": "^7.31.10",
84+
"@types/react": "^18.0.25",
85+
"@types/react-dom": "^18.0.9",
86+
"@typescript-eslint/eslint-plugin": "^5.44.0",
87+
"@typescript-eslint/parser": "^5.44.0",
88+
"babel-loader": "^9.1.0",
89+
"canvas": "^2.10.2",
90+
"css-loader": "^6.7.2",
91+
"eslint": "^8.28.0",
92+
"eslint-plugin-react": "^7.31.11",
9193
"eslint-plugin-react-hooks": "^4.6.0",
9294
"gh-pages": "^4.0.0",
9395
"html-webpack-plugin": "^5.5.0",
94-
"jest": "^29.2.1",
95-
"jest-environment-jsdom": "^29.2.1",
96+
"jest": "^29.3.1",
97+
"jest-environment-jsdom": "^29.3.1",
9698
"jest-environment-jsdom-global": "^4.0.0",
97-
"prettier": "^2.7.1",
99+
"prettier": "^2.8.0",
98100
"react": "^18.2.0",
99101
"react-dom": "^18.2.0",
100102
"rimraf": "^3.0.2",
101-
"rollup": "^3.0.0",
102-
"rollup-plugin-terser": "^7.0.2",
103-
"rollup-plugin-typescript2": "^0.34.1",
103+
"rollup": "^3.4.0",
104104
"style-loader": "^3.3.1",
105105
"ts-jest": "^29.0.3",
106106
"ts-loader": "^9.4.1",
107-
"tslib": "^2.4.0",
108-
"typescript": "^4.8.4",
109-
"webpack": "^5.74.0",
107+
"tslib": "^2.4.1",
108+
"typescript": "^4.9.3",
109+
"webpack": "^5.75.0",
110110
"webpack-cli": "^5.0.0",
111111
"webpack-dev-server": "^4.11.1"
112112
}

0 commit comments

Comments
 (0)