new asset api

This commit is contained in:
Sebastian 2023-06-01 14:26:07 -03:00
parent e9bdf7f312
commit 699a7b453b
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069
12 changed files with 17 additions and 16 deletions

View File

@ -20,7 +20,7 @@ await build({
type: "production",
source: {
js: ["src/index.ts"],
assets: ["src/index.html"],
assets: [{base:"src",files:["src/index.html"]}],
},
destination: "./dist/prod",
css: "sass",

View File

@ -24,7 +24,7 @@ const build = initializeDev({
type: "development",
source: {
js: devEntryPoints,
assets: ["src/index.html"],
assets: [{base:"src",files:["src/index.html"]}],
},
css: "sass",
destination: "./dist/dev",

View File

@ -22,8 +22,8 @@ const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
await build({
type: "test",
source: {
js: allTestFiles,
assets: ["src/index.html"],
js: allTestFiles.files,
assets: [{base:"src",files:["src/index.html"]}],
},
destination: "./dist/prod",
css: "sass",

View File

@ -21,7 +21,7 @@ await build({
type: "production",
source: {
js: ["src/index.tsx"],
assets: ["src/index.html"],
assets: [{base:"src",files:["src/index.html"]}],
},
destination: "./dist/prod",
css: "sass",

View File

@ -24,7 +24,7 @@ const build = initializeDev({
type: "development",
source: {
js: devEntryPoints,
assets: ["src/index.html"],
assets: [{base:"src",files:["src/index.html"]}],
},
destination: "./dist/dev",
public: "/app",

View File

@ -23,8 +23,9 @@ const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
await build({
type: "test",
source: {
js: allTestFiles,
assets: ["src/index.html"],
js: allTestFiles.files,
assets: [{base:"src",files:["src/index.html"]}],
},
destination: "./dist/test",
css: "sass",

View File

@ -21,7 +21,7 @@ await build({
type: "production",
source: {
js: ["src/index.tsx"],
assets: ["src/index.html"],
assets: [{base:"src",files:["src/index.html"]}],
},
destination: "./dist/prod",
css: "postcss",

View File

@ -24,7 +24,7 @@ const build = initializeDev({
type: "development",
source: {
js: devEntryPoints,
assets: ["src/index.html"],
assets: [{base:"src",files:["src/index.html"]}],
},
destination: "./dist/dev",
css: "postcss",

View File

@ -23,8 +23,8 @@ const allTestFiles = getFilesInDirectory("./src", /.test.tsx?$/);
await build({
type: "test",
source: {
js: allTestFiles,
assets: ["src/index.html"],
js: allTestFiles.files,
assets: [{base:"src",files:["src/index.html"]}],
},
destination: "./dist/test",
css: "postcss",

View File

@ -21,7 +21,7 @@ await build({
type: "production",
source: {
js: ["src/index.tsx"],
assets: ["src/index.html"],
assets: [{base:"src",files:["src/index.html"]}],
},
destination: "./dist/prod",
css: "sass",

View File

@ -24,7 +24,7 @@ const build = initializeDev({
type: "development",
source: {
js: devEntryPoints,
assets: ["src/index.html"],
assets: [{base:"src",files:["src/index.html"]}],
},
css: "sass",
destination: "./dist/dev",

View File

@ -23,8 +23,8 @@ const allTestFiles = getFilesInDirectory("src", /.test.tsx?$/);
await build({
type: "test",
source: {
js: allTestFiles,
assets: ["src/index.html"],
js: allTestFiles.files,
assets: [{base:"src",files:["src/index.html"]}],
},
destination: "./dist/test",
css: "sass",