using env prop
This commit is contained in:
parent
2332101482
commit
b4966b33f4
@ -17,6 +17,7 @@
|
||||
import { build } from "@gnu-taler/web-util/build";
|
||||
|
||||
await build({
|
||||
type: "production",
|
||||
source: {
|
||||
js: ["src/index.ts"],
|
||||
assets: ["src/index.html"],
|
||||
|
@ -21,6 +21,7 @@ import { initializeDev } from "@gnu-taler/web-util/build";
|
||||
const devEntryPoints = ["src/stories.tsx", "src/index.ts"];
|
||||
|
||||
const build = initializeDev({
|
||||
type: "development",
|
||||
source: {
|
||||
js: devEntryPoints,
|
||||
assets: ["src/index.html"],
|
||||
|
@ -20,6 +20,7 @@ import { getFilesInDirectory } from "@gnu-taler/web-util/build";
|
||||
const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
|
||||
|
||||
await build({
|
||||
type: "test",
|
||||
source: {
|
||||
js: allTestFiles,
|
||||
assets: ["src/index.html"],
|
||||
|
@ -18,6 +18,7 @@
|
||||
import { build } from "@gnu-taler/web-util/build";
|
||||
|
||||
await build({
|
||||
type: "production",
|
||||
source: {
|
||||
js: ["src/index.tsx"],
|
||||
assets: ["src/index.html"],
|
||||
|
@ -21,6 +21,7 @@ import { initializeDev } from "@gnu-taler/web-util/build";
|
||||
const devEntryPoints = ["src/stories.tsx", "src/index.tsx"];
|
||||
|
||||
const build = initializeDev({
|
||||
type: "development",
|
||||
source: {
|
||||
js: devEntryPoints,
|
||||
assets: ["src/index.html"],
|
||||
|
@ -21,6 +21,7 @@ import { getFilesInDirectory } from "@gnu-taler/web-util/build";
|
||||
const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
|
||||
|
||||
await build({
|
||||
type: "test",
|
||||
source: {
|
||||
js: allTestFiles,
|
||||
assets: ["src/index.html"],
|
||||
|
@ -18,6 +18,7 @@
|
||||
import { build } from "@gnu-taler/web-util/build";
|
||||
|
||||
await build({
|
||||
type: "production",
|
||||
source: {
|
||||
js: ["src/index.tsx"],
|
||||
assets: ["src/index.html"],
|
||||
|
@ -21,6 +21,7 @@ import { initializeDev } from "@gnu-taler/web-util/build";
|
||||
const devEntryPoints = ["src/stories.tsx", "src/index.tsx"];
|
||||
|
||||
const build = initializeDev({
|
||||
type: "development",
|
||||
source: {
|
||||
js: devEntryPoints,
|
||||
assets: ["src/index.html"],
|
||||
|
@ -21,6 +21,7 @@ import { getFilesInDirectory } from "@gnu-taler/web-util/build";
|
||||
const allTestFiles = getFilesInDirectory("./src", /.test.tsx?$/);
|
||||
|
||||
await build({
|
||||
type: "test",
|
||||
source: {
|
||||
js: allTestFiles,
|
||||
assets: ["src/index.html"],
|
||||
|
@ -18,6 +18,7 @@
|
||||
import { build } from "@gnu-taler/web-util/build";
|
||||
|
||||
await build({
|
||||
type: "production",
|
||||
source: {
|
||||
js: ["src/index.tsx"],
|
||||
assets: ["src/index.html"],
|
||||
|
@ -21,6 +21,7 @@ import { initializeDev } from "@gnu-taler/web-util/build";
|
||||
const devEntryPoints = ["src/stories.tsx", "src/index.tsx"];
|
||||
|
||||
const build = initializeDev({
|
||||
type: "development",
|
||||
source: {
|
||||
js: devEntryPoints,
|
||||
assets: ["src/index.html"],
|
||||
|
@ -21,6 +21,7 @@ import { getFilesInDirectory } from "@gnu-taler/web-util/build";
|
||||
const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
|
||||
|
||||
await build({
|
||||
type: "test",
|
||||
source: {
|
||||
js: allTestFiles,
|
||||
assets: ["src/index.html"],
|
||||
|
@ -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",
|
||||
|
@ -32,6 +32,7 @@ const devEntryPoints = [
|
||||
];
|
||||
|
||||
const build = initializeDev({
|
||||
type: "development",
|
||||
source: {
|
||||
js: devEntryPoints,
|
||||
assets: allStaticFiles,
|
||||
|
@ -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: () => {},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user