igniteui-cli 14.3.6 → 14.3.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-cli",
3
- "version": "14.3.6",
3
+ "version": "14.3.8",
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.0.1436",
74
- "@igniteui/cli-core": "~14.3.6",
73
+ "@igniteui/angular-templates": "~19.0.1438",
74
+ "@igniteui/cli-core": "~14.3.8",
75
75
  "@inquirer/prompts": "^5.4.0",
76
76
  "@types/yargs": "^17.0.33",
77
77
  "chalk": "^5.3.0",
@@ -13,6 +13,7 @@ jobs:
13
13
  permissions:
14
14
  pages: write
15
15
  id-token: write
16
+ actions: read
16
17
 
17
18
  environment:
18
19
  name: github-pages
@@ -40,8 +41,8 @@ jobs:
40
41
  - name: SPA routing handling
41
42
  run: cp ./dist/index.html ./dist/404.html
42
43
  - name: Upload build artifact to GitHub Pages
43
- uses: actions/upload-pages-artifact@v1
44
+ uses: actions/upload-pages-artifact@v3
44
45
  with:
45
46
  path: ./dist
46
47
  - name: Deploy to GitHub Pages
47
- uses: actions/deploy-pages@v1
48
+ uses: actions/deploy-pages@v4
@@ -18,10 +18,10 @@
18
18
  "devDependencies": {
19
19
  "@types/react": "^18.2.15",
20
20
  "@types/react-dom": "^18.2.7",
21
- "@typescript-eslint/eslint-plugin": "^6.2.1",
22
- "@typescript-eslint/parser": "^6.2.1",
21
+ "@typescript-eslint/eslint-plugin": "^8.21.0",
22
+ "@typescript-eslint/parser": "^8.21.0",
23
23
  "@vitejs/plugin-react": "^4.0.3",
24
- "eslint": "^8.46.0",
24
+ "eslint": "^8.57.0",
25
25
  "eslint-plugin-react-hooks": "^4.6.0",
26
26
  "eslint-plugin-react-refresh": "^0.4.3",
27
27
  "jsdom": "^22.1.0",
@@ -4,10 +4,8 @@ import {
4
4
  defineComponents,
5
5
  IgcIconComponent,
6
6
  IgcNavbarComponent,
7
- } from 'igniteui-webcomponents';
8
- import {
9
7
  registerIcon,
10
- } from 'igniteui-webcomponents/components/icon/icon.registry';
8
+ } from 'igniteui-webcomponents';
11
9
 
12
10
  defineComponents(
13
11
  IgcIconComponent,
@@ -13,6 +13,7 @@ jobs:
13
13
  permissions:
14
14
  pages: write
15
15
  id-token: write
16
+ actions: read
16
17
 
17
18
  environment:
18
19
  name: github-pages
@@ -33,7 +34,7 @@ jobs:
33
34
  - name: Update Router Navigation
34
35
  run: |
35
36
  find ./src -type f -name "*.ts" -exec sed -i "s|Router.go(\`/|Router.go(\`/${{ github.event.repository.name }}/|g" {} \;
36
- find ./ -type f -name "rollup.config.mjs" -exec sed -i "s|navigateFallback: '/index.html'|navigateFallback: 'index.html'|g" {} \;
37
+ find ./ -type f -name "vite.config.ts" -exec sed -i "s|navigateFallback: '/index.html'|navigateFallback: 'index.html'|g" {} \;
37
38
  - run: npm run build
38
39
  - name: Update base href in index.html
39
40
  run: |
@@ -47,8 +48,8 @@ jobs:
47
48
  - name: SPA routing handling
48
49
  run: cp ./dist/index.html ./dist/404.html
49
50
  - name: Upload build artifact to GitHub Pages
50
- uses: actions/upload-pages-artifact@v1
51
+ uses: actions/upload-pages-artifact@v3
51
52
  with:
52
53
  path: ./dist
53
54
  - name: Deploy to GitHub Pages
54
- uses: actions/deploy-pages@v1
55
+ uses: actions/deploy-pages@v4
@@ -14,42 +14,36 @@
14
14
  },
15
15
  "scripts": {
16
16
  "start": "tsc && concurrently -k -r \"tsc --watch\" \"wds\"",
17
- "build": "rimraf dist && tsc && node --max-old-space-size=4096 node_modules/rollup/dist/bin/rollup -c rollup.config.mjs",
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-path .gitignore",
20
20
  "test": "tsc --project tsconfig.test.json && wtr"
21
21
  },
