@inglorious/create-app 1.5.0 → 1.7.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 +12 -12
- package/bin/lib/features.js +7 -1
- 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://opensource.org/licenses/MIT)
|
|
4
4
|
|
|
5
|
-
The official scaffolding tool to quickly create a new web app with the [@inglorious/web](https://www.npmjs.com/package/@inglorious/web) framework or a
|
|
5
|
+
The official scaffolding tool to quickly create a new web app with the [@inglorious/web](https://www.npmjs.com/package/@inglorious/web) framework or a pre-rendered site, static or server-rendered, with [@inglorious/ssx](https://www.npmjs.com/package/@inglorious/ssx).
|
|
6
6
|
|
|
7
7
|
This package allows you to generate a new project from a set of pre-configured templates, so you can start developing your web app right away.
|
|
8
8
|
|
|
@@ -25,16 +25,16 @@ The CLI will guide you through the setup process, asking for a project name and
|
|
|
25
25
|
|
|
26
26
|
For the JavaScript and TypeScript Vite templates, the CLI then asks about the app's features:
|
|
27
27
|
|
|
28
|
-
| Question | Flag
|
|
29
|
-
| ------------------------- |
|
|
30
|
-
| Use Inglorious UI? | `--ui` / `--no-ui`
|
|
31
|
-
| Which theme? | `--theme=inglorious\|material\|bootstrap`
|
|
32
|
-
| Is it a mobile app? | `--mobile` / `--no-mobile`
|
|
33
|
-
| Add routing? | `--routing` / `--no-routing`
|
|
34
|
-
| Animate page transitions? | `--transitions` / `--no-transitions`
|
|
35
|
-
| Which icon packs? | `--icons=material,fontawesome,lucide` / `--no-icons`
|
|
36
|
-
| Translate the app? | `--i18n` / `--no-i18n`, `--languages=en,it`
|
|
37
|
-
| Enable PWA support? | `--pwa` / `--no-pwa`
|
|
28
|
+
| Question | Flag | Adds |
|
|
29
|
+
| ------------------------- | ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------- |
|
|
30
|
+
| Use Inglorious UI? | `--ui` / `--no-ui` | `@inglorious/ui`, its base styles and an app bar |
|
|
31
|
+
| Which theme? | `--theme=inglorious\|material-ui\|material-3\|bootstrap\|ios-18\|ios-26` | The theme's stylesheet and class |
|
|
32
|
+
| Is it a mobile app? | `--mobile` / `--no-mobile` | Capacitor for Android and iOS; with Inglorious UI, a bottom tab bar and safe-area spacing |
|
|
33
|
+
| Add routing? | `--routing` / `--no-routing` | The Router, a home and an about page, and navigation between them |
|
|
34
|
+
| Animate page transitions? | `--transitions` / `--no-transitions` | View transitions between pages (with routing and Inglorious UI) |
|
|
35
|
+
| Which icon packs? | `--icons=material,fontawesome,lucide` / `--no-icons` | Iconify icon sets, drawn by Inglorious UI's `Icon` (with Inglorious UI) |
|
|
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
|
+
| 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
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
40
|
|
|
@@ -47,7 +47,7 @@ The app is generated in the syntax you chose: lit-html, JSX or Vue. Every questi
|
|
|
47
47
|
| Select a rendering syntax | `--syntax=lit-html\|jsx\|vue` |
|
|
48
48
|
|
|
49
49
|
```bash
|
|
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
|
|
50
|
+
npm create @inglorious/app@latest -- my-app --template=ts --syntax=jsx --ui --theme=material-3 --routing --transitions --icons=material --languages=en,it --no-mobile --no-pwa --skills
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
## Templates
|
package/bin/lib/features.js
CHANGED
|
@@ -31,8 +31,14 @@ export const SYNTAXES = {
|
|
|
31
31
|
|
|
32
32
|
export const THEMES = {
|
|
33
33
|
inglorious: { title: "Inglorious", description: "Neon, videogame-inspired" },
|
|
34
|
-
material: { title: "Material", description: "Material
|
|
34
|
+
"material-ui": { title: "Material UI", description: "Material UI inspired" },
|
|
35
|
+
"material-3": {
|
|
36
|
+
title: "Material 3",
|
|
37
|
+
description: "Material Design 3 inspired",
|
|
38
|
+
},
|
|
35
39
|
bootstrap: { title: "Bootstrap", description: "Bootstrap inspired" },
|
|
40
|
+
"ios-18": { title: "iOS 18", description: "Flat iOS inspired" },
|
|
41
|
+
"ios-26": { title: "iOS 26", description: "Liquid Glass inspired" },
|
|
36
42
|
}
|
|
37
43
|
|
|
38
44
|
// Icon sets from Iconify: one module per icon, so only the icons an app
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/create-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.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.
|