igniteui-cli 13.1.10 → 13.1.11
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 +3 -3
- package/templates/react/igr-ts/projects/_base/files/__dot__editorconfig +16 -0
- package/templates/react/igr-ts/projects/_base/files/ignite-ui-cli.json +14 -14
- package/templates/react/igr-ts/projects/_base/files/package.json +1 -1
- package/templates/react/igr-ts/projects/_base/files/src/app/app.test.tsx +2 -2
- package/templates/react/igr-ts/projects/_base/files/src/app/app.tsx +7 -7
- package/templates/react/igr-ts/projects/_base/files/src/app/style-utils.ts +6 -6
- package/templates/react/igr-ts/projects/_base/files/src/main.tsx +8 -8
- package/templates/react/igr-ts/projects/_base/files/src/vite-env.d.ts +1 -0
- package/templates/react/igr-ts/projects/_base/files/tsconfig.json +1 -1
- package/templates/react/igr-ts/projects/_base/files/vite.config.ts +17 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.11",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"all": true
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@igniteui/angular-templates": "~17.1.
|
|
76
|
-
"@igniteui/cli-core": "~13.1.
|
|
75
|
+
"@igniteui/angular-templates": "~17.1.13111",
|
|
76
|
+
"@igniteui/cli-core": "~13.1.11",
|
|
77
77
|
"chalk": "^2.3.2",
|
|
78
78
|
"fs-extra": "^3.0.1",
|
|
79
79
|
"glob": "^7.1.2",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Editor configuration, see https://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 2
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
[*.ts]
|
|
12
|
+
quote_type = single
|
|
13
|
+
|
|
14
|
+
[*.md]
|
|
15
|
+
max_line_length = off
|
|
16
|
+
trim_trailing_whitespace = false
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
"version": "$(cliVersion)",
|
|
3
|
+
"project": {
|
|
4
|
+
"defaultPort": 3003,
|
|
5
|
+
"framework": "react",
|
|
6
|
+
"projectType": "igr-ts",
|
|
7
|
+
"projectTemplate": "$(projectTemplate)",
|
|
8
|
+
"theme": "$(theme)",
|
|
9
|
+
"isBundle": false,
|
|
10
|
+
"components": [],
|
|
11
|
+
"sourceFiles": [],
|
|
12
|
+
"isShowcase": false,
|
|
13
|
+
"version": ""
|
|
14
|
+
},
|
|
15
|
+
"build": {}
|
|
16
16
|
}
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/react": "^18.2.15",
|
|
22
22
|
"@types/react-dom": "^18.2.7",
|
|
23
|
-
"@vitejs/plugin-react": "^4.0.3",
|
|
24
23
|
"@typescript-eslint/eslint-plugin": "^6.2.1",
|
|
25
24
|
"@typescript-eslint/parser": "^6.2.1",
|
|
25
|
+
"@vitejs/plugin-react": "^4.0.3",
|
|
26
26
|
"eslint": "^8.46.0",
|
|
27
27
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
28
28
|
"eslint-plugin-react-refresh": "^0.4.3",
|
|
@@ -2,11 +2,11 @@ import { Outlet } from "react-router-dom";
|
|
|
2
2
|
|
|
3
3
|
export default function App() {
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
return (
|
|
6
|
+
<div className="app">
|
|
7
|
+
<div className="content">
|
|
8
|
+
<Outlet />
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
)
|
|
12
12
|
}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* @param styles Object map of classes and their scoped name, normally from a CSS Module import
|
|
4
4
|
*/
|
|
5
5
|
export default function createClassTransformer(styles: any) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
return (classes: string) => {
|
|
7
|
+
return classes
|
|
8
|
+
.split(' ')
|
|
9
|
+
.map(className => styles[className] || className)
|
|
10
|
+
.join(' ');
|
|
11
|
+
}
|
|
12
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ReactDOM from 'react-dom/client';
|
|
3
3
|
import { createBrowserRouter, RouterProvider } from "react-router-dom";
|
|
4
|
-
import { routes } from "./app/app-routes";
|
|
5
4
|
import App from './app/app';
|
|
5
|
+
import { routes } from "./app/app-routes";
|
|
6
6
|
import 'react-app-polyfill/ie11';
|
|
7
7
|
|
|
8
8
|
/** Required in IE11 for Charts */
|
|
@@ -11,14 +11,14 @@ Number.isNaN = Number.isNaN || function(value) {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
const router = createBrowserRouter([
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
{
|
|
15
|
+
element: <App />,
|
|
16
|
+
children: [...routes]
|
|
17
|
+
}
|
|
18
18
|
]);
|
|
19
19
|
|
|
20
20
|
ReactDOM.createRoot(document.getElementById('root')).render(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
<React.StrictMode>
|
|
22
|
+
<RouterProvider router={router} />
|
|
23
|
+
</React.StrictMode>
|
|
24
24
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -4,21 +4,21 @@ import react from '@vitejs/plugin-react'
|
|
|
4
4
|
|
|
5
5
|
// https://vitejs.dev/config/
|
|
6
6
|
export default defineConfig({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
7
|
+
define: process.env.VITEST ? {} : { global: 'window' },
|
|
8
|
+
plugins: [react()],
|
|
9
|
+
test: {
|
|
10
|
+
globals: true,
|
|
11
|
+
environment: 'jsdom',
|
|
12
|
+
setupFiles: ['./src/setupTests.ts'],
|
|
13
|
+
deps: {
|
|
14
|
+
inline: ['vitest-canvas-mock'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
resolve: {
|
|
18
|
+
mainFields: ['module'],
|
|
19
|
+
},
|
|
20
|
+
server: {
|
|
21
|
+
open: true,
|
|
22
|
+
port: 3003
|
|
23
|
+
}
|
|
24
24
|
})
|