igniteui-cli 14.3.7 → 14.3.9
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/navbar/default/files/src/app/__path__/__filePrefix__.ts +1 -3
- package/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/github-pages.yml +1 -1
- package/templates/webcomponents/igc-ts/projects/_base/files/package.json +10 -16
- package/templates/webcomponents/igc-ts/projects/_base/files/tsconfig.json +3 -3
- package/templates/webcomponents/igc-ts/projects/_base/files/vite.config.ts +49 -0
- package/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json +10 -16
- package/templates/webcomponents/igc-ts/projects/_base/files/rollup.config.mjs +0 -95
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-cli",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.9",
|
|
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.
|
|
74
|
-
"@igniteui/cli-core": "~14.3.
|
|
73
|
+
"@igniteui/angular-templates": "~19.0.1439",
|
|
74
|
+
"@igniteui/cli-core": "~14.3.9",
|
|
75
75
|
"@inquirer/prompts": "^5.4.0",
|
|
76
76
|
"@types/yargs": "^17.0.33",
|
|
77
77
|
"chalk": "^5.3.0",
|
package/templates/webcomponents/igc-ts/navbar/default/files/src/app/__path__/__filePrefix__.ts
CHANGED
|
@@ -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
|
|
8
|
+
} from 'igniteui-webcomponents';
|
|
11
9
|
|
|
12
10
|
defineComponents(
|
|
13
11
|
IgcIconComponent,
|
package/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/github-pages.yml
CHANGED
|
@@ -34,7 +34,7 @@ jobs:
|
|
|
34
34
|
- name: Update Router Navigation
|
|
35
35
|
run: |
|
|
36
36
|
find ./src -type f -name "*.ts" -exec sed -i "s|Router.go(\`/|Router.go(\`/${{ github.event.repository.name }}/|g" {} \;
|
|
37
|
-
find ./ -type f -name "
|
|
37
|
+
find ./ -type f -name "vite.config.ts" -exec sed -i "s|navigateFallback: '/index.html'|navigateFallback: 'index.html'|g" {} \;
|
|
38
38
|
- run: npm run build
|
|
39
39
|
- name: Update base href in index.html
|
|
40
40
|
run: |
|
|
@@ -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/
|
|
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
|
|
25
|
-
"typescript": "~5.
|
|
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
31
|
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
35
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": "^
|
|
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.
|
|
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.
|
|
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
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
silent: true,
|
|
29
|
+
}),
|
|
30
|
+
/** PWA Plugin for service worker generation */
|
|
31
|
+
VitePWA({
|
|
32
|
+
registerType: 'autoUpdate',
|
|
33
|
+
strategies: 'generateSW',
|
|
34
|
+
workbox: {
|
|
35
|
+
globDirectory: 'dist',
|
|
36
|
+
globPatterns: ['**/*.{html,js,css,webmanifest}'],
|
|
37
|
+
globIgnores: ['polyfills/*.js', 'nomodule-*.js'],
|
|
38
|
+
navigateFallback: '/index.html',
|
|
39
|
+
runtimeCaching: [
|
|
40
|
+
{
|
|
41
|
+
urlPattern: /^polyfills\/.*\.js$/,
|
|
42
|
+
handler: 'CacheFirst',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024
|
|
46
|
+
},
|
|
47
|
+
}),
|
|
48
|
+
],
|
|
49
|
+
});
|
|
@@ -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/
|
|
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
|
|
34
|
-
"typescript": "~5.
|
|
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
39
|
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
43
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": "^
|
|
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.
|
|
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.
|
|
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
|
-
};
|