commit eaf65be30153650a5ed201f4df87d0a44baf6356
parent c0395a2c900ece84a0cb01278c6d9c9d55458679
Author: Sebastian <sebasjm@gmail.com>
Date: Wed, 3 Jan 2024 16:31:58 -0300
flat dist folder
Diffstat:
4 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/packages/aml-backoffice-ui/build.mjs b/packages/aml-backoffice-ui/build.mjs
@@ -20,7 +20,7 @@ import { build } from "@gnu-taler/web-util/build";
await build({
type: "production",
source: {
- js: ["src/index.tsx", "src/forms/index.ts"],
+ js: ["src/index.tsx", "src/forms.ts"],
assets: [{ base: "src", files: ["src/index.html"] }],
},
destination: "./dist/prod",
diff --git a/packages/aml-backoffice-ui/dev.mjs b/packages/aml-backoffice-ui/dev.mjs
@@ -18,7 +18,7 @@
import { serve } from "@gnu-taler/web-util/node";
import { initializeDev } from "@gnu-taler/web-util/build";
-const devEntryPoints = ["src/stories.tsx", "src/index.tsx", "src/forms/index.ts"];
+const devEntryPoints = ["src/stories.tsx", "src/index.tsx", "src/forms.ts"];
const build = initializeDev({
type: "development",
diff --git a/packages/aml-backoffice-ui/src/forms.ts b/packages/aml-backoffice-ui/src/forms.ts
@@ -0,0 +1,21 @@
+/*
+ This file is part of GNU Taler
+ (C) 2022 Taler Systems S.A.
+
+ GNU Taler is free software; you can redistribute it and/or modify it under the
+ terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 3, or (at your option) any later version.
+
+ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+ */
+
+export * from "./forms/index.js";
+
+/**
+ * this file is here to have a flat dist folder
+ */
+\ No newline at end of file
diff --git a/packages/aml-backoffice-ui/src/index.html b/packages/aml-backoffice-ui/src/index.html
@@ -32,7 +32,7 @@
<!-- Optional customization script. -->
<script src="exchange-backofice-ui-settings.js"></script>
<!-- Entry point for the SPA. -->
- <script type="module" src="forms/index.js"></script>
+ <script type="module" src="forms.js"></script>
<script type="module" src="index.js"></script>
<link rel="stylesheet" href="index.css" />
</head>