igniteui-cli 14.4.4-beta.2 → 14.4.4
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/webcomponents/igc-ts/accordion/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/avatar/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/badge/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/banner/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/button/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/button-group/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/calendar/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/card/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/checkbox/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/chip/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/circular-progress/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/custom-templates/subscription-form/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/date-picker/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/date-time-input/default/files/src/app/__path__/__filePrefix__.test.ts +2 -2
- package/templates/webcomponents/igc-ts/divider/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/dock-manager/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/dropdown/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/expansion-panel/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/financial-chart/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/form/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/grid/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/grid/grid-editing/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/grid/grid-summaries/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/icon/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/icon-button/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/input/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/linear-gauge/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/linear-progress/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/list/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/navbar/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/projects/_base/files/package.json +4 -5
- package/templates/webcomponents/igc-ts/projects/_base/files/src/app/app.test.ts +1 -1
- package/templates/webcomponents/igc-ts/projects/_base/files/tsconfig.test.json +2 -1
- package/templates/webcomponents/igc-ts/projects/_base/files/vite.config.ts +4 -0
- package/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json +4 -5
- package/templates/webcomponents/igc-ts/projects/_base_with_home/files/src/app/home/home.test.ts +1 -1
- package/templates/webcomponents/igc-ts/radial-gauge/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/radio-group/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/rating/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/ripple/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/slider/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/switch/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/tabs/default/files/src/app/__path__/__filePrefix__.test +1 -1
- package/templates/webcomponents/igc-ts/text-area/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/tree/default/files/src/app/__path__/__filePrefix__.test.ts +1 -1
- package/templates/webcomponents/igc-ts/projects/_base/files/web-test-runner.config.mjs +0 -41
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "14.4.4
|
|
3
|
+
"version": "14.4.4",
|
|
4
4
|
"description": "CLI tool for creating Ignite UI projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"all": true
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@igniteui/angular-templates": "~19.2.1444
|
|
74
|
-
"@igniteui/cli-core": "~14.4.4
|
|
73
|
+
"@igniteui/angular-templates": "~19.2.1444",
|
|
74
|
+
"@igniteui/cli-core": "~14.4.4",
|
|
75
75
|
"@inquirer/prompts": "^5.4.0",
|
|
76
76
|
"@types/yargs": "^17.0.33",
|
|
77
77
|
"chalk": "^5.3.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { expect } from '
|
|
1
|
+
import { describe, it, expect } from 'vitest';
|
|
2
2
|
import $(ClassName) from './$(path).js';
|
|
3
3
|
|
|
4
4
|
describe('gcDateTimeInputComponent', () => {
|
|
@@ -6,4 +6,4 @@ describe('gcDateTimeInputComponent', () => {
|
|
|
6
6
|
const element = document.createElement('app-$(path)');
|
|
7
7
|
expect(element).to.be.instanceOf($(ClassName));
|
|
8
8
|
});
|
|
9
|
-
});
|
|
9
|
+
});
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": "rimraf dist && tsc && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build",
|
|
18
18
|
"start:build": "web-dev-server --root-dir dist --app-index index.html --open",
|
|
19
19
|
"lint": "eslint \"**/*.{js,ts}\" --ignore-pattern .gitignore",
|
|
20
|
-
"test": "tsc --project tsconfig.test.json &&
|
|
20
|
+
"test": "tsc --project tsconfig.test.json && vitest run"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@vaadin/router": "^1.7.4",
|
|
@@ -27,23 +27,22 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/preset-env": "^7.20.2",
|
|
30
|
-
"@open-wc/testing": "^4.0.0",
|
|
31
30
|
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
32
31
|
"@typescript-eslint/parser": "^8.21.0",
|
|
33
32
|
"@web/dev-server": "^0.4.6",
|
|
34
|
-
"@web/test-runner": "^0.18.0",
|
|
35
33
|
"babel-plugin-template-html-minifier": "^4.1.0",
|
|
36
34
|
"concurrently": "^9.1.2",
|
|
37
35
|
"deepmerge": "^4.2.2",
|
|
38
36
|
"eslint": "^9.20.0",
|
|
39
37
|
"eslint-plugin-lit": "^1.8.2",
|
|
40
38
|
"igniteui-cli": "~14.4.1",
|
|
39
|
+
"jsdom": "^26.1.0",
|
|
41
40
|
"rimraf": "^5.0.10",
|
|
42
41
|
"source-map": "^0.7.4",
|
|
43
42
|
"tslib": "^2.8.1",
|
|
44
|
-
"@types/mocha": "^10.0.6",
|
|
45
43
|
"vite": "^6.0.10",
|
|
46
44
|
"vite-plugin-pwa": "^0.21.1",
|
|
47
|
-
"vite-plugin-static-copy": "^2.2.0"
|
|
45
|
+
"vite-plugin-static-copy": "^2.2.0",
|
|
46
|
+
"vitest": "^3.1.3"
|
|
48
47
|
}
|
|
49
48
|
}
|
|
@@ -20,6 +20,10 @@ export default defineConfig({
|
|
|
20
20
|
emptyOutDir: false,
|
|
21
21
|
chunkSizeWarningLimit: 10 * 1024 * 1024 // 10 MB
|
|
22
22
|
},
|
|
23
|
+
test: {
|
|
24
|
+
environment: 'jsdom',
|
|
25
|
+
include: ['test/src/app/**/*.test.js']
|
|
26
|
+
},
|
|
23
27
|
plugins: [
|
|
24
28
|
/** Copy static assets */
|
|
25
29
|
viteStaticCopy({
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build": "rimraf dist && tsc && node --max-old-space-size=4096 node_modules/vite/bin/vite.js build",
|
|
18
18
|
"start:build": "web-dev-server --root-dir dist --app-index index.html --open",
|
|
19
19
|
"lint": "eslint \"**/*.{js,ts}\" --ignore-pattern .gitignore",
|
|
20
|
-
"test": "tsc --project tsconfig.test.json &&
|
|
20
|
+
"test": "tsc --project tsconfig.test.json && vitest run"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@vaadin/router": "^1.7.4",
|
|
@@ -35,23 +35,22 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@babel/preset-env": "^7.20.2",
|
|
38
|
-
"@open-wc/testing": "^4.0.0",
|
|
39
38
|
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
40
39
|
"@typescript-eslint/parser": "^8.21.0",
|
|
41
40
|
"@web/dev-server": "^0.4.6",
|
|
42
|
-
"@web/test-runner": "^0.18.0",
|
|
43
41
|
"babel-plugin-template-html-minifier": "^4.1.0",
|
|
44
42
|
"concurrently": "^9.1.2",
|
|
45
43
|
"deepmerge": "^4.2.2",
|
|
46
44
|
"eslint": "^9.20.0",
|
|
47
45
|
"eslint-plugin-lit": "^1.8.2",
|
|
48
46
|
"igniteui-cli": "^14.0.0",
|
|
47
|
+
"jsdom": "^26.1.0",
|
|
49
48
|
"rimraf": "^5.0.10",
|
|
50
49
|
"source-map": "^0.7.4",
|
|
51
50
|
"tslib": "^2.8.1",
|
|
52
|
-
"@types/mocha": "^10.0.6",
|
|
53
51
|
"vite": "^6.0.10",
|
|
54
52
|
"vite-plugin-pwa": "^0.21.1",
|
|
55
|
-
"vite-plugin-static-copy": "^2.2.0"
|
|
53
|
+
"vite-plugin-static-copy": "^2.2.0",
|
|
54
|
+
"vitest": "^3.1.3"
|
|
56
55
|
}
|
|
57
56
|
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// import { playwrightLauncher } from '@web/test-runner-playwright';
|
|
2
|
-
|
|
3
|
-
const filteredLogs = ['Running in dev mode', 'lit-html is in dev mode'];
|
|
4
|
-
|
|
5
|
-
export default /** @type {import("@web/test-runner").TestRunnerConfig} */ ({
|
|
6
|
-
/** Test files to run */
|
|
7
|
-
files: 'test/src/app/**/*.test.js',
|
|
8
|
-
|
|
9
|
-
/** Resolve bare module imports */
|
|
10
|
-
nodeResolve: {
|
|
11
|
-
exportConditions: ['browser', 'development'],
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
/** Filter out lit dev mode logs */
|
|
15
|
-
filterBrowserLogs(log) {
|
|
16
|
-
for (const arg of log.args) {
|
|
17
|
-
if (typeof arg === 'string' && filteredLogs.some(l => arg.includes(l))) {
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return true;
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
/** Compile JS for older browsers. Requires @web/dev-server-esbuild plugin */
|
|
25
|
-
// esbuildTarget: 'auto',
|
|
26
|
-
|
|
27
|
-
/** Amount of browsers to run concurrently */
|
|
28
|
-
// concurrentBrowsers: 2,
|
|
29
|
-
|
|
30
|
-
/** Amount of test files per browser to test concurrently */
|
|
31
|
-
// concurrency: 1,
|
|
32
|
-
|
|
33
|
-
/** Browsers to run tests on */
|
|
34
|
-
// browsers: [
|
|
35
|
-
// playwrightLauncher({ product: 'chromium' }),
|
|
36
|
-
// playwrightLauncher({ product: 'firefox' }),
|
|
37
|
-
// playwrightLauncher({ product: 'webkit' }),
|
|
38
|
-
// ],
|
|
39
|
-
|
|
40
|
-
// See documentation for all available options
|
|
41
|
-
});
|