diff options
Diffstat (limited to 'packages/taler-wallet-webextension')
-rwxr-xr-x | packages/taler-wallet-webextension/build.mjs | 4 | ||||
-rwxr-xr-x | packages/taler-wallet-webextension/dev.mjs | 1 | ||||
-rwxr-xr-x | packages/taler-wallet-webextension/test.mjs | 20 |
3 files changed, 6 insertions, 19 deletions
diff --git a/packages/taler-wallet-webextension/build.mjs b/packages/taler-wallet-webextension/build.mjs index 230a850e2..ee1bca7a1 100755 --- a/packages/taler-wallet-webextension/build.mjs +++ b/packages/taler-wallet-webextension/build.mjs @@ -18,9 +18,8 @@ import linaria from "@linaria/esbuild"; import { build, getFilesInDirectory } from "@gnu-taler/web-util/build"; -const allStaticFiles = getFilesInDirectory("static"); - await build({ + type: "production", source: { js: [ "src/popupEntryPoint.tsx", @@ -30,7 +29,6 @@ await build({ "src/taler-wallet-interaction-support.ts", "src/browserWorkerEntry.ts", ], - assets: allStaticFiles, }, destination: "./dist/prod", css: "linaria", diff --git a/packages/taler-wallet-webextension/dev.mjs b/packages/taler-wallet-webextension/dev.mjs index 1ded20c7f..4ba649a7e 100755 --- a/packages/taler-wallet-webextension/dev.mjs +++ b/packages/taler-wallet-webextension/dev.mjs @@ -32,6 +32,7 @@ const devEntryPoints = [ ]; const build = initializeDev({ + type: "development", source: { js: devEntryPoints, assets: allStaticFiles, diff --git a/packages/taler-wallet-webextension/test.mjs b/packages/taler-wallet-webextension/test.mjs index f3538fb5f..d0bf7dd48 100755 --- a/packages/taler-wallet-webextension/test.mjs +++ b/packages/taler-wallet-webextension/test.mjs @@ -15,30 +15,18 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import linaria from "@linaria/esbuild"; import { build, getFilesInDirectory } from "@gnu-taler/web-util/build"; const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/); -const allStaticFiles = getFilesInDirectory("static"); await build({ + type: "test", source: { js: allTestFiles, - assets: allStaticFiles, + assets: [], }, destination: "./dist/test", css: "linaria", - linariaPlugin: () => { - // linaria has a bug if this run in web-util library - return linaria({ - babelOptions: { - presets: [ - "@babel/preset-typescript", - "@babel/preset-react", - "@linaria", - ], - }, - sourceMap: true, - }); - }, + // no need to produce css + // linariaPlugin: () => {}, }); |