Skip to content

Commit 95cbaf7

Browse files
Stage v6.0.0 (#38)
* Package update & solve errors , fix design issue after update * Remove bootstrap extra class and add ngb class * bug fixes * free version angular testing done * one pending changes done --------- Co-authored-by: ct-nensy <nensy.savsaviya@codedthemes.com>
1 parent 9339750 commit 95cbaf7

35 files changed

Lines changed: 12204 additions & 6074 deletions

angular/angular.json

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,45 @@
1515
"prefix": "app",
1616
"architect": {
1717
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
18+
"builder": "@angular/build:application",
1919
"options": {
20-
"allowedCommonJsDependencies": ["bezier-easing", "mousetrap", "apexcharts"],
21-
"outputPath": "dist",
20+
"allowedCommonJsDependencies": [
21+
"bezier-easing",
22+
"mousetrap",
23+
"apexcharts",
24+
"hammerjs"
25+
],
26+
"outputPath": {
27+
"base": "dist",
28+
"browser": ""
29+
},
2230
"index": "src/index.html",
23-
"main": "src/main.ts",
31+
"browser": "src/main.ts",
2432
"polyfills": [
2533
"@angular/localize/init"
2634
],
2735
"tsConfig": "tsconfig.app.json",
2836
"inlineStyleLanguage": "scss",
29-
"assets": ["src/favicon.ico", "src/assets"],
30-
"styles": ["src/styles.scss"],
31-
"scripts": ["node_modules/apexcharts/dist/apexcharts.min.js"]
37+
"stylePreprocessorOptions": {
38+
"sass": {
39+
"silenceDeprecations": [
40+
"import",
41+
"global-builtin",
42+
"color-functions",
43+
"if-function"
44+
]
45+
}
46+
},
47+
"assets": [
48+
"src/favicon.ico",
49+
"src/assets"
50+
],
51+
"styles": [
52+
"src/styles.scss"
53+
],
54+
"scripts": [
55+
"node_modules/apexcharts/dist/apexcharts.min.js"
56+
]
3257
},
3358
"configurations": {
3459
"production": {
@@ -53,9 +78,7 @@
5378
"outputHashing": "all"
5479
},
5580
"development": {
56-
"buildOptimizer": false,
5781
"optimization": false,
58-
"vendorChunk": true,
5982
"extractLicenses": false,
6083
"sourceMap": true,
6184
"namedChunks": true
@@ -64,7 +87,7 @@
6487
"defaultConfiguration": "production"
6588
},
6689
"serve": {
67-
"builder": "@angular-devkit/build-angular:dev-server",
90+
"builder": "@angular/build:dev-server",
6891
"configurations": {
6992
"production": {
7093
"buildTarget": "gradient-able-free-angular-admin-template:build:production"
@@ -76,22 +99,27 @@
7699
"defaultConfiguration": "development"
77100
},
78101
"extract-i18n": {
79-
"builder": "@angular-devkit/build-angular:extract-i18n",
102+
"builder": "@angular/build:extract-i18n",
80103
"options": {
81104
"buildTarget": "gradient-able-free-angular-admin-template:build"
82105
}
83106
},
84107
"lint": {
85108
"builder": "@angular-eslint/builder:lint",
86109
"options": {
87-
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
110+
"lintFilePatterns": [
111+
"src/**/*.ts",
112+
"src/**/*.html"
113+
]
88114
}
89115
}
90116
}
91117
}
92118
},
93119
"cli": {
94120
"analytics": "add15f09-9029-4c0f-82d1-1471de99ba6f",
95-
"schematicCollections": ["@angular-eslint/schematics"]
121+
"schematicCollections": [
122+
"@angular-eslint/schematics"
123+
]
96124
}
97-
}
125+
}

angular/eslint.config.mjs

Lines changed: 39 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,41 @@
1-
import path from "node:path";
2-
import { fileURLToPath } from "node:url";
3-
import js from "@eslint/js";
4-
import { FlatCompat } from "@eslint/eslintrc";
1+
import eslint from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import angular from 'angular-eslint';
54

6-
const __filename = fileURLToPath(import.meta.url);
7-
const __dirname = path.dirname(__filename);
8-
const compat = new FlatCompat({
9-
baseDirectory: __dirname,
10-
recommendedConfig: js.configs.recommended,
11-
allConfig: js.configs.all
12-
});
13-
14-
export default [{
15-
ignores: ["projects/**/*"],
16-
}, ...compat.extends(
17-
"eslint:recommended",
18-
"plugin:@typescript-eslint/recommended",
19-
"plugin:@angular-eslint/recommended",
20-
"plugin:@angular-eslint/template/process-inline-templates",
21-
).map(config => ({
22-
...config,
23-
files: ["**/*.ts"],
24-
})), {
25-
files: ["**/*.ts"],
26-
27-
rules: {
28-
"@angular-eslint/directive-selector": ["error", {
29-
type: "attribute",
30-
prefix: "app",
31-
style: "camelCase",
32-
}],
33-
34-
"@angular-eslint/component-selector": ["error", {
35-
type: "element",
36-
prefix: "app",
37-
style: "kebab-case",
38-
}],
5+
export default tseslint.config(
6+
{
7+
files: ['**/*.ts'],
8+
extends: [
9+
eslint.configs.recommended,
10+
...tseslint.configs.recommended,
11+
...angular.configs.tsRecommended,
12+
],
13+
processor: angular.processInlineTemplates,
14+
rules: {
15+
'@angular-eslint/directive-selector': [
16+
'error',
17+
{
18+
type: 'attribute',
19+
prefix: 'app',
20+
style: 'camelCase',
21+
},
22+
],
23+
'@angular-eslint/component-selector': [
24+
'error',
25+
{
26+
type: 'element',
27+
prefix: 'app',
28+
style: 'kebab-case',
29+
},
30+
],
31+
'@angular-eslint/prefer-standalone': 'off',
32+
},
3933
},
40-
}, ...compat.extends("plugin:@angular-eslint/template/recommended").map(config => ({
41-
...config,
42-
files: ["**/*.html"],
43-
})), {
44-
files: ["**/*.html"],
45-
rules: {},
46-
}];
34+
{
35+
files: ['**/*.html'],
36+
extends: [
37+
...angular.configs.templateRecommended,
38+
],
39+
rules: {},
40+
}
41+
);

0 commit comments

Comments
 (0)