@inglorious/create-app 1.5.0 → 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.
Files changed (66) hide show
  1. package/package.json +1 -1
  2. package/templates/js/README.md +1 -1
  3. package/templates/js-jsx/README.md +2 -2
  4. package/templates/js-jsx/package.json +1 -1
  5. package/templates/js-vue/README.md +2 -2
  6. package/templates/js-vue/package.json +1 -1
  7. package/templates/ssx-js-jsx/.prettierrc.yml +1 -0
  8. package/templates/ssx-js-jsx/LICENSE +9 -0
  9. package/templates/ssx-js-jsx/eslint.config.js +13 -0
  10. package/templates/ssx-js-jsx/gitignore +3 -0
  11. package/templates/ssx-js-jsx/package.json +39 -0
  12. package/templates/ssx-js-jsx/public/logo.png +0 -0
  13. package/templates/ssx-js-jsx/public/style.css +7 -0
  14. package/templates/ssx-js-jsx/src/pages/about.jsx +24 -0
  15. package/templates/ssx-js-jsx/src/pages/index.jsx +19 -0
  16. package/templates/ssx-js-jsx/src/site.config.js +18 -0
  17. package/templates/ssx-js-jsx/src/store/entities.js +6 -0
  18. package/templates/ssx-js-vue/.prettierrc.yml +1 -0
  19. package/templates/ssx-js-vue/LICENSE +9 -0
  20. package/templates/ssx-js-vue/eslint.config.js +1 -0
  21. package/templates/ssx-js-vue/gitignore +3 -0
  22. package/templates/ssx-js-vue/package.json +38 -0
  23. package/templates/ssx-js-vue/public/logo.png +0 -0
  24. package/templates/ssx-js-vue/public/style.css +7 -0
  25. package/templates/ssx-js-vue/src/pages/about.js +6 -0
  26. package/templates/ssx-js-vue/src/pages/about.vue +13 -0
  27. package/templates/ssx-js-vue/src/pages/index.js +6 -0
  28. package/templates/ssx-js-vue/src/pages/index.vue +9 -0
  29. package/templates/ssx-js-vue/src/site.config.js +18 -0
  30. package/templates/ssx-js-vue/src/store/entities.js +6 -0
  31. package/templates/ssx-ts/eslint.config.js +17 -1
  32. package/templates/ssx-ts/package.json +4 -1
  33. package/templates/ssx-ts/tsconfig.json +1 -1
  34. package/templates/ssx-ts-jsx/.prettierrc.yml +1 -0
  35. package/templates/ssx-ts-jsx/LICENSE +9 -0
  36. package/templates/ssx-ts-jsx/eslint.config.js +17 -0
  37. package/templates/ssx-ts-jsx/gitignore +3 -0
  38. package/templates/ssx-ts-jsx/package.json +43 -0
  39. package/templates/ssx-ts-jsx/public/logo.png +0 -0
  40. package/templates/ssx-ts-jsx/public/style.css +7 -0
  41. package/templates/ssx-ts-jsx/src/pages/about.tsx +26 -0
  42. package/templates/ssx-ts-jsx/src/pages/index.tsx +19 -0
  43. package/templates/ssx-ts-jsx/src/site.config.ts +20 -0
  44. package/templates/ssx-ts-jsx/src/store/entities.ts +8 -0
  45. package/templates/ssx-ts-jsx/tsconfig.json +26 -0
  46. package/templates/ssx-ts-jsx/types/index.d.ts +31 -0
  47. package/templates/ssx-ts-vue/.prettierrc.yml +1 -0
  48. package/templates/ssx-ts-vue/LICENSE +9 -0
  49. package/templates/ssx-ts-vue/eslint.config.js +17 -0
  50. package/templates/ssx-ts-vue/gitignore +3 -0
  51. package/templates/ssx-ts-vue/package.json +42 -0
  52. package/templates/ssx-ts-vue/public/logo.png +0 -0
  53. package/templates/ssx-ts-vue/public/style.css +7 -0
  54. package/templates/ssx-ts-vue/src/pages/about.ts +7 -0
  55. package/templates/ssx-ts-vue/src/pages/about.vue +13 -0
  56. package/templates/ssx-ts-vue/src/pages/index.ts +7 -0
  57. package/templates/ssx-ts-vue/src/pages/index.vue +9 -0
  58. package/templates/ssx-ts-vue/src/site.config.ts +20 -0
  59. package/templates/ssx-ts-vue/src/store/entities.ts +8 -0
  60. package/templates/ssx-ts-vue/tsconfig.json +23 -0
  61. package/templates/ssx-ts-vue/types/index.d.ts +23 -0
  62. package/templates/ts/README.md +3 -2
  63. package/templates/ts-jsx/README.md +4 -3
  64. package/templates/ts-jsx/package.json +1 -1
  65. package/templates/ts-vue/README.md +5 -3
  66. package/templates/ts-vue/package.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inglorious/create-app",
