@inglorious/create-app 1.4.3 → 1.6.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/README.md +3 -1
- package/bin/index.js +34 -0
- package/bin/lib/cli.js +1 -0
- package/bin/lib/skills.js +44 -0
- package/package.json +1 -1
- package/templates/js/README.md +1 -1
- package/templates/js-jsx/README.md +2 -2
- package/templates/js-jsx/package.json +1 -1
- package/templates/js-vue/README.md +2 -2
- package/templates/js-vue/package.json +1 -1
- package/templates/ssx-js-jsx/.prettierrc.yml +1 -0
- package/templates/ssx-js-jsx/LICENSE +9 -0
- package/templates/ssx-js-jsx/eslint.config.js +13 -0
- package/templates/ssx-js-jsx/gitignore +3 -0
- package/templates/ssx-js-jsx/package.json +39 -0
- package/templates/ssx-js-jsx/public/logo.png +0 -0
- package/templates/ssx-js-jsx/public/style.css +7 -0
- package/templates/ssx-js-jsx/src/pages/about.jsx +24 -0
- package/templates/ssx-js-jsx/src/pages/index.jsx +19 -0
- package/templates/ssx-js-jsx/src/site.config.js +18 -0
- package/templates/ssx-js-jsx/src/store/entities.js +6 -0
- package/templates/ssx-js-vue/.prettierrc.yml +1 -0
- package/templates/ssx-js-vue/LICENSE +9 -0
- package/templates/ssx-js-vue/eslint.config.js +1 -0
- package/templates/ssx-js-vue/gitignore +3 -0
- package/templates/ssx-js-vue/package.json +38 -0
- package/templates/ssx-js-vue/public/logo.png +0 -0
- package/templates/ssx-js-vue/public/style.css +7 -0
- package/templates/ssx-js-vue/src/pages/about.js +6 -0
- package/templates/ssx-js-vue/src/pages/about.vue +13 -0
- package/templates/ssx-js-vue/src/pages/index.js +6 -0
- package/templates/ssx-js-vue/src/pages/index.vue +9 -0
- package/templates/ssx-js-vue/src/site.config.js +18 -0
- package/templates/ssx-js-vue/src/store/entities.js +6 -0
- package/templates/ssx-ts/eslint.config.js +17 -1
- package/templates/ssx-ts/package.json +4 -1
- package/templates/ssx-ts/tsconfig.json +1 -1
- package/templates/ssx-ts-jsx/.prettierrc.yml +1 -0
- package/templates/ssx-ts-jsx/LICENSE +9 -0
- package/templates/ssx-ts-jsx/eslint.config.js +17 -0
- package/templates/ssx-ts-jsx/gitignore +3 -0
- package/templates/ssx-ts-jsx/package.json +43 -0
- package/templates/ssx-ts-jsx/public/logo.png +0 -0
- package/templates/ssx-ts-jsx/public/style.css +7 -0
- package/templates/ssx-ts-jsx/src/pages/about.tsx +26 -0
- package/templates/ssx-ts-jsx/src/pages/index.tsx +19 -0
- package/templates/ssx-ts-jsx/src/site.config.ts +20 -0
- package/templates/ssx-ts-jsx/src/store/entities.ts +8 -0
- package/templates/ssx-ts-jsx/tsconfig.json +26 -0
- package/templates/ssx-ts-jsx/types/index.d.ts +31 -0
- package/templates/ssx-ts-vue/.prettierrc.yml +1 -0
- package/templates/ssx-ts-vue/LICENSE +9 -0
- package/templates/ssx-ts-vue/eslint.config.js +17 -0
- package/templates/ssx-ts-vue/gitignore +3 -0
- package/templates/ssx-ts-vue/package.json +42 -0
- package/templates/ssx-ts-vue/public/logo.png +0 -0
- package/templates/ssx-ts-vue/public/style.css +7 -0
- package/templates/ssx-ts-vue/src/pages/about.ts +7 -0
- package/templates/ssx-ts-vue/src/pages/about.vue +13 -0
- package/templates/ssx-ts-vue/src/pages/index.ts +7 -0
- package/templates/ssx-ts-vue/src/pages/index.vue +9 -0
- package/templates/ssx-ts-vue/src/site.config.ts +20 -0
- package/templates/ssx-ts-vue/src/store/entities.ts +8 -0
- package/templates/ssx-ts-vue/tsconfig.json +23 -0
- package/templates/ssx-ts-vue/types/index.d.ts +23 -0
- package/templates/ts/README.md +3 -2
- package/templates/ts-jsx/README.md +4 -3
- package/templates/ts-jsx/package.json +1 -1
- package/templates/ts-vue/README.md +5 -3
- package/templates/ts-vue/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,6 +36,8 @@ For the JavaScript and TypeScript Vite templates, the CLI then asks about the ap
|
|
|
36
36
|
| Translate the app? | `--i18n` / `--no-i18n`, `--languages=en,it` | `@inglorious/i18n`, a catalogue per language and a language picker; the first language is the default |
|
|
37
37
|
| Enable PWA support? | `--pwa` / `--no-pwa` | `vite-plugin-pwa`, a manifest, icons, and a service worker that keeps installed apps on the latest version |
|
|
38
38
|
|
|
39
|
+
Every template except `minimal` then asks whether to add agent skills (`--skills` / `--no-skills`). Saying yes runs the [skills CLI](https://skills.sh) in the new project. It asks which coding agents to install for, and installs the [Inglorious Forge skills](https://github.com/IngloriousCoderz/forge-skills) that match your choices: `forge`, `forge-best-practices`, `store`, `web` and `web-best-practices` always, plus `ssx`, `vite-plugin-jsx` or `vite-plugin-vue`, `ui` and `ui-best-practices`, and `i18n` when the project uses them. If the install fails, the CLI prints the command to retry it.
|
|
40
|
+
|
|
39
41
|
The app is generated in the syntax you chose: lit-html, JSX or Vue. Every question answered on the command line is skipped, so a project can be created without any prompt:
|
|
40
42
|
|
|
41
43
|
| Question | Argument or flag |
|
|
@@ -45,7 +47,7 @@ The app is generated in the syntax you chose: lit-html, JSX or Vue. Every questi
|
|
|
45
47
|
| Select a rendering syntax | `--syntax=lit-html\|jsx\|vue` |
|
|
46
48
|
|
|
47
49
|
```bash
|
|
48
|
-
npm create @inglorious/app@latest -- my-app --template=ts --syntax=jsx --ui --theme=material --routing --transitions --icons=material --languages=en,it --no-mobile --no-pwa
|
|
50
|
+
npm create @inglorious/app@latest -- my-app --template=ts --syntax=jsx --ui --theme=material --routing --transitions --icons=material --languages=en,it --no-mobile --no-pwa --skills
|
|
49
51
|
```
|
|
50
52
|
|
|
51
53
|
## Templates
|
package/bin/index.js
CHANGED
|
@@ -21,6 +21,7 @@ import { copyDir } from "./lib/file.js"
|
|
|
21
21
|
import { addMobileSupport } from "./lib/mobile.js"
|
|
22
22
|
import { addPwaSupport } from "./lib/pwa.js"
|
|
23
23
|
import { askAppFeatures } from "./lib/questions.js"
|
|
24
|
+
import { installSkills, skillsCommand, skillsFor } from "./lib/skills.js"
|
|
24
25
|
|
|
25
26
|
async function main() {
|
|
26
27
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
@@ -107,6 +108,29 @@ async function main() {
|
|
|
107
108
|
)
|
|
108
109
|
}
|
|
109
110
|
|
|
111
|
+
let withSkills = false
|
|
112
|
+
|
|
113
|
+
if (baseTemplate !== "minimal") {
|
|
114
|
+
const { addSkills } = await prompts(
|
|
115
|
+
{
|
|
116
|
+
type: cliOptions.skills === null ? "confirm" : null,
|
|
117
|
+
name: "addSkills",
|
|
118
|
+
message: "Add agent skills for coding agents? (Claude Code, Codex...)",
|
|
119
|
+
initial: true,
|
|
120
|
+
},
|
|
121
|
+
{ onCancel },
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
if (canceled) {
|
|
125
|
+
console.log("Operation canceled.")
|
|
126
|
+
return
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
withSkills = cliOptions.skills ?? addSkills
|
|
130
|
+
} else if (cliOptions.skills) {
|
|
131
|
+
console.warn("Agent skills are not available for the minimal template.")
|
|
132
|
+
}
|
|
133
|
+
|
|
110
134
|
const spinner = ora(`Creating project "${projectName}"...`).start()
|
|
111
135
|
|
|
112
136
|
try {
|
|
@@ -179,6 +203,16 @@ async function main() {
|
|
|
179
203
|
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, INDENTATION) + EOL)
|
|
180
204
|
|
|
181
205
|
spinner.succeed(`Created ${projectName} at ${targetDir}`)
|
|
206
|
+
|
|
207
|
+
if (withSkills) {
|
|
208
|
+
const skills = skillsFor({ baseTemplate, renderer, ...features })
|
|
209
|
+
if (!installSkills(targetDir, skills)) {
|
|
210
|
+
console.warn(`\nCould not add the agent skills. To retry, run:`)
|
|
211
|
+
console.warn(` cd ${projectName}`)
|
|
212
|
+
console.warn(` ${skillsCommand(skills)}`)
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
182
216
|
console.log(`\nNext steps:`)
|
|
183
217
|
console.log(` cd ${projectName}`)
|
|
184
218
|
console.log(` pnpm install`)
|
package/bin/lib/cli.js
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { execSync } from "child_process"
|
|
2
|
+
|
|
3
|
+
const SKILLS_REPOSITORY = "IngloriousCoderz/forge-skills"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The agent skills for the packages a new project uses.
|
|
7
|
+
*
|
|
8
|
+
* @param {{ baseTemplate: string, renderer: string, ui: boolean, languages: string[] }} project
|
|
9
|
+
*/
|
|
10
|
+
export function skillsFor({ baseTemplate, renderer, ui, languages }) {
|
|
11
|
+
const skills = [
|
|
12
|
+
"forge",
|
|
13
|
+
"forge-best-practices",
|
|
14
|
+
"store",
|
|
15
|
+
"web",
|
|
16
|
+
"web-best-practices",
|
|
17
|
+
]
|
|
18
|
+
if (baseTemplate.startsWith("ssx-")) skills.push("ssx")
|
|
19
|
+
if (renderer === "jsx") skills.push("vite-plugin-jsx")
|
|
20
|
+
if (renderer === "vue") skills.push("vite-plugin-vue")
|
|
21
|
+
if (ui) skills.push("ui", "ui-best-practices")
|
|
22
|
+
if (languages.length) skills.push("i18n")
|
|
23
|
+
return skills
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Installs the skills into the project with the skills CLI, which asks which
|
|
28
|
+
* agents to install them for. Returns false when the install fails.
|
|
29
|
+
*
|
|
30
|
+
* @param {string} targetDir
|
|
31
|
+
* @param {string[]} skills
|
|
32
|
+
*/
|
|
33
|
+
export function installSkills(targetDir, skills) {
|
|
34
|
+
try {
|
|
35
|
+
execSync(skillsCommand(skills), { cwd: targetDir, stdio: "inherit" })
|
|
36
|
+
return true
|
|
37
|
+
} catch {
|
|
38
|
+
return false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function skillsCommand(skills) {
|
|
43
|
+
return `pnpm dlx skills add ${SKILLS_REPOSITORY} --skill ${skills.join(" ")}`
|
|
44
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/create-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "A scaffolding tool to quickly create a new app with Inglorious Web.",
|
|
5
5
|
"author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"license": "MIT",
|
package/templates/js/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# my-app
|
|
2
2
|
|
|
3
|
-
This project is a minimal starter template for creating an app with the Inglorious Web framework using
|
|
3
|
+
This project is a minimal starter template for creating an app with the Inglorious Web framework using JavaScript, bundled with Vite.
|
|
4
4
|
|
|
5
5
|
## Getting Started
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# my-app
|
|
2
2
|
|
|
3
|
-
This project is a minimal starter template for creating an app with the Inglorious Web framework using
|
|
3
|
+
This project is a minimal starter template for creating an app with the Inglorious Web framework using JavaScript and JSX, bundled with Vite.
|
|
4
4
|
|
|
5
5
|
## Getting Started
|
|
6
6
|
|
|
@@ -24,6 +24,6 @@ This will start a Vite development server. Open your browser to the local URL pr
|
|
|
24
24
|
## Project Setup
|
|
25
25
|
|
|
26
26
|
- `index.html`: The main entry point for your app.
|
|
27
|
-
- `src/`: Contains your app's JavaScript source code.
|
|
27
|
+
- `src/`: Contains your app's JavaScript source code (JSX in `.jsx`/`.tsx` files).
|
|
28
28
|
- `vite.config.js`: Vite configuration file.
|
|
29
29
|
- `package.json`: Project metadata and dependencies.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# my-app
|
|
2
2
|
|
|
3
|
-
This project is a minimal starter template for creating an app with the Inglorious Web framework using
|
|
3
|
+
This project is a minimal starter template for creating an app with the Inglorious Web framework using JavaScript and Vue-like templates, bundled with Vite.
|
|
4
4
|
|
|
5
5
|
## Getting Started
|
|
6
6
|
|
|
@@ -24,6 +24,6 @@ This will start a Vite development server. Open your browser to the local URL pr
|
|
|
24
24
|
## Project Setup
|
|
25
25
|
|
|
26
26
|
- `index.html`: The main entry point for your app.
|
|
27
|
-
- `src/`: Contains your app's JavaScript source code.
|
|
27
|
+
- `src/`: Contains your app's JavaScript source code (templates in `.vue` files).
|
|
28
28
|
- `vite.config.js`: Vite configuration file.
|
|
29
29
|
- `package.json`: Project metadata and dependencies.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
semi: false
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ssx-js-jsx-template",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": true,
|
|
6
|
+
"description": "A new SSX app created with @inglorious/create-app",
|
|
7
|
+
"author": "",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"lint": "eslint .",
|
|
12
|
+
"dev": "ssx dev",
|
|
13
|
+
"build": "ssx build",
|
|
14
|
+
"preview": "serve dist"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@inglorious/ssx": "workspace:*",
|
|
18
|
+
"@inglorious/store": "workspace:*",
|
|
19
|
+
"@inglorious/web": "workspace:*",
|
|
20
|
+
"gray-matter": "^4.0.3",
|
|
21
|
+
"highlight.js": "^11.12.0",
|
|
22
|
+
"katex": "^0.19.0",
|
|
23
|
+
"markdown-it": "^15.0.3",
|
|
24
|
+
"markdown-it-texmath": "^1.0.0",
|
|
25
|
+
"mermaid": "^12.2.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@inglorious/eslint-config": "workspace:*",
|
|
29
|
+
"@inglorious/vite-plugin-jsx": "workspace:*",
|
|
30
|
+
"eslint": "^10.13.0",
|
|
31
|
+
"eslint-plugin-react": "^7.37.5",
|
|
32
|
+
"prettier": "^3.9.10",
|
|
33
|
+
"serve": "^14.2.6"
|
|
34
|
+
},
|
|
35
|
+
"packageManager": "pnpm@10.15.0",
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">= 22"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const About = {
|
|
2
|
+
click(entity) {
|
|
3
|
+
entity.name += "!"
|
|
4
|
+
},
|
|
5
|
+
|
|
6
|
+
render(entity, api) {
|
|
7
|
+
return (
|
|
8
|
+
<div>
|
|
9
|
+
<h1>
|
|
10
|
+
About{" "}
|
|
11
|
+
<span onClick={() => api.notify(`#${entity.id}:click`)}>
|
|
12
|
+
{entity.name}
|
|
13
|
+
</span>
|
|
14
|
+
</h1>
|
|
15
|
+
<p>This is a static page generated by SSX.</p>
|
|
16
|
+
<a href="/">Back Home</a>
|
|
17
|
+
</div>
|
|
18
|
+
)
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const metadata = {
|
|
23
|
+
title: "About",
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const Index = {
|
|
2
|
+
render() {
|
|
3
|
+
return (
|
|
4
|
+
<div>
|
|
5
|
+
<h1>Welcome to SSX!</h1>
|
|
6
|
+
<p>
|
|
7
|
+
Edit <code>src/pages/index.jsx</code> to get started.
|
|
8
|
+
</p>
|
|
9
|
+
<nav>
|
|
10
|
+
<a href="/about">About</a>
|
|
11
|
+
</nav>
|
|
12
|
+
</div>
|
|
13
|
+
)
|
|
14
|
+
},
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const metadata = {
|
|
18
|
+
title: "Home",
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "@inglorious/vite-plugin-jsx"
|
|
2
|
+
|
|
3
|
+
/** @type {import('@inglorious/ssx').SiteConfig} */
|
|
4
|
+
export default {
|
|
5
|
+
title: "My SSX App",
|
|
6
|
+
favicon: "/logo.png",
|
|
7
|
+
meta: {
|
|
8
|
+
description: "Built with @inglorious/ssx",
|
|
9
|
+
viewport: "width=device-width, initial-scale=1.0, viewport-fit=cover",
|
|
10
|
+
},
|
|
11
|
+
// SSX includes image optimization by default
|
|
12
|
+
vite: {
|
|
13
|
+
plugins: [jsx()],
|
|
14
|
+
server: {
|
|
15
|
+
port: 3000,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
semi: false
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@inglorious/eslint-config/browser"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ssx-js-vue-template",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": true,
|
|
6
|
+
"description": "A new SSX app created with @inglorious/create-app",
|
|
7
|
+
"author": "",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"lint": "eslint .",
|
|
12
|
+
"dev": "ssx dev",
|
|
13
|
+
"build": "ssx build",
|
|
14
|
+
"preview": "serve dist"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@inglorious/ssx": "workspace:*",
|
|
18
|
+
"@inglorious/store": "workspace:*",
|
|
19
|
+
"@inglorious/web": "workspace:*",
|
|
20
|
+
"gray-matter": "^4.0.3",
|
|
21
|
+
"highlight.js": "^11.12.0",
|
|
22
|
+
"katex": "^0.19.0",
|
|
23
|
+
"markdown-it": "^15.0.3",
|
|
24
|
+
"markdown-it-texmath": "^1.0.0",
|
|
25
|
+
"mermaid": "^12.2.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@inglorious/eslint-config": "workspace:*",
|
|
29
|
+
"@inglorious/vite-plugin-vue": "workspace:*",
|
|
30
|
+
"eslint": "^10.13.0",
|
|
31
|
+
"prettier": "^3.9.10",
|
|
32
|
+
"serve": "^14.2.6"
|
|
33
|
+
},
|
|
34
|
+
"packageManager": "pnpm@10.15.0",
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">= 22"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
const click = (entity) => (entity.name += "!")
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div>
|
|
7
|
+
<h1>
|
|
8
|
+
About <span @click="click">{{ entity.name }}</span>
|
|
9
|
+
</h1>
|
|
10
|
+
<p>This is a static page generated by SSX.</p>
|
|
11
|
+
<a href="/">Back Home</a>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { vue } from "@inglorious/vite-plugin-vue"
|
|
2
|
+
|
|
3
|
+
/** @type {import('@inglorious/ssx').SiteConfig} */
|
|
4
|
+
export default {
|
|
5
|
+
title: "My SSX App",
|
|
6
|
+
favicon: "/logo.png",
|
|
7
|
+
meta: {
|
|
8
|
+
description: "Built with @inglorious/ssx",
|
|
9
|
+
viewport: "width=device-width, initial-scale=1.0, viewport-fit=cover",
|
|
10
|
+
},
|
|
11
|
+
// SSX includes image optimization by default
|
|
12
|
+
vite: {
|
|
13
|
+
plugins: [vue()],
|
|
14
|
+
server: {
|
|
15
|
+
port: 3000,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
}
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import browserConfig from "@inglorious/eslint-config/browser"
|
|
2
|
+
import typescriptConfig from "@inglorious/eslint-config/typescript"
|
|
3
|
+
import { defineConfig } from "eslint/config"
|
|
4
|
+
|
|
5
|
+
export default defineConfig([
|
|
6
|
+
...browserConfig,
|
|
7
|
+
...typescriptConfig,
|
|
8
|
+
{
|
|
9
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
10
|
+
languageOptions: {
|
|
11
|
+
parserOptions: {
|
|
12
|
+
project: "./tsconfig.json",
|
|
13
|
+
tsconfigRootDir: import.meta.dirname,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
])
|
|
@@ -26,10 +26,13 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@inglorious/eslint-config": "workspace:*",
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "^8.72.0",
|
|
30
|
+
"@typescript-eslint/parser": "^8.72.0",
|
|
31
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
29
32
|
"eslint": "^10.13.0",
|
|
30
33
|
"prettier": "^3.9.10",
|
|
31
34
|
"serve": "^14.2.6",
|
|
32
|
-
"typescript": "
|
|
35
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
|
33
36
|
},
|
|
34
37
|
"packageManager": "pnpm@10.15.0",
|
|
35
38
|
"engines": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
semi: false
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import browserConfig from "@inglorious/eslint-config/browser"
|
|
2
|
+
import typescriptConfig from "@inglorious/eslint-config/typescript"
|
|
3
|
+
import { defineConfig } from "eslint/config"
|
|
4
|
+
|
|
5
|
+
export default defineConfig([
|
|
6
|
+
...browserConfig,
|
|
7
|
+
...typescriptConfig,
|
|
8
|
+
{
|
|
9
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
10
|
+
languageOptions: {
|
|
11
|
+
parserOptions: {
|
|
12
|
+
project: "./tsconfig.json",
|
|
13
|
+
tsconfigRootDir: import.meta.dirname,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
])
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ssx-ts-jsx-template",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": true,
|
|
6
|
+
"description": "A new SSX app created with @inglorious/create-app",
|
|
7
|
+
"author": "",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"lint": "eslint .",
|
|
12
|
+
"dev": "ssx dev",
|
|
13
|
+
"build": "ssx build",
|
|
14
|
+
"preview": "serve dist"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@inglorious/ssx": "workspace:*",
|
|
18
|
+
"@inglorious/store": "workspace:*",
|
|
19
|
+
"@inglorious/web": "workspace:*",
|
|
20
|
+
"gray-matter": "^4.0.3",
|
|
21
|
+
"highlight.js": "^11.12.0",
|
|
22
|
+
"katex": "^0.19.0",
|
|
23
|
+
"markdown-it": "^15.0.3",
|
|
24
|
+
"markdown-it-texmath": "^1.0.0",
|
|
25
|
+
"mermaid": "^12.2.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@inglorious/eslint-config": "workspace:*",
|
|
29
|
+
"@inglorious/jsx": "workspace:*",
|
|
30
|
+
"@inglorious/vite-plugin-jsx": "workspace:*",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^8.72.0",
|
|
32
|
+
"@typescript-eslint/parser": "^8.72.0",
|
|
33
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
34
|
+
"eslint": "^10.13.0",
|
|
35
|
+
"prettier": "^3.9.10",
|
|
36
|
+
"serve": "^14.2.6",
|
|
37
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
|
38
|
+
},
|
|
39
|
+
"packageManager": "pnpm@10.15.0",
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">= 22"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AboutType } from "../../types"
|
|
2
|
+
|
|
3
|
+
export const About: AboutType = {
|
|
4
|
+
click(entity) {
|
|
5
|
+
entity.name += "!"
|
|
6
|
+
},
|
|
7
|
+
|
|
8
|
+
render(entity, api) {
|
|
9
|
+
return (
|
|
10
|
+
<div>
|
|
11
|
+
<h1>
|
|
12
|
+
About{" "}
|
|
13
|
+
<span onClick={() => api.notify(`#${entity.id}:click`)}>
|
|
14
|
+
{entity.name}
|
|
15
|
+
</span>
|
|
16
|
+
</h1>
|
|
17
|
+
<p>This is a static page generated by SSX.</p>
|
|
18
|
+
<a href="/">Back Home</a>
|
|
19
|
+
</div>
|
|
20
|
+
)
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const metadata = {
|
|
25
|
+
title: "About",
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const Index = {
|
|
2
|
+
render() {
|
|
3
|
+
return (
|
|
4
|
+
<div>
|
|
5
|
+
<h1>Welcome to SSX!</h1>
|
|
6
|
+
<p>
|
|
7
|
+
Edit <code>src/pages/index.tsx</code> to get started.
|
|
8
|
+
</p>
|
|
9
|
+
<nav>
|
|
10
|
+
<a href="/about">About</a>
|
|
11
|
+
</nav>
|
|
12
|
+
</div>
|
|
13
|
+
)
|
|
14
|
+
},
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const metadata = {
|
|
18
|
+
title: "Home",
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SiteConfig } from "@inglorious/ssx"
|
|
2
|
+
import { jsx } from "@inglorious/vite-plugin-jsx"
|
|
3
|
+
|
|
4
|
+
const siteConfig: SiteConfig = {
|
|
5
|
+
title: "My SSX App",
|
|
6
|
+
favicon: "/logo.png",
|
|
7
|
+
meta: {
|
|
8
|
+
description: "Built with @inglorious/ssx",
|
|
9
|
+
viewport: "width=device-width, initial-scale=1.0, viewport-fit=cover",
|
|
10
|
+
},
|
|
11
|
+
// SSX includes image optimization by default
|
|
12
|
+
vite: {
|
|
13
|
+
plugins: [jsx()],
|
|
14
|
+
server: {
|
|
15
|
+
port: 3000,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default siteConfig
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
|
|
9
|
+
/* Bundler mode */
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
|
|
16
|
+
/* Linting */
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noUnusedLocals": true,
|
|
19
|
+
"noUnusedParameters": true,
|
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
|
21
|
+
|
|
22
|
+
/* JSX, compiled by @inglorious/vite-plugin-jsx */
|
|
23
|
+
"jsx": "preserve"
|
|
24
|
+
},
|
|
25
|
+
"include": ["src", "types"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="@inglorious/jsx/jsx-runtime" />
|
|
2
|
+
|
|
3
|
+
import type { BaseEntity, EntitiesState, EntityType } from "@inglorious/store"
|
|
4
|
+
import type { Api, TemplateResult } from "@inglorious/web"
|
|
5
|
+
|
|
6
|
+
// Define your entity types
|
|
7
|
+
export interface AboutEntity extends BaseEntity {
|
|
8
|
+
type: "About"
|
|
9
|
+
name: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Union type of all entities
|
|
13
|
+
export type AppEntity = AboutEntity
|
|
14
|
+
|
|
15
|
+
// State type with known entity IDs
|
|
16
|
+
export interface AppState extends EntitiesState<AppEntity> {
|
|
17
|
+
about: AboutEntity
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type AppApi = Api<AppEntity, AppState>
|
|
21
|
+
|
|
22
|
+
// Each type's events and their payloads. Declare types with `type`, not
|
|
23
|
+
// `interface`: an interface does not fit the store's `types`.
|
|
24
|
+
export type AboutType = {
|
|
25
|
+
click: (entity: AboutEntity) => void
|
|
26
|
+
render: (entity: AboutEntity, api: AppApi) => TemplateResult
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// A shorthand for a type: `{ ... } satisfies AppType<AboutEntity>` infers
|
|
30
|
+
// its handlers' parameters, but neither lists its events nor types payloads.
|
|
31
|
+
export type AppType<TEntity extends AppEntity> = EntityType<TEntity, AppApi>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
semi: false
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2025 Inglorious Coderz Srl.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import browserConfig from "@inglorious/eslint-config/browser"
|
|
2
|
+
import typescriptConfig from "@inglorious/eslint-config/typescript"
|
|
3
|
+
import { defineConfig } from "eslint/config"
|
|
4
|
+
|
|
5
|
+
export default defineConfig([
|
|
6
|
+
...browserConfig,
|
|
7
|
+
...typescriptConfig,
|
|
8
|
+
{
|
|
9
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
10
|
+
languageOptions: {
|
|
11
|
+
parserOptions: {
|
|
12
|
+
project: "./tsconfig.json",
|
|
13
|
+
tsconfigRootDir: import.meta.dirname,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
])
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ssx-ts-vue-template",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": true,
|
|
6
|
+
"description": "A new SSX app created with @inglorious/create-app",
|
|
7
|
+
"author": "",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"lint": "eslint .",
|
|
12
|
+
"dev": "ssx dev",
|
|
13
|
+
"build": "ssx build",
|
|
14
|
+
"preview": "serve dist"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@inglorious/ssx": "workspace:*",
|
|
18
|
+
"@inglorious/store": "workspace:*",
|
|
19
|
+
"@inglorious/web": "workspace:*",
|
|
20
|
+
"gray-matter": "^4.0.3",
|
|
21
|
+
"highlight.js": "^11.12.0",
|
|
22
|
+
"katex": "^0.19.0",
|
|
23
|
+
"markdown-it": "^15.0.3",
|
|
24
|
+
"markdown-it-texmath": "^1.0.0",
|
|
25
|
+
"mermaid": "^12.2.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@inglorious/eslint-config": "workspace:*",
|
|
29
|
+
"@inglorious/vite-plugin-vue": "workspace:*",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^8.72.0",
|
|
31
|
+
"@typescript-eslint/parser": "^8.72.0",
|
|
32
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
33
|
+
"eslint": "^10.13.0",
|
|
34
|
+
"prettier": "^3.9.10",
|
|
35
|
+
"serve": "^14.2.6",
|
|
36
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
|
37
|
+
},
|
|
38
|
+
"packageManager": "pnpm@10.15.0",
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">= 22"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
const click = (entity) => (entity.name += "!")
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div>
|
|
7
|
+
<h1>
|
|
8
|
+
About <span @click="click">{{ entity.name }}</span>
|
|
9
|
+
</h1>
|
|
10
|
+
<p>This is a static page generated by SSX.</p>
|
|
11
|
+
<a href="/">Back Home</a>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SiteConfig } from "@inglorious/ssx"
|
|
2
|
+
import { vue } from "@inglorious/vite-plugin-vue"
|
|
3
|
+
|
|
4
|
+
const siteConfig: SiteConfig = {
|
|
5
|
+
title: "My SSX App",
|
|
6
|
+
favicon: "/logo.png",
|
|
7
|
+
meta: {
|
|
8
|
+
description: "Built with @inglorious/ssx",
|
|
9
|
+
viewport: "width=device-width, initial-scale=1.0, viewport-fit=cover",
|
|
10
|
+
},
|
|
11
|
+
// SSX includes image optimization by default
|
|
12
|
+
vite: {
|
|
13
|
+
plugins: [vue()],
|
|
14
|
+
server: {
|
|
15
|
+
port: 3000,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default siteConfig
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
|
|
9
|
+
/* Bundler mode */
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
|
|
16
|
+
/* Linting */
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noUnusedLocals": true,
|
|
19
|
+
"noUnusedParameters": true,
|
|
20
|
+
"noFallthroughCasesInSwitch": true
|
|
21
|
+
},
|
|
22
|
+
"include": ["src", "types"]
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BaseEntity, EntitiesState, EntityType } from "@inglorious/store"
|
|
2
|
+
import type { Api } from "@inglorious/web"
|
|
3
|
+
|
|
4
|
+
// Define your entity types
|
|
5
|
+
export interface AboutEntity extends BaseEntity {
|
|
6
|
+
type: "About"
|
|
7
|
+
name: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Union type of all entities
|
|
11
|
+
export type AppEntity = AboutEntity
|
|
12
|
+
|
|
13
|
+
// State type with known entity IDs
|
|
14
|
+
export interface AppState extends EntitiesState<AppEntity> {
|
|
15
|
+
about: AboutEntity
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type AppApi = Api<AppEntity, AppState>
|
|
19
|
+
|
|
20
|
+
// A type for one of the app's entities. For rigour, declare a type alias
|
|
21
|
+
// listing its events and payloads; this shorthand infers its handlers'
|
|
22
|
+
// parameters with `{ ... } satisfies AppType<AboutEntity>`.
|
|
23
|
+
export type AppType<TEntity extends AppEntity> = EntityType<TEntity, AppApi>
|
package/templates/ts/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# my-app
|
|
2
2
|
|
|
3
|
-
This project is a minimal starter template for creating an app with the Inglorious Web framework using TypeScript
|
|
3
|
+
This project is a minimal starter template for creating an app with the Inglorious Web framework using TypeScript, bundled with Vite.
|
|
4
4
|
|
|
5
5
|
## Getting Started
|
|
6
6
|
|
|
@@ -25,6 +25,7 @@ This will start a Vite development server. Open your browser to the local URL pr
|
|
|
25
25
|
|
|
26
26
|
- `index.html`: The main entry point for your app.
|
|
27
27
|
- `src/`: Contains your app's TypeScript source code.
|
|
28
|
-
- `
|
|
28
|
+
- `types/`: Type declarations for your app's entities, state and types.
|
|
29
|
+
- `vite.config.ts`: Vite configuration file.
|
|
29
30
|
- `tsconfig.json`: TypeScript configuration for the project.
|
|
30
31
|
- `package.json`: Project metadata and dependencies.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# my-app
|
|
2
2
|
|
|
3
|
-
This project is a minimal starter template for creating an app with the Inglorious Web framework using TypeScript and Vite.
|
|
3
|
+
This project is a minimal starter template for creating an app with the Inglorious Web framework using TypeScript and JSX, bundled with Vite.
|
|
4
4
|
|
|
5
5
|
## Getting Started
|
|
6
6
|
|
|
@@ -24,7 +24,8 @@ This will start a Vite development server. Open your browser to the local URL pr
|
|
|
24
24
|
## Project Setup
|
|
25
25
|
|
|
26
26
|
- `index.html`: The main entry point for your app.
|
|
27
|
-
- `src/`: Contains your app's TypeScript source code.
|
|
28
|
-
- `
|
|
27
|
+
- `src/`: Contains your app's TypeScript source code (JSX in `.jsx`/`.tsx` files).
|
|
28
|
+
- `types/`: Type declarations for your app's entities, state and types.
|
|
29
|
+
- `vite.config.ts`: Vite configuration file.
|
|
29
30
|
- `tsconfig.json`: TypeScript configuration for the project.
|
|
30
31
|
- `package.json`: Project metadata and dependencies.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# my-app
|
|
2
2
|
|
|
3
|
-
This project is a minimal starter template for creating an app with the Inglorious Web framework using
|
|
3
|
+
This project is a minimal starter template for creating an app with the Inglorious Web framework using TypeScript and Vue-like templates, bundled with Vite.
|
|
4
4
|
|
|
5
5
|
## Getting Started
|
|
6
6
|
|
|
@@ -24,6 +24,8 @@ This will start a Vite development server. Open your browser to the local URL pr
|
|
|
24
24
|
## Project Setup
|
|
25
25
|
|
|
26
26
|
- `index.html`: The main entry point for your app.
|
|
27
|
-
- `src/`: Contains your app's
|
|
28
|
-
- `
|
|
27
|
+
- `src/`: Contains your app's TypeScript source code (templates in `.vue` files).
|
|
28
|
+
- `types/`: Type declarations for your app's entities, state and types.
|
|
29
|
+
- `vite.config.ts`: Vite configuration file.
|
|
30
|
+
- `tsconfig.json`: TypeScript configuration for the project.
|
|
29
31
|
- `package.json`: Project metadata and dependencies.
|