htmv 0.0.14 → 0.0.15
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/package.json +1 -1
- package/src/cli/commands/gen.ts +5 -2
package/package.json
CHANGED
package/src/cli/commands/gen.ts
CHANGED
|
@@ -23,10 +23,13 @@ export default async (args: string[]) => {
|
|
|
23
23
|
<h1>This view was quickly generated with htmv gen.</h1>
|
|
24
24
|
</body>
|
|
25
25
|
</html>`;
|
|
26
|
-
await generateFile(
|
|
26
|
+
await generateFile(
|
|
27
|
+
path.join(viewsFolderPath, `${name}.html`),
|
|
28
|
+
viewsContents,
|
|
29
|
+
);
|
|
27
30
|
}
|
|
28
31
|
if (type.toLowerCase() === "route") {
|
|
29
|
-
const routesFolderPath = await validateOptions("
|
|
32
|
+
const routesFolderPath = await validateOptions("routes", ...options);
|
|
30
33
|
const routeContents = `import { type RouteParams } from "htmv";
|
|
31
34
|
|
|
32
35
|
export default (_params: RouteParams) => {
|