create-avalon 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +16 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1770,6 +1770,22 @@ async function scaffoldProject(config, targetDir) {
|
|
|
1770
1770
|
`});`,
|
|
1771
1771
|
``
|
|
1772
1772
|
].join(`
|
|
1773
|
+
`));
|
|
1774
|
+
await writeFile(join(targetDir, "index.html"), [
|
|
1775
|
+
`<!DOCTYPE html>`,
|
|
1776
|
+
`<html lang="en">`,
|
|
1777
|
+
` <head>`,
|
|
1778
|
+
` <meta charset="utf-8" />`,
|
|
1779
|
+
` <meta name="viewport" content="width=device-width, initial-scale=1" />`,
|
|
1780
|
+
` <title>Avalon</title>`,
|
|
1781
|
+
` </head>`,
|
|
1782
|
+
` <body>`,
|
|
1783
|
+
` <!--ssr-outlet-->`,
|
|
1784
|
+
` <script type="module" src="/src/client/main.js"></script>`,
|
|
1785
|
+
` </body>`,
|
|
1786
|
+
`</html>`,
|
|
1787
|
+
``
|
|
1788
|
+
].join(`
|
|
1773
1789
|
`));
|
|
1774
1790
|
}
|
|
1775
1791
|
|