Skip to content

Update project structure #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions config/rollup/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import terser from "@rollup/plugin-terser";
import typescript from "@rollup/plugin-typescript";
import { dirname, join } from "path";
import { terser } from "rollup-plugin-terser";
import typescript from "rollup-plugin-typescript2";
import typescriptEngine from "typescript";
import { fileURLToPath } from "url";

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

const filePath = fileURLToPath(import.meta.url);
const fileDirectory = dirname(filePath);

const input = join(fileDirectory, "..", "..", "src", "index.tsx");
const external = [
...Object.keys(packageJSON.dependencies ?? {}),
Expand All @@ -27,7 +26,6 @@ const plugins = [
];

function createBundleConfiguration(filename, format) {
console.log(filename, format);
/** @type {import("rollup").RollupOptions} */
return {
input,
Expand Down
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
"url": "https://github.com/P5-wrapper/react/issues"
},
"dependencies": {
"@rollup/plugin-terser": "^0.1.0",
"@rollup/plugin-typescript": "^9.0.2",
"microdiff": "^1.3.1",
"p5": "^1.5.0"
},
Expand All @@ -71,42 +73,40 @@
"react-dom": ">= 17.0.2"
},
"devDependencies": {
"@babel/core": "^7.19.6",
"@babel/preset-env": "^7.19.4",
"@babel/core": "^7.20.2",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@testing-library/react": "^13.4.0",
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
"@types/jest": "^29.2.0",
"@types/jest": "^29.2.3",
"@types/p5": "^1.4.3",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"babel-loader": "^9.0.0",
"canvas": "^2.10.1",
"css-loader": "^6.7.1",
"eslint": "^8.26.0",
"eslint-plugin-react": "^7.31.10",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"babel-loader": "^9.1.0",
"canvas": "^2.10.2",
"css-loader": "^6.7.2",
"eslint": "^8.28.0",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"gh-pages": "^4.0.0",
"html-webpack-plugin": "^5.5.0",
"jest": "^29.2.1",
"jest-environment-jsdom": "^29.2.1",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-environment-jsdom-global": "^4.0.0",
"prettier": "^2.7.1",
"prettier": "^2.8.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^3.0.2",
"rollup": "^3.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.34.1",
"rollup": "^3.4.0",
"style-loader": "^3.3.1",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.1",
"tslib": "^2.4.0",
"typescript": "^4.8.4",
"webpack": "^5.74.0",
"tslib": "^2.4.1",
"typescript": "^4.9.3",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.0",
"webpack-dev-server": "^4.11.1"
}
Expand Down
Loading