@springmicro/cli 0.7.0 → 0.7.1
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/README.md +5 -5
- package/bin/dev.cmd +3 -3
- package/bin/dev.js +6 -6
- package/bin/run.cmd +3 -3
- package/bin/run.js +5 -5
- package/dist/commands/add/auth.d.ts +0 -0
- package/dist/commands/add/auth.js +0 -0
- package/dist/commands/add/form.d.ts +0 -0
- package/dist/commands/add/form.js +0 -0
- package/dist/commands/init/astro.d.ts +0 -0
- package/dist/commands/init/astro.js +0 -0
- package/dist/commands/init/index.d.ts +0 -0
- package/dist/commands/init/index.js +0 -0
- package/dist/data/astro/index.d.ts +0 -0
- package/dist/data/astro/index.js +235 -235
- package/dist/data/astro/replace.d.ts +0 -0
- package/dist/data/astro/replace.js +0 -0
- package/dist/data/form/index.d.ts +0 -0
- package/dist/data/form/index.js +260 -260
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/log/index.d.ts +0 -0
- package/dist/log/index.js +0 -0
- package/dist/scripts/astro.bat +34 -34
- package/dist/scripts/astro.sh +9 -9
- package/dist/scripts/auth.bat +4 -4
- package/dist/scripts/auth.sh +3 -3
- package/dist/scripts/forms.bat +10 -10
- package/dist/scripts/forms.sh +8 -8
- package/dist/utils/shell.d.ts +0 -0
- package/dist/utils/shell.js +0 -0
- package/oclif.manifest.json +56 -56
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ $ npm install -g @springmicro/cli
|
|
|
21
21
|
$ springmicro COMMAND
|
|
22
22
|
running command...
|
|
23
23
|
$ springmicro (--version)
|
|
24
|
-
@springmicro/cli/0.7.
|
|
24
|
+
@springmicro/cli/0.7.1 win32-x64 node-v20.19.0
|
|
25
25
|
$ springmicro --help [COMMAND]
|
|
26
26
|
USAGE
|
|
27
27
|
$ springmicro COMMAND
|
|
@@ -63,7 +63,7 @@ EXAMPLES
|
|
|
63
63
|
$ springmicro add auth
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
_See code: [src/commands/add/auth.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.7.
|
|
66
|
+
_See code: [src/commands/add/auth.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.7.1/src/commands/add/auth.ts)_
|
|
67
67
|
|
|
68
68
|
## `springmicro add form`
|
|
69
69
|
|
|
@@ -83,7 +83,7 @@ EXAMPLES
|
|
|
83
83
|
$ springmicro add form
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
_See code: [src/commands/add/form.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.7.
|
|
86
|
+
_See code: [src/commands/add/form.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.7.1/src/commands/add/form.ts)_
|
|
87
87
|
|
|
88
88
|
## `springmicro help [COMMAND]`
|
|
89
89
|
|
|
@@ -126,7 +126,7 @@ EXAMPLES
|
|
|
126
126
|
$ springmicro init astro -n example
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
-
_See code: [src/commands/init/index.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.7.
|
|
129
|
+
_See code: [src/commands/init/index.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.7.1/src/commands/init/index.ts)_
|
|
130
130
|
|
|
131
131
|
## `springmicro init astro`
|
|
132
132
|
|
|
@@ -146,7 +146,7 @@ EXAMPLES
|
|
|
146
146
|
$ springmicro init astro -n <project-name>
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
-
_See code: [src/commands/init/astro.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.7.
|
|
149
|
+
_See code: [src/commands/init/astro.ts](https://github.com/SpringMicro1/springmicrohost-js/blob/v0.7.1/src/commands/init/astro.ts)_
|
|
150
150
|
|
|
151
151
|
## `springmicro plugins`
|
|
152
152
|
|
package/bin/dev.cmd
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
|
|
3
|
-
node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
|
|
1
|
+
@echo off
|
|
2
|
+
|
|
3
|
+
node --loader ts-node/esm --no-warnings=ExperimentalWarning "%~dp0\dev" %*
|
package/bin/dev.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#!/usr/bin/env -S node --loader ts-node/esm --no-warnings=ExperimentalWarning
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line n/shebang
|
|
4
|
-
import {execute} from '@oclif/core'
|
|
5
|
-
|
|
6
|
-
await execute({development: true, dir: import.meta.url})
|
|
1
|
+
#!/usr/bin/env -S node --loader ts-node/esm --no-warnings=ExperimentalWarning
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line n/shebang
|
|
4
|
+
import {execute} from '@oclif/core'
|
|
5
|
+
|
|
6
|
+
await execute({development: true, dir: import.meta.url})
|
package/bin/run.cmd
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
|
|
3
|
-
node "%~dp0\run" %*
|
|
1
|
+
@echo off
|
|
2
|
+
|
|
3
|
+
node "%~dp0\run" %*
|
package/bin/run.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import {execute} from '@oclif/core'
|
|
4
|
-
|
|
5
|
-
await execute({dir: import.meta.url})
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import {execute} from '@oclif/core'
|
|
4
|
+
|
|
5
|
+
await execute({dir: import.meta.url})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/data/astro/index.js
CHANGED
|
@@ -1,254 +1,254 @@
|
|
|
1
1
|
// some file content from https://ui.shadcn.com/docs/installation/manual
|
|
2
2
|
// unless otherwise specified
|
|
3
3
|
// site last accessed 6/6/2024
|
|
4
|
-
export const tailwindConfigMjs = `const { fontFamily } = require("tailwindcss/defaultTheme")
|
|
5
|
-
|
|
6
|
-
/** @type {import('tailwindcss').Config} */
|
|
7
|
-
module.exports = {
|
|
8
|
-
darkMode: ["class"],
|
|
9
|
-
content: ["./src/**/*.{ts,tsx,astro}"],
|
|
10
|
-
theme: {
|
|
11
|
-
container: {
|
|
12
|
-
center: true,
|
|
13
|
-
padding: "2rem",
|
|
14
|
-
screens: {
|
|
15
|
-
"2xl": "1400px",
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
extend: {
|
|
19
|
-
colors: {
|
|
20
|
-
border: "hsl(var(--border))",
|
|
21
|
-
input: "hsl(var(--input))",
|
|
22
|
-
ring: "hsl(var(--ring))",
|
|
23
|
-
background: "hsl(var(--background))",
|
|
24
|
-
foreground: "hsl(var(--foreground))",
|
|
25
|
-
primary: {
|
|
26
|
-
DEFAULT: "hsl(var(--primary))",
|
|
27
|
-
foreground: "hsl(var(--primary-foreground))",
|
|
28
|
-
},
|
|
29
|
-
secondary: {
|
|
30
|
-
DEFAULT: "hsl(var(--secondary))",
|
|
31
|
-
foreground: "hsl(var(--secondary-foreground))",
|
|
32
|
-
},
|
|
33
|
-
destructive: {
|
|
34
|
-
DEFAULT: "hsl(var(--destructive))",
|
|
35
|
-
foreground: "hsl(var(--destructive-foreground))",
|
|
36
|
-
},
|
|
37
|
-
muted: {
|
|
38
|
-
DEFAULT: "hsl(var(--muted))",
|
|
39
|
-
foreground: "hsl(var(--muted-foreground))",
|
|
40
|
-
},
|
|
41
|
-
accent: {
|
|
42
|
-
DEFAULT: "hsl(var(--accent))",
|
|
43
|
-
foreground: "hsl(var(--accent-foreground))",
|
|
44
|
-
},
|
|
45
|
-
popover: {
|
|
46
|
-
DEFAULT: "hsl(var(--popover))",
|
|
47
|
-
foreground: "hsl(var(--popover-foreground))",
|
|
48
|
-
},
|
|
49
|
-
card: {
|
|
50
|
-
DEFAULT: "hsl(var(--card))",
|
|
51
|
-
foreground: "hsl(var(--card-foreground))",
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
borderRadius: {
|
|
55
|
-
lg: \`var(--radius)\`,
|
|
56
|
-
md: \`calc(var(--radius) - 2px)\`,
|
|
57
|
-
sm: "calc(var(--radius) - 4px)",
|
|
58
|
-
},
|
|
59
|
-
fontFamily: {
|
|
60
|
-
sans: ["var(--font-sans)", ...fontFamily.sans],
|
|
61
|
-
},
|
|
62
|
-
keyframes: {
|
|
63
|
-
"accordion-down": {
|
|
64
|
-
from: { height: "0" },
|
|
65
|
-
to: { height: "var(--radix-accordion-content-height)" },
|
|
66
|
-
},
|
|
67
|
-
"accordion-up": {
|
|
68
|
-
from: { height: "var(--radix-accordion-content-height)" },
|
|
69
|
-
to: { height: "0" },
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
animation: {
|
|
73
|
-
"accordion-down": "accordion-down 0.2s ease-out",
|
|
74
|
-
"accordion-up": "accordion-up 0.2s ease-out",
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
plugins: [require("@tailwindcss/typography"), require("tailwindcss-animate")],
|
|
4
|
+
export const tailwindConfigMjs = `const { fontFamily } = require("tailwindcss/defaultTheme")
|
|
5
|
+
|
|
6
|
+
/** @type {import('tailwindcss').Config} */
|
|
7
|
+
module.exports = {
|
|
8
|
+
darkMode: ["class"],
|
|
9
|
+
content: ["./src/**/*.{ts,tsx,astro}"],
|
|
10
|
+
theme: {
|
|
11
|
+
container: {
|
|
12
|
+
center: true,
|
|
13
|
+
padding: "2rem",
|
|
14
|
+
screens: {
|
|
15
|
+
"2xl": "1400px",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
extend: {
|
|
19
|
+
colors: {
|
|
20
|
+
border: "hsl(var(--border))",
|
|
21
|
+
input: "hsl(var(--input))",
|
|
22
|
+
ring: "hsl(var(--ring))",
|
|
23
|
+
background: "hsl(var(--background))",
|
|
24
|
+
foreground: "hsl(var(--foreground))",
|
|
25
|
+
primary: {
|
|
26
|
+
DEFAULT: "hsl(var(--primary))",
|
|
27
|
+
foreground: "hsl(var(--primary-foreground))",
|
|
28
|
+
},
|
|
29
|
+
secondary: {
|
|
30
|
+
DEFAULT: "hsl(var(--secondary))",
|
|
31
|
+
foreground: "hsl(var(--secondary-foreground))",
|
|
32
|
+
},
|
|
33
|
+
destructive: {
|
|
34
|
+
DEFAULT: "hsl(var(--destructive))",
|
|
35
|
+
foreground: "hsl(var(--destructive-foreground))",
|
|
36
|
+
},
|
|
37
|
+
muted: {
|
|
38
|
+
DEFAULT: "hsl(var(--muted))",
|
|
39
|
+
foreground: "hsl(var(--muted-foreground))",
|
|
40
|
+
},
|
|
41
|
+
accent: {
|
|
42
|
+
DEFAULT: "hsl(var(--accent))",
|
|
43
|
+
foreground: "hsl(var(--accent-foreground))",
|
|
44
|
+
},
|
|
45
|
+
popover: {
|
|
46
|
+
DEFAULT: "hsl(var(--popover))",
|
|
47
|
+
foreground: "hsl(var(--popover-foreground))",
|
|
48
|
+
},
|
|
49
|
+
card: {
|
|
50
|
+
DEFAULT: "hsl(var(--card))",
|
|
51
|
+
foreground: "hsl(var(--card-foreground))",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
borderRadius: {
|
|
55
|
+
lg: \`var(--radius)\`,
|
|
56
|
+
md: \`calc(var(--radius) - 2px)\`,
|
|
57
|
+
sm: "calc(var(--radius) - 4px)",
|
|
58
|
+
},
|
|
59
|
+
fontFamily: {
|
|
60
|
+
sans: ["var(--font-sans)", ...fontFamily.sans],
|
|
61
|
+
},
|
|
62
|
+
keyframes: {
|
|
63
|
+
"accordion-down": {
|
|
64
|
+
from: { height: "0" },
|
|
65
|
+
to: { height: "var(--radix-accordion-content-height)" },
|
|
66
|
+
},
|
|
67
|
+
"accordion-up": {
|
|
68
|
+
from: { height: "var(--radix-accordion-content-height)" },
|
|
69
|
+
to: { height: "0" },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
animation: {
|
|
73
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
74
|
+
"accordion-up": "accordion-up 0.2s ease-out",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
plugins: [require("@tailwindcss/typography"), require("tailwindcss-animate")],
|
|
79
79
|
}`;
|
|
80
|
-
export const globalsCSS = `@tailwind base;
|
|
81
|
-
@tailwind components;
|
|
82
|
-
@tailwind utilities;
|
|
83
|
-
|
|
84
|
-
@layer base {
|
|
85
|
-
:root {
|
|
86
|
-
/* default font added */
|
|
87
|
-
--font-sans: ui-sans-serif;
|
|
88
|
-
|
|
89
|
-
--background: 0 0% 100%;
|
|
90
|
-
--foreground: 222.2 47.4% 11.2%;
|
|
91
|
-
|
|
92
|
-
--muted: 210 40% 96.1%;
|
|
93
|
-
--muted-foreground: 215.4 16.3% 46.9%;
|
|
94
|
-
|
|
95
|
-
--popover: 0 0% 100%;
|
|
96
|
-
--popover-foreground: 222.2 47.4% 11.2%;
|
|
97
|
-
|
|
98
|
-
--border: 214.3 31.8% 91.4%;
|
|
99
|
-
--input: 214.3 31.8% 91.4%;
|
|
100
|
-
|
|
101
|
-
--card: 0 0% 100%;
|
|
102
|
-
--card-foreground: 222.2 47.4% 11.2%;
|
|
103
|
-
|
|
104
|
-
--primary: 222.2 47.4% 11.2%;
|
|
105
|
-
--primary-foreground: 210 40% 98%;
|
|
106
|
-
|
|
107
|
-
--secondary: 210 40% 96.1%;
|
|
108
|
-
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
109
|
-
|
|
110
|
-
--accent: 210 40% 96.1%;
|
|
111
|
-
--accent-foreground: 222.2 47.4% 11.2%;
|
|
112
|
-
|
|
113
|
-
--destructive: 0 100% 50%;
|
|
114
|
-
--destructive-foreground: 210 40% 98%;
|
|
115
|
-
|
|
116
|
-
--ring: 215 20.2% 65.1%;
|
|
117
|
-
|
|
118
|
-
--radius: 0.5rem;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.dark {
|
|
122
|
-
--background: 224 71% 4%;
|
|
123
|
-
--foreground: 213 31% 91%;
|
|
124
|
-
|
|
125
|
-
--muted: 223 47% 11%;
|
|
126
|
-
--muted-foreground: 215.4 16.3% 56.9%;
|
|
127
|
-
|
|
128
|
-
--accent: 216 34% 17%;
|
|
129
|
-
--accent-foreground: 210 40% 98%;
|
|
130
|
-
|
|
131
|
-
--popover: 224 71% 4%;
|
|
132
|
-
--popover-foreground: 215 20.2% 65.1%;
|
|
133
|
-
|
|
134
|
-
--border: 216 34% 17%;
|
|
135
|
-
--input: 216 34% 17%;
|
|
136
|
-
|
|
137
|
-
--card: 224 71% 4%;
|
|
138
|
-
--card-foreground: 213 31% 91%;
|
|
139
|
-
|
|
140
|
-
--primary: 210 40% 98%;
|
|
141
|
-
--primary-foreground: 222.2 47.4% 1.2%;
|
|
142
|
-
|
|
143
|
-
--secondary: 222.2 47.4% 11.2%;
|
|
144
|
-
--secondary-foreground: 210 40% 98%;
|
|
145
|
-
|
|
146
|
-
--destructive: 0 63% 31%;
|
|
147
|
-
--destructive-foreground: 210 40% 98%;
|
|
148
|
-
|
|
149
|
-
--ring: 216 34% 17%;
|
|
150
|
-
|
|
151
|
-
--radius: 0.5rem;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@layer base {
|
|
156
|
-
* {
|
|
157
|
-
@apply border-border;
|
|
158
|
-
}
|
|
159
|
-
body {
|
|
160
|
-
@apply bg-background text-foreground;
|
|
161
|
-
font-feature-settings: "rlig" 1, "calt" 1;
|
|
162
|
-
}
|
|
163
|
-
/* custom from blog astro template */
|
|
164
|
-
main {
|
|
165
|
-
width: 720px;
|
|
166
|
-
max-width: calc(100% - 2em);
|
|
167
|
-
margin: auto;
|
|
168
|
-
padding: 3em 1em;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
80
|
+
export const globalsCSS = `@tailwind base;
|
|
81
|
+
@tailwind components;
|
|
82
|
+
@tailwind utilities;
|
|
83
|
+
|
|
84
|
+
@layer base {
|
|
85
|
+
:root {
|
|
86
|
+
/* default font added */
|
|
87
|
+
--font-sans: ui-sans-serif;
|
|
88
|
+
|
|
89
|
+
--background: 0 0% 100%;
|
|
90
|
+
--foreground: 222.2 47.4% 11.2%;
|
|
91
|
+
|
|
92
|
+
--muted: 210 40% 96.1%;
|
|
93
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
94
|
+
|
|
95
|
+
--popover: 0 0% 100%;
|
|
96
|
+
--popover-foreground: 222.2 47.4% 11.2%;
|
|
97
|
+
|
|
98
|
+
--border: 214.3 31.8% 91.4%;
|
|
99
|
+
--input: 214.3 31.8% 91.4%;
|
|
100
|
+
|
|
101
|
+
--card: 0 0% 100%;
|
|
102
|
+
--card-foreground: 222.2 47.4% 11.2%;
|
|
103
|
+
|
|
104
|
+
--primary: 222.2 47.4% 11.2%;
|
|
105
|
+
--primary-foreground: 210 40% 98%;
|
|
106
|
+
|
|
107
|
+
--secondary: 210 40% 96.1%;
|
|
108
|
+
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
109
|
+
|
|
110
|
+
--accent: 210 40% 96.1%;
|
|
111
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
112
|
+
|
|
113
|
+
--destructive: 0 100% 50%;
|
|
114
|
+
--destructive-foreground: 210 40% 98%;
|
|
115
|
+
|
|
116
|
+
--ring: 215 20.2% 65.1%;
|
|
117
|
+
|
|
118
|
+
--radius: 0.5rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.dark {
|
|
122
|
+
--background: 224 71% 4%;
|
|
123
|
+
--foreground: 213 31% 91%;
|
|
124
|
+
|
|
125
|
+
--muted: 223 47% 11%;
|
|
126
|
+
--muted-foreground: 215.4 16.3% 56.9%;
|
|
127
|
+
|
|
128
|
+
--accent: 216 34% 17%;
|
|
129
|
+
--accent-foreground: 210 40% 98%;
|
|
130
|
+
|
|
131
|
+
--popover: 224 71% 4%;
|
|
132
|
+
--popover-foreground: 215 20.2% 65.1%;
|
|
133
|
+
|
|
134
|
+
--border: 216 34% 17%;
|
|
135
|
+
--input: 216 34% 17%;
|
|
136
|
+
|
|
137
|
+
--card: 224 71% 4%;
|
|
138
|
+
--card-foreground: 213 31% 91%;
|
|
139
|
+
|
|
140
|
+
--primary: 210 40% 98%;
|
|
141
|
+
--primary-foreground: 222.2 47.4% 1.2%;
|
|
142
|
+
|
|
143
|
+
--secondary: 222.2 47.4% 11.2%;
|
|
144
|
+
--secondary-foreground: 210 40% 98%;
|
|
145
|
+
|
|
146
|
+
--destructive: 0 63% 31%;
|
|
147
|
+
--destructive-foreground: 210 40% 98%;
|
|
148
|
+
|
|
149
|
+
--ring: 216 34% 17%;
|
|
150
|
+
|
|
151
|
+
--radius: 0.5rem;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@layer base {
|
|
156
|
+
* {
|
|
157
|
+
@apply border-border;
|
|
158
|
+
}
|
|
159
|
+
body {
|
|
160
|
+
@apply bg-background text-foreground;
|
|
161
|
+
font-feature-settings: "rlig" 1, "calt" 1;
|
|
162
|
+
}
|
|
163
|
+
/* custom from blog astro template */
|
|
164
|
+
main {
|
|
165
|
+
width: 720px;
|
|
166
|
+
max-width: calc(100% - 2em);
|
|
167
|
+
margin: auto;
|
|
168
|
+
padding: 3em 1em;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
171
|
`;
|
|
172
|
-
export const libUtils = `import { clsx, type ClassValue } from "clsx"
|
|
173
|
-
import { twMerge } from "tailwind-merge"
|
|
174
|
-
|
|
175
|
-
export function cn(...inputs: ClassValue[]) {
|
|
176
|
-
return twMerge(clsx(inputs))
|
|
177
|
-
}
|
|
172
|
+
export const libUtils = `import { clsx, type ClassValue } from "clsx"
|
|
173
|
+
import { twMerge } from "tailwind-merge"
|
|
174
|
+
|
|
175
|
+
export function cn(...inputs: ClassValue[]) {
|
|
176
|
+
return twMerge(clsx(inputs))
|
|
177
|
+
}
|
|
178
178
|
`;
|
|
179
179
|
/**
|
|
180
180
|
* from https://ui.shadcn.com/docs/components-json
|
|
181
181
|
* only change is globals.css => global.css
|
|
182
182
|
*/
|
|
183
|
-
export const componentsJSON = `{
|
|
184
|
-
"$schema": "https://ui.shadcn.com/schema.json",
|
|
185
|
-
"style": "default",
|
|
186
|
-
"rsc": false,
|
|
187
|
-
"tsx": true,
|
|
188
|
-
"tailwind": {
|
|
189
|
-
"config": "tailwind.config.mjs",
|
|
190
|
-
"css": "./src/styles/global.css",
|
|
191
|
-
"baseColor": "slate",
|
|
192
|
-
"cssVariables": true,
|
|
193
|
-
"prefix": ""
|
|
194
|
-
},
|
|
195
|
-
"aliases": {
|
|
196
|
-
"components": "@/components",
|
|
197
|
-
"utils": "@/lib/utils"
|
|
198
|
-
}
|
|
183
|
+
export const componentsJSON = `{
|
|
184
|
+
"$schema": "https://ui.shadcn.com/schema.json",
|
|
185
|
+
"style": "default",
|
|
186
|
+
"rsc": false,
|
|
187
|
+
"tsx": true,
|
|
188
|
+
"tailwind": {
|
|
189
|
+
"config": "tailwind.config.mjs",
|
|
190
|
+
"css": "./src/styles/global.css",
|
|
191
|
+
"baseColor": "slate",
|
|
192
|
+
"cssVariables": true,
|
|
193
|
+
"prefix": ""
|
|
194
|
+
},
|
|
195
|
+
"aliases": {
|
|
196
|
+
"components": "@/components",
|
|
197
|
+
"utils": "@/lib/utils"
|
|
198
|
+
}
|
|
199
199
|
}`;
|
|
200
200
|
/**
|
|
201
201
|
* custom auth config
|
|
202
202
|
*/
|
|
203
|
-
export const authConfigTs = `import { getAuthConfig } from "@springmicro/auth";
|
|
204
|
-
|
|
205
|
-
export default getAuthConfig({
|
|
206
|
-
casdoorEndpoint: import.meta.env.PUBLIC_CASDOOR_ENDPOINT,
|
|
207
|
-
clientId: import.meta.env.PUBLIC_CASDOOR_CLIENT_ID,
|
|
208
|
-
clientSecret: import.meta.env.CASDOOR_CLIENT_SECRET,
|
|
203
|
+
export const authConfigTs = `import { getAuthConfig } from "@springmicro/auth";
|
|
204
|
+
|
|
205
|
+
export default getAuthConfig({
|
|
206
|
+
casdoorEndpoint: import.meta.env.PUBLIC_CASDOOR_ENDPOINT,
|
|
207
|
+
clientId: import.meta.env.PUBLIC_CASDOOR_CLIENT_ID,
|
|
208
|
+
clientSecret: import.meta.env.CASDOOR_CLIENT_SECRET,
|
|
209
209
|
});`;
|
|
210
210
|
/**
|
|
211
211
|
* custom README
|
|
212
212
|
*/
|
|
213
|
-
export const readme = (projectName) => `# ${projectName}
|
|
214
|
-
|
|
215
|
-
[](https://springmicrohost.com)
|
|
216
|
-
|
|
217
|
-
This [Astro](https://astro.build/) project was generated with \`@springmicro/cli\` using the [Astro Starter Kit: Blog](https://github.com/withastro/astro/tree/main/examples/blog) template with some modifications.
|
|
218
|
-
|
|
219
|
-
\`\`\`bash
|
|
220
|
-
npm i -g @springmicro/cli
|
|
221
|
-
springmicro init astro -n ${projectName}
|
|
222
|
-
\`\`\`
|
|
223
|
-
|
|
224
|
-
## Features
|
|
225
|
-
|
|
226
|
-
- [tailwindcss](https://tailwindcss.com/) for CSS classes and theming.
|
|
227
|
-
- [shadcn/ui](https://ui.shadcn.com/) for plug-and-play React components.
|
|
228
|
-
- [Content Collections](https://docs.astro.build/en/guides/content-collections/) for blogs, newsletters, whatever you'd like.
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
## Development
|
|
232
|
-
|
|
233
|
-
Install [pnpm](https://pnpm.io/) if you haven't already.
|
|
234
|
-
|
|
235
|
-
<details>
|
|
236
|
-
<summary>Why pnpm?</summary>
|
|
237
|
-
It's a preference of SpringMicroHost. It mostly boils down to faster install times and better dependency management. \`@springmicro/cli\` commands only support pnpm so far.
|
|
238
|
-
</details>
|
|
239
|
-
|
|
240
|
-
\`\`\`bash
|
|
241
|
-
pnpm install
|
|
242
|
-
pnpm run dev
|
|
243
|
-
\`\`\`
|
|
244
|
-
|
|
245
|
-
## Adding SpringMicro packages
|
|
246
|
-
|
|
247
|
-
\`\`\`bash
|
|
248
|
-
springmicro add auth
|
|
249
|
-
\`\`\`
|
|
250
|
-
|
|
251
|
-
## Learn more
|
|
252
|
-
|
|
253
|
-
Check out [our documentation](https://docs.springmicrohost.com).
|
|
213
|
+
export const readme = (projectName) => `# ${projectName}
|
|
214
|
+
|
|
215
|
+
[](https://springmicrohost.com)
|
|
216
|
+
|
|
217
|
+
This [Astro](https://astro.build/) project was generated with \`@springmicro/cli\` using the [Astro Starter Kit: Blog](https://github.com/withastro/astro/tree/main/examples/blog) template with some modifications.
|
|
218
|
+
|
|
219
|
+
\`\`\`bash
|
|
220
|
+
npm i -g @springmicro/cli
|
|
221
|
+
springmicro init astro -n ${projectName}
|
|
222
|
+
\`\`\`
|
|
223
|
+
|
|
224
|
+
## Features
|
|
225
|
+
|
|
226
|
+
- [tailwindcss](https://tailwindcss.com/) for CSS classes and theming.
|
|
227
|
+
- [shadcn/ui](https://ui.shadcn.com/) for plug-and-play React components.
|
|
228
|
+
- [Content Collections](https://docs.astro.build/en/guides/content-collections/) for blogs, newsletters, whatever you'd like.
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
## Development
|
|
232
|
+
|
|
233
|
+
Install [pnpm](https://pnpm.io/) if you haven't already.
|
|
234
|
+
|
|
235
|
+
<details>
|
|
236
|
+
<summary>Why pnpm?</summary>
|
|
237
|
+
It's a preference of SpringMicroHost. It mostly boils down to faster install times and better dependency management. \`@springmicro/cli\` commands only support pnpm so far.
|
|
238
|
+
</details>
|
|
239
|
+
|
|
240
|
+
\`\`\`bash
|
|
241
|
+
pnpm install
|
|
242
|
+
pnpm run dev
|
|
243
|
+
\`\`\`
|
|
244
|
+
|
|
245
|
+
## Adding SpringMicro packages
|
|
246
|
+
|
|
247
|
+
\`\`\`bash
|
|
248
|
+
springmicro add auth
|
|
249
|
+
\`\`\`
|
|
250
|
+
|
|
251
|
+
## Learn more
|
|
252
|
+
|
|
253
|
+
Check out [our documentation](https://docs.springmicrohost.com).
|
|
254
254
|
`;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|