igniteui-cli 14.3.14-beta.2 → 14.3.14-beta.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-cli",
3
- "version": "14.3.14-beta.2",
3
+ "version": "14.3.14-beta.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.0.14314-beta.2",
74
- "@igniteui/cli-core": "~14.3.14-beta.2",
73
+ "@igniteui/angular-templates": "~19.0.14314-beta.4",
74
+ "@igniteui/cli-core": "~14.3.14-beta.4",
75
75
  "@inquirer/prompts": "^5.4.0",
76
76
  "@types/yargs": "^17.0.33",
77
77
  "chalk": "^5.3.0",
@@ -0,0 +1,44 @@
1
+ import js from '@eslint/js';
2
+ import tseslint from '@typescript-eslint/eslint-plugin';
3
+ import tsparser from '@typescript-eslint/parser';
4
+ import reactRefresh from 'eslint-plugin-react-refresh';
5
+ import reactHooks from 'eslint-plugin-react-hooks';
6
+
7
+ export default [
8
+ js.configs.recommended,
9
+ tseslint.configs.recommended,
10
+ reactHooks.configs.recommended,
11
+ {
12
+ ignores: ['dist', '.eslintrc.cjs'],
13
+ },
14
+ {
15
+ files: ['**/*.ts', '**/*.tsx'],
16
+ languageOptions: {
17
+ parser: tsparser,
18
+ parserOptions: {
19
+ ecmaVersion: 'latest',
20
+ sourceType: 'module',
21
+ },
22
+ },
23
+ plugins: {
24
+ reactRefresh,
25
+ '@typescript-eslint': tseslint,
26
+ },
27
+ rules: {
28
+ '@typescript-eslint/no-unused-vars': [
29
+ 'error',
30
+ {
31
+ args: 'all',
32
+ argsIgnorePattern: '^_',
33
+ caughtErrors: 'all',
34
+ caughtErrorsIgnorePattern: '^_',
35
+ destructuredArrayIgnorePattern: '^(_|set)',
36
+ varsIgnorePattern: '^_',
37
+ ignoreRestSiblings: true,
38
+ },
39
+ ],
40
+ 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
41
+ '@typescript-eslint/no-explicit-any': 'off',
42
+ },
43
+ },
44
+ ];
@@ -4,6 +4,9 @@ import react from '@vitejs/plugin-react'
4
4
 
5
5
  // https://vitejs.dev/config/
6
6
  export default defineConfig({
7
+ build: {
8
+ chunkSizeWarningLimit: 10 * 1024 * 1024, // 10 MB
9
+ },
7
10
  plugins: [react()],
8
11
  test: {
9
12
  globals: true,
@@ -0,0 +1,30 @@
1
+ import js from '@eslint/js';
2
+ import tseslint from '@typescript-eslint/eslint-plugin';
3
+ import tsparser from '@typescript-eslint/parser';
4
+
5
+ export default [
6
+ js.configs.recommended,
7
+ tseslint.configs.recommended,
8
+ {
9
+ env: {
10
+ browser: true,
11
+ es2021: true,
12
+ jasmine: true,
13
+ },
14
+ files: ['**/*.ts', '**/*.tsx'],
15
+ languageOptions: {
16
+ parser: tsparser,
17
+ parserOptions: {
18
+ ecmaVersion: 12,
19
+ sourceType: 'module',
20
+ },
21
+ },
22
+ plugins: {
23
+ '@typescript-eslint': tseslint,
24
+ },
25
+ rules: {
26
+ '@typescript-eslint/no-inferrable-types': 'off',
27
+ '@typescript-eslint/no-explicit-any': 'off',
28
+ },
29
+ },
30
+ ];
@@ -39,6 +39,7 @@
39
39
  "eslint-plugin-lit": "^1.8.2",
40
40
  "igniteui-cli": "^13.1.5",
41
41
  "rimraf": "^5.0.10",
42
+ "rollup-plugin-terser": "^7.0.2",
42
43
  "source-map": "^0.7.4",
43
44
  "tslib": "^2.8.1",
44
45
  "@types/mocha": "^10.0.6",
@@ -1,6 +1,7 @@
1
1
  import { defineConfig } from 'vite';
2
2
  import { VitePWA } from 'vite-plugin-pwa';
3
3
  import { viteStaticCopy } from 'vite-plugin-static-copy';
4
+ import { terser } from 'rollup-plugin-terser';
4
5
 
5
6
  export default defineConfig({
6
7
  build: {
@@ -18,8 +19,11 @@ export default defineConfig({
18
19
  target: 'es2021',
19
20
  minify: 'terser',
20
21
  emptyOutDir: false,
22
+ chunkSizeWarningLimit: 10 * 1024 * 1024 // 10 MB
21
23
  },
22
24
  plugins: [
25
+ /** Minify JS */
26
+ terser(),
23
27
  /** Copy static assets */
24
28
  viteStaticCopy({
25
29
  targets: [
@@ -1,31 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: { browser: true, es2020: true },
4
- extends: [
5
- 'eslint:recommended',
6
- 'plugin:@typescript-eslint/recommended',
7
- 'plugin:react-hooks/recommended',
8
- ],
9
- ignorePatterns: ['dist', '.eslintrc.cjs'],
10
- parser: '@typescript-eslint/parser',
11
- plugins: ['react-refresh'],
12
- rules: {
13
- '@typescript-eslint/no-unused-vars': [
14
- 'error',
15
- {
16
- args: 'all',
17
- argsIgnorePattern: '^_',
18
- caughtErrors: 'all',
19
- caughtErrorsIgnorePattern: '^_',
20
- destructuredArrayIgnorePattern: '^(_|set)',
21
- varsIgnorePattern: '^_',
22
- ignoreRestSiblings: true
23
- }
24
- ],
25
- 'react-refresh/only-export-components': [
26
- 'warn',
27
- { allowConstantExport: true },
28
- ],
29
- '@typescript-eslint/no-explicit-any': 'off'
30
- },
31
- }
@@ -1,24 +0,0 @@
1
- {
2
- "root": true,
3
- "env": {
4
- "browser": true,
5
- "es2021": true,
6
- "jasmine": true
7
- },
8
- "extends": [
9
- "eslint:recommended",
10
- "plugin:@typescript-eslint/recommended"
11
- ],
12
- "parser": "@typescript-eslint/parser",
13
- "parserOptions": {
14
- "ecmaVersion": 12,
15
- "sourceType": "module"
16
- },
17
- "plugins": [
18
- "@typescript-eslint"
19
- ],
20
- "rules": {
21
- "@typescript-eslint/no-inferrable-types": "off",
22
- "@typescript-eslint/no-explicit-any": "off"
23
- }
24
- }