feat: reduce number of island bundles (#2082)

This commit is contained in:
Marvin Hagemeister
2023-11-28 17:23:27 +01:00
committed by GitHub
parent ef26451dc6
commit 325850719a
33 changed files with 302 additions and 142 deletions
+8 -3
View File
@@ -38,6 +38,7 @@ Deno.test({
args: [
"run",
"-A",
"--no-config",
"init.ts",
tmpDirName,
],
@@ -155,6 +156,7 @@ Deno.test({
args: [
"run",
"-A",
"--no-config",
"init.ts",
tmpDirName,
"--tailwind",
@@ -245,7 +247,7 @@ Deno.test("fresh-init error(help)", async function (t) {
"execute invalid init command (deno run -A init.ts)",
async () => {
const cliProcess = new Deno.Command(Deno.execPath(), {
args: ["run", "-A", "init.ts"],
args: ["run", "-A", "--no-config", "init.ts"],
stdin: "null",
stderr: "piped",
});
@@ -261,7 +263,7 @@ Deno.test("fresh-init error(help)", async function (t) {
"execute invalid init command (deno run -A init.ts -f)",
async () => {
const cliProcess = new Deno.Command(Deno.execPath(), {
args: ["run", "-A", "init.ts", "-f"],
args: ["run", "-A", "--no-config", "init.ts", "-f"],
});
const { code, stderr } = await cliProcess.output();
assertEquals(code, 1);
@@ -275,7 +277,7 @@ Deno.test("fresh-init error(help)", async function (t) {
"execute invalid init command (deno run -A init.ts --foo)",
async () => {
const cliProcess = new Deno.Command(Deno.execPath(), {
args: ["run", "-A", "init.ts", "--foo"],
args: ["run", "-A", "--no-config", "init.ts", "--foo"],
});
const { code, stderr } = await cliProcess.output();
assertEquals(code, 1);
@@ -295,6 +297,7 @@ Deno.test("fresh-init .", async function (t) {
args: [
"run",
"-A",
"--no-config",
path.join(Deno.cwd(), "init.ts"),
".",
],
@@ -322,6 +325,7 @@ Deno.test({
args: [
"run",
"-A",
"--no-config",
path.join(Deno.cwd(), "init.ts"),
"subdirectory/subsubdirectory",
],
@@ -379,6 +383,7 @@ Deno.test({
args: [
"run",
"-A",
"--no-config",
"init.ts",
tmpDirName,
"--tailwind",