22
22
  "dependencies": {
23
23
  "@vaadin/router": "^1.7.4",
24
- "lit": "^3.1.2",
25
- "typescript": "~5.5.4",
24
+ "lit": "^3.2.1",
25
+ "typescript": "~5.7.2",
26
26
  "igniteui-webcomponents": "~5.1.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@babel/preset-env": "^7.20.2",
30
- "@open-wc/building-rollup": "^2.2.1",
31
30
  "@open-wc/testing": "^4.0.0",
32
- "@rollup/plugin-babel": "^6.0.3",
33
- "@rollup/plugin-node-resolve": "^15.0.1",
34
- "@typescript-eslint/eslint-plugin": "^7.13.1",
35
- "@typescript-eslint/parser": "^7.13.1",
31
+ "@typescript-eslint/eslint-plugin": "^8.21.0",
32
+ "@typescript-eslint/parser": "^8.21.0",
36
33
  "@web/dev-server": "^0.4.6",
37
- "@web/rollup-plugin-html": "^2.3.0",
38
- "@web/rollup-plugin-import-meta-assets": "^1.0.7",
39
34
  "@web/test-runner": "^0.18.0",
40
35
  "babel-plugin-template-html-minifier": "^4.1.0",
41
- "concurrently": "^8.2.2",
36
+ "concurrently": "^9.1.2",
42
37
  "deepmerge": "^4.2.2",
43
38
  "eslint": "^8.57.0",
44
39
  "eslint-plugin-lit": "^1.8.2",
45
40
  "igniteui-cli": "^13.1.5",
46
- "rimraf": "^5.0.5",
47
- "rollup": "^2.79.0",
48
- "rollup-plugin-copy-assets": "^2.0.3",
49
- "rollup-plugin-terser": "^7.0.2",
50
- "rollup-plugin-workbox": "^8.1.0",
41
+ "rimraf": "^5.0.10",
51
42
  "source-map": "^0.7.4",
52
- "tslib": "^2.6.2",
53
- "@types/mocha": "^10.0.6"
43
+ "tslib": "^2.8.1",
44
+ "@types/mocha": "^10.0.6",
45
+ "vite": "^6.0.10",
46
+ "vite-plugin-pwa": "^0.21.1",
47
+ "vite-plugin-static-copy": "^2.2.0"
54
48
  }
55
49
  }
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es2018",
4
- "module": "esnext",
3
+ "target": "es2021",
4
+ "module": "es2022",
5
5
  "moduleResolution": "node",
6
6
  "noEmitOnError": true,
7
7
  "lib": [
8
- "es2017",
8
+ "es2021",
9
9
  "dom",
10
10
  "dom.iterable"
11
11
  ],
@@ -0,0 +1,48 @@
1
+ import { defineConfig } from 'vite';
2
+ import { VitePWA } from 'vite-plugin-pwa';
3
+ import { viteStaticCopy } from 'vite-plugin-static-copy';
4
+
5
+ export default defineConfig({
6
+ build: {
7
+ rollupOptions: {
8
+ output: {
9
+ entryFileNames: '[hash].js',
10
+ chunkFileNames: '[hash].js',
11
+ assetFileNames: '[hash][extname]',
12
+ },
13
+ onwarn: (warning, warn) => {
14
+ if (warning.code === 'THIS_IS_UNDEFINED') return;
15
+ warn(warning);
16
+ },
17
+ },
18
+ target: 'es2021',
19
+ minify: 'terser',
20
+ emptyOutDir: false,
21
+ },
22
+ plugins: [
23
+ /** Copy static assets */
24
+ viteStaticCopy({
25
+ targets: [
26
+ { src: 'src/assets', dest: 'src' },
27
+ ],
28
+ }),
29
+ /** PWA Plugin for service worker generation */
30
+ VitePWA({
31
+ registerType: 'autoUpdate',
32
+ strategies: 'generateSW',
33
+ workbox: {
34
+ globDirectory: 'dist',
35
+ globPatterns: ['**/*.{html,js,css,webmanifest}'],
36
+ globIgnores: ['polyfills/*.js', 'nomodule-*.js'],
37
+ navigateFallback: '/index.html',
38
+ runtimeCaching: [
39
+ {
40
+ urlPattern: /^polyfills\/.*\.js$/,
41
+ handler: 'CacheFirst',
42
+ },
43
+ ],
44
+ maximumFileSizeToCacheInBytes: 5 * 1024 * 1024
45
+ },
46
+ }),
47
+ ],
48
+ });
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "scripts": {
16
16
  "start": "tsc && concurrently -k -r \"tsc --watch\" \"wds\"",
17
- "build": "rimraf dist && tsc && node --max-old-space-size=4096 node_modules/rollup/dist/bin/rollup -c rollup.config.mjs",
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-path .gitignore",
20
20
  "test": "tsc --project tsconfig.test.json && wtr"
@@ -30,34 +30,28 @@
30
30
  "igniteui-webcomponents-grids": "~5.0.0",
31
31
  "igniteui-webcomponents-inputs": "~5.0.0",
32
32
  "igniteui-webcomponents-layouts": "~5.0.0",
33
- "lit": "^3.1.2",
34
- "typescript": "~5.5.4"
33
+ "lit": "^3.2.1",
34
+ "typescript": "~5.7.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@babel/preset-env": "^7.20.2",
38
- "@open-wc/building-rollup": "^2.2.1",
39
38
  "@open-wc/testing": "^4.0.0",
40
- "@rollup/plugin-babel": "^6.0.3",
41
- "@rollup/plugin-node-resolve": "^15.0.1",
42
- "@typescript-eslint/eslint-plugin": "^7.13.1",
43
- "@typescript-eslint/parser": "^7.13.1",
39
+ "@typescript-eslint/eslint-plugin": "^8.21.0",
40
+ "@typescript-eslint/parser": "^8.21.0",
44
41
  "@web/dev-server": "^0.4.6",
45
- "@web/rollup-plugin-html": "^2.3.0",
46
- "@web/rollup-plugin-import-meta-assets": "^1.0.7",
47
42
  "@web/test-runner": "^0.18.0",
48
43
  "babel-plugin-template-html-minifier": "^4.1.0",
49
- "concurrently": "^8.2.2",
44
+ "concurrently": "^9.1.2",
50
45
  "deepmerge": "^4.2.2",
51
46
  "eslint": "^8.57.0",
52
47
  "eslint-plugin-lit": "^1.8.2",
53
48
  "igniteui-cli": "^14.0.0",
54
- "rimraf": "^5.0.5",
55
- "rollup": "^2.79.0",
56
- "rollup-plugin-copy-assets": "^2.0.3",
57
- "rollup-plugin-terser": "^7.0.2",
58
- "rollup-plugin-workbox": "^8.1.0",
49
+ "rimraf": "^5.0.10",
59
50
  "source-map": "^0.7.4",
60
- "tslib": "^2.6.2",
61
- "@types/mocha": "^10.0.6"
51
+ "tslib": "^2.8.1",
52
+ "@types/mocha": "^10.0.6",
53
+ "vite": "^6.0.10",
54
+ "vite-plugin-pwa": "^0.21.1",
55
+ "vite-plugin-static-copy": "^2.2.0"
62
56
  }
