refactor: add components/ in starter project (#353)
This commit adds a `components/` folder to the starter project to indicate that one can also create components that are not themselves islands.
This commit is contained in:
+14
-1
@@ -66,6 +66,13 @@ Deno.test({
|
||||
{ "type": "file", "name": "README.md" },
|
||||
{ "type": "file", "name": "import_map.json" },
|
||||
{ "type": "file", "name": "fresh.gen.ts" },
|
||||
{
|
||||
"type": "directory",
|
||||
"name": "components",
|
||||
"contents": [
|
||||
{ "type": "file", "name": "Button.tsx" },
|
||||
],
|
||||
},
|
||||
{
|
||||
"type": "directory",
|
||||
"name": "islands",
|
||||
@@ -152,7 +159,6 @@ Deno.test({
|
||||
await delay(100);
|
||||
|
||||
counterValue = await counter?.evaluate((el) => el.textContent);
|
||||
console.log(counterValue);
|
||||
assert(counterValue === "4");
|
||||
await page.close();
|
||||
await browser.close();
|
||||
@@ -200,6 +206,13 @@ Deno.test({
|
||||
{ "type": "file", "name": "README.md" },
|
||||
{ "type": "file", "name": "import_map.json" },
|
||||
{ "type": "file", "name": "fresh.gen.ts" },
|
||||
{
|
||||
"type": "directory",
|
||||
"name": "components",
|
||||
"contents": [
|
||||
{ "type": "file", "name": "Button.tsx" },
|
||||
],
|
||||
},
|
||||
{
|
||||
"type": "directory",
|
||||
"name": "islands",
|
||||
|
||||
Reference in New Issue
Block a user