@inglorious/create-app 0.1.2 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
4
 
5
- The official scaffolding tool to quickly create a new web app with the [@inglorious/web](https://github.com/IngloriousCoderz/inglorious-engine) framework.
5
+ The official scaffolding tool to quickly create a new web app with the [@inglorious/web](https://www.npmjs.com/package/@inglorious/web) framework.
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
 
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@inglorious/create-app",
3
- "version": "0.1.2",
3
+ "version": "0.2.1",
4
4
  "description": "A scaffolding tool to quickly create a new app with Inglorious Web.",
5
5
  "author": "IceOnFire <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/IngloriousCoderz/inglorious-engine.git",
9
+ "url": "git+https://github.com/IngloriousCoderz/inglorious-forge.git",
10
10
  "directory": "packages/create-app"
11
11
  },
12
12
  "homepage": "https://inglorious-engine.vercel.app/",
13
13
  "bugs": {
14
- "url": "https://github.com/IngloriousCoderz/inglorious-engine/issues"
14
+ "url": "https://github.com/IngloriousCoderz/inglorious-forge/issues"
15
15
  },
16
16
  "keywords": [
17
17
  "cli",
@@ -19,6 +19,7 @@
19
19
  "@inglorious/eslint-config": "workspace:*",
20
20
  "eslint": "^9.39.1",
21
21
  "prettier": "^3.6.2",
22
+ "rollup-plugin-minify-template-literals": "^1.1.7",
22
23
  "vite": "^7.1.6"
23
24
  },
24
25
  "packageManager": "pnpm@10.15.0",
@@ -1,12 +1,11 @@
1
1
  import { createStore } from "@inglorious/web"
2
2
 
3
- import { app } from "../app"
4
3
  import { message } from "../message/message"
5
4
  import { entities } from "./entities"
6
5
  import { middlewares } from "./middlewares"
7
6
 
8
7
  export const store = createStore({
9
- types: { app, message },
8
+ types: { message },
10
9
  entities,
11
10
  middlewares,
12
11
  })
@@ -1,3 +1,19 @@
1
+ import path from "node:path"
2
+ import { fileURLToPath } from "node:url"
3
+
4
+ import { minifyTemplateLiterals } from "rollup-plugin-minify-template-literals"
1
5
  import { defineConfig } from "vite"
2
6
 
3
- export default defineConfig({})
7
+ const __filename = fileURLToPath(import.meta.url)
8
+ const __dirname = path.dirname(__filename)
9
+
10
+ // https://vite.dev/config/
11
+ export default defineConfig({
12
+ plugins: [minifyTemplateLiterals()],
13
+
14
+ resolve: {
15
+ alias: {
16
+ "@": path.resolve(__dirname, "src"),
17
+ },
18
+ },
19
+ })
@@ -1,6 +1,6 @@
1
1
  # my-app
2
2
 
3
- A new app created with [@inglorious/create-app](https://github.com/Antony-Mistretta/inglorious-engine/tree/main/packages/create-app).
3
+ A new app created with [@inglorious/create-app](https://www.npmjs.com/package/@inglorious/create-app).
4
4
 
5
5
  This template is a minimal setup for running the Inglorious Web framework directly in the browser without any build step.
6
6
 
@@ -1,12 +1,11 @@
1
1
  import { createStore } from "@inglorious/web"
2
2
 
3
- import { app } from "../app.js"
4
3
  import { message } from "../message/message.js"
5
4
  import { entities } from "./entities.js"
6
5
  import { middlewares } from "./middlewares.js"
7
6
 
8
7
  export const store = createStore({
9
- types: { app, message },
8
+ types: { message },
10
9
  entities,
11
10
  middlewares,
12
11
  })
@@ -19,6 +19,7 @@
19
19
  "@inglorious/eslint-config": "workspace:*",
20
20
  "eslint": "^9.39.1",
21
21
  "prettier": "^3.6.2",
22
+ "rollup-plugin-minify-template-literals": "^1.1.7",
22
23
  "typescript": "^5.9.2",
23
24
  "vite": "^7.1.6"
24
25
  },
@@ -2,13 +2,12 @@ import type { TypesConfig } from "@inglorious/store"
2
2
  import { createStore } from "@inglorious/web"
3
3
 
4
4
  import type { AppEntity, AppState } from "../../types"
5
- import { app } from "../app"
6
5
  import { message } from "../message/message"
7
6
  import { entities } from "./entities"
8
7
  import { middlewares } from "./middlewares"
9
8
 
10
9
  export const store = createStore<AppEntity, AppState>({
11
- types: { app, message } as unknown as TypesConfig<AppEntity>,
10
+ types: { message } as unknown as TypesConfig<AppEntity>,
12
11
  entities,
13
12
  middlewares,
14
13
  })
@@ -1,8 +1,22 @@
1
+ import path from "node:path"
2
+ import { fileURLToPath } from "node:url"
3
+
4
+ import { minifyTemplateLiterals } from "rollup-plugin-minify-template-literals"
1
5
  import { defineConfig } from "vite"
2
6
 
7
+ const __filename = fileURLToPath(import.meta.url)
8
+ const __dirname = path.dirname(__filename)
9
+
10
+ // https://vite.dev/config/
3
11
  export default defineConfig({
4
12
  // @see https://github.com/vitejs/vite/issues/1973
5
13
  define: { "process.env": {} },
6
14
 
7
- plugins: [],
15
+ plugins: [minifyTemplateLiterals()],
16
+
17
+ resolve: {
18
+ alias: {
19
+ "@": path.resolve(__dirname, "src"),
20
+ },
21
+ },
8
22
  })