63
57
  }
@@ -1,95 +0,0 @@
1
- import babel from '@rollup/plugin-babel';
2
- import nodeResolve from '@rollup/plugin-node-resolve';
3
- import { rollupPluginHTML as html } from '@web/rollup-plugin-html';
4
- import { importMetaAssets } from '@web/rollup-plugin-import-meta-assets';
5
- import path from 'path';
6
- import copy from 'rollup-plugin-copy-assets';
7
- import { terser } from 'rollup-plugin-terser';
8
- import { generateSW } from 'rollup-plugin-workbox';
9
-
10
- export default {
11
- input: 'index.html',
12
- output: {
13
- entryFileNames: '[hash].js',
14
- chunkFileNames: '[hash].js',
15
- assetFileNames: '[hash][extname]',
16
- format: 'es',
17
- dir: 'dist',
18
- },
19
- onwarn: function(warning) {
20
- // Skip https://rollupjs.org/troubleshooting/#error-this-is-undefined
21
- if ( warning.code === 'THIS_IS_UNDEFINED' ) { return; }
22
- },
23
- preserveEntrySignatures: false,
24
-
25
- plugins: [
26
- copy({
27
- assets: [
28
- 'src/assets',
29
- ],
30
- }),
31
- /** Enable using HTML as rollup entrypoint */
32
- html({
33
- minify: true,
34
- injectServiceWorker: true,
35
- serviceWorkerPath: 'dist/sw.js',
36
- }),
37
- /** Resolve bare module imports */
38
- nodeResolve(),
39
- /** Minify JS */
40
- terser(),
41
- /** Bundle assets references via import.meta.url */
42
- importMetaAssets(),
43
- /** Compile JS to a lower language target */
44
- babel({
45
- compact: true,
46
- babelHelpers: 'bundled',
47
- presets: [
48
- [
49
- '@babel/preset-env',
50
- {
51
- targets: [
52
- 'last 3 Chrome major versions',
53
- 'last 3 Firefox major versions',
54
- 'last 3 Edge major versions',
55
- 'last 3 Safari major versions',
56
- ],
57
- modules: false,
58
- bugfixes: true,
59
- },
60
- ],
61
- ],
62
- plugins: [
63
- [
64
- 'babel-plugin-template-html-minifier',
65
- {
66
- modules: { lit: ['html', { name: 'css', encapsulation: 'style' }] },
67
- failOnError: false,
68
- strictCSS: true,
69
- htmlMinifier: {
70
- collapseWhitespace: true,
71
- conservativeCollapse: true,
72
- removeComments: true,
73
- caseSensitive: true,
74
- minifyCSS: true,
75
- },
76
- },
77
- ],
78
- ],
79
- }),
80
- /** Create and inject a service worker */
81
- generateSW({
82
- globIgnores: ['polyfills/*.js', 'nomodule-*.js'],
83
- navigateFallback: '/index.html',
84
- // where to output the generated sw
85
- swDest: path.join('dist', 'sw.js'),
86
- // directory to match patterns against to be precached
87
- globDirectory: path.join('dist'),
88
- // cache any html js and css by default
89
- globPatterns: ['**/*.{html,js,css,webmanifest}'],
90
- skipWaiting: true,
91
- clientsClaim: true,
92
- runtimeCaching: [{ urlPattern: 'polyfills/*.js', handler: 'CacheFirst' }],
93
- }),
94
- ],
95
- };