silgi 0.34.13 → 0.35.0
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/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import _h3 from "./h3/preset.mjs";
|
|
2
|
+
import _hono from "./hono/preset.mjs";
|
|
2
3
|
import _next from "./next/preset.mjs";
|
|
3
4
|
import _nitro from "./nitro/preset.mjs";
|
|
4
5
|
import _npmpackage from "./npmpackage/preset.mjs";
|
|
5
6
|
import _nuxt from "./nuxt/preset.mjs";
|
|
6
7
|
const presets = [
|
|
7
8
|
..._h3,
|
|
9
|
+
..._hono,
|
|
8
10
|
..._next,
|
|
9
11
|
..._nitro,
|
|
10
12
|
..._npmpackage,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface PresetOptions {
|
|
2
2
|
}
|
|
3
3
|
export declare const presetsWithConfig: readonly [];
|
|
4
|
-
export type PresetName = "h3" | "next" | "nitro" | "npm-package" | "nuxt";
|
|
5
|
-
export type PresetNameInput = "h3" | "next" | "nitro" | "npm-package" | "nuxt";
|
|
4
|
+
export type PresetName = "h3" | "hono" | "next" | "nitro" | "npm-package" | "nuxt";
|
|
5
|
+
export type PresetNameInput = "h3" | "hono" | "next" | "nitro" | "npm-package" | "nuxt";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineSilgiPreset } from "silgi/kit";
|
|
2
|
+
const hono = defineSilgiPreset(
|
|
3
|
+
{
|
|
4
|
+
// output: {
|
|
5
|
+
// dir: '{{ rootDir }}/.output',
|
|
6
|
+
// publicDir: '{{ output.dir }}/public',
|
|
7
|
+
// },
|
|
8
|
+
serverDir: "{{ rootDir }}/src/server",
|
|
9
|
+
envOptions: {
|
|
10
|
+
prefix: "HONO_",
|
|
11
|
+
altPrefix: "SILGI_"
|
|
12
|
+
},
|
|
13
|
+
imports: {
|
|
14
|
+
dirs: [
|
|
15
|
+
"!{{ serverDir }}/runtime/**",
|
|
16
|
+
"!{{ serverDir }}/api/**",
|
|
17
|
+
"!{{ serverDir }}/routes/**",
|
|
18
|
+
"!{{ serverDir }}/modules/**",
|
|
19
|
+
"!{{ serverDir }}/assets/**",
|
|
20
|
+
"!{{ serverDir }}/public/**",
|
|
21
|
+
"!{{ silgi.serverDir }}/**"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
hooks: {
|
|
25
|
+
ready: async () => {
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
storages: []
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "hono",
|
|
32
|
+
static: true,
|
|
33
|
+
url: import.meta.url
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
const presets = [hono];
|
|
37
|
+
export default presets;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineSilgiPreset } from "silgi/kit";
|
|
1
|
+
import { addNPMPackage, defineSilgiPreset } from "silgi/kit";
|
|
2
2
|
const next = defineSilgiPreset(
|
|
3
3
|
{
|
|
4
4
|
// output: {
|
|
@@ -8,7 +8,7 @@ const next = defineSilgiPreset(
|
|
|
8
8
|
serverDir: "{{ rootDir }}/src/server",
|
|
9
9
|
envOptions: {
|
|
10
10
|
prefix: "NEXT_",
|
|
11
|
-
altPrefix: "
|
|
11
|
+
altPrefix: "SILGI_"
|
|
12
12
|
},
|
|
13
13
|
imports: {
|
|
14
14
|
dirs: [
|
|
@@ -23,6 +23,10 @@ const next = defineSilgiPreset(
|
|
|
23
23
|
},
|
|
24
24
|
hooks: {
|
|
25
25
|
ready: async () => {
|
|
26
|
+
await addNPMPackage({
|
|
27
|
+
name: "defu",
|
|
28
|
+
isDev: true
|
|
29
|
+
});
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
storages: []
|