From 172425e0cfd0f3e48993382ee064c592a2441546 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 25 Oct 2022 01:13:25 +0200 Subject: demobank-ui: clean up build system --- packages/demobank-ui/package.json | 112 ++++++++++++++++---------------------- 1 file changed, 46 insertions(+), 66 deletions(-) (limited to 'packages/demobank-ui/package.json') diff --git a/packages/demobank-ui/package.json b/packages/demobank-ui/package.json index bd686365b..831ec3978 100644 --- a/packages/demobank-ui/package.json +++ b/packages/demobank-ui/package.json @@ -4,15 +4,10 @@ "version": "0.1.0", "license": "AGPL-3.0-OR-LATER", "scripts": { - "dev": "preact watch --port ${PORT:=9090} --no-sw --no-esm -c preact.mock.js", - "build": "preact build --no-sw --no-esm -c preact.single-config.js --dest build && sh remove-link-stylesheet.sh", - "serve": "sirv build --port ${PORT:=8080} --cors --single", + "build": "./build.mjs", + "check": "tsc", "lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'", - "test": "jest ./tests", - "build-storybook": "build-storybook", - "serve-single": "sirv single --port ${PORT:=8080} --cors --single", - "pretty": "prettier --write src", - "storybook": "start-storybook -p 6006" + "pretty": "prettier --write src" }, "eslintConfig": { "parser": "@typescript-eslint/parser", @@ -24,77 +19,62 @@ "build/" ], "rules": { - "@typescript-eslint/no-explicit-any": [0], - "@typescript-eslint/ban-ts-comment": [1], - "quotes": [2, "single", {"allowTemplateLiterals": true,"avoidEscape": false}], - "indent": [2,2], - "prefer-arrow-callback": [2, {"allowNamedFunctions": false, "allowUnboundThis": true}], - "curly": [2,"multi"], - "prefer-template": [1] + "@typescript-eslint/no-explicit-any": [ + 0 + ], + "@typescript-eslint/ban-ts-comment": [ + 1 + ], + "quotes": [ + 2, + "single", + { + "allowTemplateLiterals": true, + "avoidEscape": false + } + ], + "indent": [ + 2, + 2 + ], + "prefer-arrow-callback": [ + 2, + { + "allowNamedFunctions": false, + "allowUnboundThis": true + } + ], + "curly": [ + 2, + "multi" + ], + "prefer-template": [ + 1 + ] } }, "dependencies": { - "base64-inline-loader": "1.1.1", - "date-fns": "2.25.0", + "date-fns": "2.29.3", "jed": "1.1.1", - "preact": "^10.5.15", - "preact-render-to-string": "^5.1.19", - "preact-router": "^3.2.1", + "preact-render-to-string": "^5.2.6", + "preact-router": "^4.1.0", "qrcode-generator": "^1.4.4", - "swr": "1.1" + "swr": "~1.3.0" }, "devDependencies": { - "@babel/core": "^7.13.16", - "@babel/plugin-transform-react-jsx": "^7.12.13", - "@babel/plugin-transform-react-jsx-source": "^7.12.13", - "@babel/preset-env": "^7.16.7", "@creativebulma/bulma-tooltip": "^1.2.0", "@gnu-taler/pogen": "^0.0.5", - "@storybook/addon-a11y": "6.2.9", - "@storybook/addon-actions": "6.2.9", - "@storybook/addon-essentials": "6.2.9", - "@storybook/addon-links": "6.2.9", - "@storybook/preact": "6.2.9", - "@storybook/preset-scss": "^1.0.3", - "@testing-library/jest-dom": "^5.16.1", - "@testing-library/preact": "^2.0.1", - "@testing-library/preact-hooks": "^1.1.0", - "@types/enzyme": "^3.10.10", - "@types/jest": "^27.0.2", - "@typescript-eslint/eslint-plugin": "^5.3.0", - "@typescript-eslint/parser": "^5.3.0", - "babel-loader": "^8.2.2", - "base64-inline-loader": "^1.1.1", - "bulma": "^0.9.3", + "@typescript-eslint/eslint-plugin": "^5.41.0", + "@typescript-eslint/parser": "^5.41.0", + "bulma": "^0.9.4", "bulma-checkbox": "^1.1.1", "bulma-radio": "^1.1.1", - "enzyme": "^3.11.0", - "enzyme-adapter-preact-pure": "^3.2.0", - "eslint": "^8.1.0", + "esbuild": "^0.15.12", + "esbuild-sass-plugin": "^2.4.0", + "eslint": "^8.26.0", "eslint-config-preact": "^1.2.0", - "html-webpack-inline-chunk-plugin": "^1.1.1", - "html-webpack-inline-source-plugin": "0.0.10", - "html-webpack-skip-assets-plugin": "^1.0.1", - "inline-chunk-html-plugin": "^1.1.1", - "jest": "^27.3.1", - "jest-fetch-mock": "^3.0.3", - "jest-preset-preact": "^4.0.5", - "jest-watch-typeahead": "^1.0.0", - "jest-environment-jsdom": "^27.4.6", - "jssha": "^3.2.0", "po2json": "^0.4.5", - "preact-cli": "3.0.5", - "sass": "1.32.13", - "sass-loader": "^10", - "script-ext-html-webpack-plugin": "^2.1.5", - "sirv-cli": "^1.0.14", + "preact": "10.11.2", "typescript": "^4.4.4" - }, - "jest": { - "preset": "jest-preset-preact", - "setupFiles": [ - "/tests/__mocks__/browserMocks.ts", - "/tests/__mocks__/setupTests.ts" - ] } } -- cgit v1.2.3