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:
ashish
2022-07-30 15:56:42 +00:00
committed by GitHub
parent 1dc1f87fc3
commit 58f9769baf
3 changed files with 51 additions and 42 deletions
+14 -1
View File
@@ -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",