3
- "version": "1.5.0",
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",
@@ -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 plain JavaScript and Vite.
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 the JSX syntax.
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,5 +1,5 @@
1
1
  {
2
- "name": "js-template",
2
+ "name": "js-jsx-template",
3
3
  "version": "0.1.0",
4
4
  "type": "module",
5
5
  "private": true,
@@ -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 plain JavaScript and Vite.
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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "js-template",
2
+ "name": "js-vue-template",
3
3
  "version": "0.1.0",
4
4
  "type": "module",
5
5
  "private": true,
@@ -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,13 @@
1
+ import reactConfig from "@inglorious/eslint-config/react"
2
+ import { defineConfig } from "eslint/config"
3
+
4
+ export default defineConfig([
5
+ ...reactConfig,
6
+
7
+ {
8
+ files: ["**/*.{jsx,tsx}"],
9
+ rules: {
10
+ "react/jsx-no-undef": "off",
11
+ },
12
+ },
13
+ ])
@@ -0,0 +1,3 @@
1
+ node_modules
2
+ dist
3
+ .DS_Store
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ body {
6
+ margin: 0;
7
+ }
@@ -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,6 @@
1
+ export const entities = {
2
+ about: {
3
+ type: "About",
4
+ name: "Us",
5
+ },
6
+ }
@@ -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,3 @@
1
+ node_modules
2
+ dist
3
+ .DS_Store
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ body {
6
+ margin: 0;
7
+ }
@@ -0,0 +1,6 @@
1
+ // SSX routes this module; the page's template is in its .vue file.
2
+ export { About } from "./about.vue"
3
+
4
+ export const metadata = {
5
+ title: "About",
6
+ }
@@ -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,6 @@
1
+ // SSX routes this module; the page's template is in its .vue file.
2
+ export { Index } from "./index.vue"
3
+
4
+ export const metadata = {
5
+ title: "Home",
6
+ }
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <div>
3
+ <h1>Welcome to SSX!</h1>
4
+ <p>Edit <code>src/pages/index.vue</code> to get started.</p>
5
+ <nav>
6
+ <a href="/about">About</a>
7
+ </nav>
8
+ </div>
9
+ </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
+ }
@@ -0,0 +1,6 @@
1
+ export const entities = {
2
+ about: {
3
+ type: "About",
4
+ name: "Us",
5
+ },
6
+ }
@@ -1 +1,17 @@
1
- export { default } from "@inglorious/eslint-config/browser"
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": "^7.0.2"
35
+ "typescript": "npm:@typescript/typescript6@^6.0.2"
33
36
  },
34
37
  "packageManager": "pnpm@10.15.0",
35
38
  "engines": {
@@ -19,5 +19,5 @@
19
19
  "noUnusedParameters": true,
20
20
  "noFallthroughCasesInSwitch": true
21
21
  },
22
- "include": ["src"]
22
+ "include": ["src", "types"]
23
23
  }
@@ -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,3 @@
1
+ node_modules
2
+ dist
3
+ .DS_Store
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ body {
6
+ margin: 0;
7
+ }
@@ -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,8 @@
1
+ import { AppState } from "../../types"
2
+
3
+ export const entities: AppState = {
4
+ about: {
5
+ type: "About",
6
+ name: "Us",
7
+ },
8
+ }
@@ -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,3 @@
1
+ node_modules
2
+ dist
3
+ .DS_Store
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ body {
6
+ margin: 0;
7
+ }
@@ -0,0 +1,7 @@
1
+ // SSX routes this module; the page's template is in its .vue file.
2
+ // @ts-expect-error - Handled by @inglorious/vite-plugin-vue
3
+ export { About } from "./about.vue"
4
+
5
+ export const metadata = {
6
+ title: "About",
7
+ }
@@ -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,7 @@
1
+ // SSX routes this module; the page's template is in its .vue file.
2
+ // @ts-expect-error - Handled by @inglorious/vite-plugin-vue
3
+ export { Index } from "./index.vue"
4
+
5
+ export const metadata = {
6
+ title: "Home",
7
+ }
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <div>
3
+ <h1>Welcome to SSX!</h1>
4
+ <p>Edit <code>src/pages/index.vue</code> to get started.</p>
5
+ <nav>
6
+ <a href="/about">About</a>
7
+ </nav>
8
+ </div>
9
+ </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,8 @@
1
+ import { AppState } from "../../types"
2
+
3
+ export const entities: AppState = {
4
+ about: {
5
+ type: "About",
6
+ name: "Us",
7
+ },
8
+ }
@@ -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>
@@ -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, 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
- - `vite.config.js`: Vite configuration file.
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
- - `vite.config.js`: Vite configuration file.
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,5 +1,5 @@
1
1
  {
2
- "name": "ts-template",
2
+ "name": "ts-jsx-template",
3
3
  "version": "0.1.0",
4
4
  "type": "module",
5
5
  "private": true,
@@ -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 plain JavaScript and Vite.
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 JavaScript source code.
28
- - `vite.config.js`: Vite configuration file.
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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "js-template",
2
+ "name": "ts-vue-template",
3
3
  "version": "0.1.0",
4
4
  "type": "module",
5
5
  "private": true,