diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/package.json')
-rw-r--r-- | packages/merchant-backoffice-ui/package.json | 54 |
1 files changed, 13 insertions, 41 deletions
diff --git a/packages/merchant-backoffice-ui/package.json b/packages/merchant-backoffice-ui/package.json index a772f6296..b78b3636c 100644 --- a/packages/merchant-backoffice-ui/package.json +++ b/packages/merchant-backoffice-ui/package.json @@ -4,31 +4,20 @@ "version": "0.0.4", "license": "MIT", "scripts": { - "build": "preact build --no-sw --no-esm", - "compile": "tsc", - "serve": "sirv build --port ${PORT:=8080} --cors --single", + "build": "./build.mjs", + "check": "tsc", + "compile": "tsc && ./build.mjs", "dev": "preact watch --port ${PORT:=8080} --no-sw --no-esm", - "lint-check": "eslint '{src,tests}/**/*.{js,jsx,ts,tsx}'", - "lint-fix": "eslint --fix '{src,tests}/**/*.{js,jsx,ts,tsx}'", - "test": "jest ./tests", - "dev-test": "jest ./tests --watch", + "test": "pnpm compile && mocha --require source-map-support/register 'dist/**/test.js'", + "lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'", + "i18n:extract": "pogen extract", + "i18n:merge": "pogen merge", + "i18n:emit": "pogen emit", + "i18n": "pnpm i18n:extract && pnpm i18n:merge && pnpm i18n:emit", "typedoc": "typedoc src", - "clean": "rimraf build storybook-static docs single", - "build-single": "preact build --no-sw --no-esm -c preact.single-config.js --dest single && sh remove-link-stylesheet.sh", - "serve-single": "sirv single --port ${PORT:=8080} --cors --single", - "build-storybook": "build-storybook", - "storybook": "start-storybook -p 6006" - }, - "engines": { - "node": ">=12", - "pnpm": ">=5" + "pretty": "prettier --write src" }, "eslintConfig": { - "parser": "@typescript-eslint/parser", - "extends": [ - "preact", - "plugin:@typescript-eslint/recommended" - ], "plugins": [ "header" ], @@ -38,8 +27,8 @@ "copyleft-header.js" ] }, - "ignorePatterns": [ - "build/" + "extends": [ + "prettier" ] }, "dependencies": { @@ -53,20 +42,11 @@ "preact-router": "3.2.1", "qrcode-generator": "1.4.4", "swr": "1.3.0", - "react": "npm:@preact/compat@^17.1.2", "yup": "^0.32.9" }, "devDependencies": { - "@babel/core": "7.18.9", - "@babel/plugin-transform-react-jsx-source": "7.18.6", "@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/preact": "^2.0.1", "@testing-library/preact-hooks": "^1.1.0", "@types/history": "^4.7.8", @@ -75,7 +55,6 @@ "@types/node": "^18.8.5", "@typescript-eslint/eslint-plugin": "^4.22.0", "@typescript-eslint/parser": "^4.22.0", - "babel-loader": "^8.2.2", "base64-inline-loader": "^1.1.1", "bulma": "^0.9.2", "bulma-checkbox": "^1.1.1", @@ -94,15 +73,8 @@ "inline-chunk-html-plugin": "^1.1.1", "jest": "^26.6.3", "jest-preset-preact": "^4.0.2", - "po2json": "^0.4.5", - "preact-cli": "^3.0.5", - "preact-render-to-json": "^3.6.6", - "preact-render-to-string": "^5.1.19", "rimraf": "^3.0.2", - "sass": "^1.32.13", - "sass-loader": "10.1.1", - "script-ext-html-webpack-plugin": "^2.1.5", - "sirv-cli": "^1.0.11", + "sass": "1.56.1", "typedoc": "^0.20.36", "typescript": "4.8.4" }, |