@inglorious/create-app 0.2.0 → 0.2.2
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/package.json +1 -1
- package/templates/js/eslint.config.js +1 -5
- package/templates/js/package.json +3 -1
- package/templates/js/src/store/index.js +1 -2
- package/templates/js/vite.config.js +10 -2
- package/templates/minimal/src/store/index.js +1 -2
- package/templates/ts/eslint.config.js +1 -5
- package/templates/ts/package.json +3 -1
- package/templates/ts/src/store/index.ts +1 -2
- package/templates/ts/vite.config.js +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/create-app",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
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",
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import nodeConfig from "@inglorious/eslint-config/node"
|
|
3
|
-
import { defineConfig } from "eslint/config"
|
|
4
|
-
|
|
5
|
-
export default defineConfig([...browserConfig, ...nodeConfig])
|
|
1
|
+
export { default } from "@inglorious/eslint-config/browser"
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"format": "prettier --write '**/*.js'",
|
|
11
11
|
"lint": "eslint . --ext js --report-unused-disable-directives --max-warnings 0",
|
|
12
12
|
"dev": "vite",
|
|
13
|
-
"build": "vite build"
|
|
13
|
+
"build": "vite build",
|
|
14
|
+
"preview": "vite preview"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"@inglorious/web": "workspace:*"
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
"@inglorious/eslint-config": "workspace:*",
|
|
20
21
|
"eslint": "^9.39.1",
|
|
21
22
|
"prettier": "^3.6.2",
|
|
23
|
+
"rollup-plugin-minify-template-literals": "^1.1.7",
|
|
22
24
|
"vite": "^7.1.6"
|
|
23
25
|
},
|
|
24
26
|
"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: {
|
|
8
|
+
types: { message },
|
|
10
9
|
entities,
|
|
11
10
|
middlewares,
|
|
12
11
|
})
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import path from "node:path"
|
|
2
|
+
import { fileURLToPath } from "node:url"
|
|
3
|
+
|
|
4
|
+
import { minifyTemplateLiterals } from "rollup-plugin-minify-template-literals"
|
|
2
5
|
import { defineConfig } from "vite"
|
|
3
6
|
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
8
|
+
const __dirname = path.dirname(__filename)
|
|
9
|
+
|
|
4
10
|
// https://vite.dev/config/
|
|
5
11
|
export default defineConfig({
|
|
12
|
+
plugins: [minifyTemplateLiterals()],
|
|
13
|
+
|
|
6
14
|
resolve: {
|
|
7
15
|
alias: {
|
|
8
|
-
"@": resolve(__dirname, "src"),
|
|
16
|
+
"@": path.resolve(__dirname, "src"),
|
|
9
17
|
},
|
|
10
18
|
},
|
|
11
19
|
})
|
|
@@ -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: {
|
|
8
|
+
types: { message },
|
|
10
9
|
entities,
|
|
11
10
|
middlewares,
|
|
12
11
|
})
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import nodeConfig from "@inglorious/eslint-config/node"
|
|
3
|
-
import { defineConfig } from "eslint/config"
|
|
4
|
-
|
|
5
|
-
export default defineConfig([...browserConfig, ...nodeConfig])
|
|
1
|
+
export { default } from "@inglorious/eslint-config/browser"
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"format": "prettier --write '**/*.ts'",
|
|
11
11
|
"lint": "eslint . --ext ts --report-unused-disable-directives --max-warnings 0",
|
|
12
12
|
"dev": "vite",
|
|
13
|
-
"build": "vite build"
|
|
13
|
+
"build": "vite build",
|
|
14
|
+
"preview": "vite preview"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"@inglorious/web": "workspace:*"
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
"@inglorious/eslint-config": "workspace:*",
|
|
20
21
|
"eslint": "^9.39.1",
|
|
21
22
|
"prettier": "^3.6.2",
|
|
23
|
+
"rollup-plugin-minify-template-literals": "^1.1.7",
|
|
22
24
|
"typescript": "^5.9.2",
|
|
23
25
|
"vite": "^7.1.6"
|
|
24
26
|
},
|
|
@@ -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: {
|
|
10
|
+
types: { message } as unknown as TypesConfig<AppEntity>,
|
|
12
11
|
entities,
|
|
13
12
|
middlewares,
|
|
14
13
|
})
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import path from "node:path"
|
|
2
|
+
import { fileURLToPath } from "node:url"
|
|
3
|
+
|
|
4
|
+
import { minifyTemplateLiterals } from "rollup-plugin-minify-template-literals"
|
|
2
5
|
import { defineConfig } from "vite"
|
|
3
6
|
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
8
|
+
const __dirname = path.dirname(__filename)
|
|
9
|
+
|
|
10
|
+
// https://vite.dev/config/
|
|
4
11
|
export default defineConfig({
|
|
5
12
|
// @see https://github.com/vitejs/vite/issues/1973
|
|
6
13
|
define: { "process.env": {} },
|
|
7
14
|
|
|
15
|
+
plugins: [minifyTemplateLiterals()],
|
|
16
|
+
|
|
8
17
|
resolve: {
|
|
9
18
|
alias: {
|
|
10
|
-
"@": resolve(__dirname, "src"),
|
|
19
|
+
"@": path.resolve(__dirname, "src"),
|
|
11
20
|
},
|
|
12
21
|
},
|
|
13
22
|
})
|