Skip to content

Commit 9afd90d

Browse files
authored
Merge pull request #134 from IgniteUI/vnext
Push to prod
2 parents a3160da + 0366baa commit 9afd90d

184 files changed

Lines changed: 83290 additions & 206 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

angular.json

Lines changed: 684 additions & 0 deletions
Large diffs are not rendered by default.

azure-pipelines/igniteui-angular-grid-examples.yml

Lines changed: 40 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -43,41 +43,46 @@ stages:
4343
inputs:
4444
targetType: 'inline'
4545
script: |
46-
# Define the root path where projects are located
47-
rootPath="$(Build.SourcesDirectory)/projects"
48-
49-
# Get all first-level subdirectories in the specified root path
50-
subdirectories=$(find "$rootPath" -mindepth 1 -maxdepth 1 -type d)
51-
52-
for subdirectory in $subdirectories; do
53-
# Extract the directory name from the path
54-
dirName=$(basename "$subdirectory")
55-
56-
# Give each sample a version in its package.json file - for traceability
57-
cd "$subdirectory"
58-
echo "Calling npm version command"
59-
npm version $(Build.BuildNumber) --no-git-tag-version
60-
61-
# Check if the directory name is already camel-case
62-
if [[ "$dirName" =~ ^[A-Z]+[a-z]+([A-Z][a-z]*)*$ ]]; then
63-
# If already camel-case, print it as is
64-
echo "$dirName"
65-
else
66-
# Convert to camel-case (capitalize first letters and remove hyphens)
67-
dirName=$(echo "$dirName" | sed -E 's/(^|-)([a-z])/\U\2/g')
68-
69-
fi
70-
71-
echo "Processing directory: $dirName"
72-
73-
# Define the name for the zip file
74-
zipName="$(Build.ArtifactStagingDirectory)/IgniteUI_Angular_ApplicationSample_${dirName}_Source.zip"
75-
echo "Creating ZIP: $zipName"
76-
77-
# Compress the directory into a ZIP file
78-
(cd "$subdirectory" && zip -r "$zipName" .)
79-
done
80-
46+
create_zips() {
47+
local rootPath="$1"
48+
if [ -d "$rootPath" ]; then
49+
# Get all first-level subdirectories in the specified root path
50+
subdirectories=$(find "$rootPath" -mindepth 1 -maxdepth 1 -type d)
51+
for subdirectory in $subdirectories; do
52+
# Extract the directory name from the path
53+
dirName=$(basename "$subdirectory")
54+
55+
# Give each sample a version in its package.json file - for traceability
56+
cd "$subdirectory"
57+
echo "Setting project version in package.json to $(Build.BuildNumber) for $dirName"
58+
npm version $(Build.BuildNumber) --no-git-tag-version
59+
60+
# Check if the directory name is already camel-case
61+
if [[ "$dirName" =~ ^[A-Z]+[a-z]+([A-Z][a-z]*)*$ ]]; then
62+
# If already camel-case, print it as is
63+
echo "$dirName"
64+
else
65+
# Convert to camel-case (capitalize first letters and remove hyphens)
66+
dirName=$(echo "$dirName" | sed -E 's/(^|-)([a-z])/\U\2/g')
67+
fi
68+
69+
echo "Processing directory: $dirName"
70+
# Define the name for the zip file
71+
zipName="$(Build.ArtifactStagingDirectory)/IgniteUI_Angular_ApplicationSample_${dirName}_Source.zip"
72+
echo "Creating ZIP: $zipName"
73+
74+
# Compress the directory into a ZIP file
75+
(cd "$subdirectory" && zip -r "$zipName" .)
76+
done
77+
fi
78+
}
79+
80+
# Pass 1: All first-level directories in projects/
81+
create_zips "$(Build.SourcesDirectory)/projects"
82+
83+
# Pass 2: All first-level directories in projects/charts/
84+
create_zips "$(Build.SourcesDirectory)/projects/charts"
85+
8186
echo "All sample projects have been compressed and saved to the artifacts directory."
8287
8388
- task: PublishPipelineArtifact@1

package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
"start:hr": "ng serve --project=hr-portal -o",
1111
"start:sales": "ng serve --project=sales-grid -o",
1212
"start:fleet": "ng serve --project=fleet-management -o",
13+
"start:column-chart": "ng serve --project=column-chart -o",
14+
"start:bar-chart": "ng serve --project=bar-chart -o",
15+
"start:line-chart": "ng serve --project=line-chart -o",
16+
"start:pie-chart": "ng serve --project=pie-chart -o",
17+
"start:step-chart": "ng serve --project=step-chart -o",
18+
"start:polar-chart": "ng serve --project=polar-chart -o",
1319
"test": "ng test",
1420
"_": "",
1521
"ISS Deploy Scripts": "For use only with deployment on IIS. Make sure `base-href` matches the alias of you app",
@@ -23,6 +29,12 @@
2329
"build:fin": "ng build finance-grid",
2430
"build:hr": "ng build hr-portal",
2531
"build:sales": "ng build sales-grid",
32+
"build:column-chart": "ng build column-chart",
33+
"build:bar-chart": "ng build bar-chart",
34+
"build:line-chart": "ng build line-chart",
35+
"build:pie-chart": "ng build pie-chart",
36+
"build:step-chart": "ng build step-chart",
37+
"build:polar-chart": "ng build polar-chart",
2638
"ssr:erp": "node dist/erp-hgrid/server/server.mjs",
2739
"ssr:fin": "node dist/finance-grid/server/server.mjs",
2840
"ssr:hr": "node dist/hr-portal/server/server.mjs",
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.ts"
10+
],
11+
"parserOptions": {
12+
"project": [
13+
"tsconfig.json"
14+
],
15+
"createDefaultProgram": true
16+
},
17+
"extends": [
18+
"plugin:@angular-eslint/recommended",
19+
"plugin:@angular-eslint/template/process-inline-templates"
20+
],
21+
"rules": {
22+
"@angular-eslint/directive-selector": [
23+
"error",
24+
{
25+
"type": "attribute",
26+
"prefix": "app",
27+
"style": "camelCase"
28+
}
29+
],
30+
"@angular-eslint/component-selector": [
31+
"error",
32+
{
33+
"type": "element",
34+
"prefix": "app",
35+
"style": "kebab-case"
36+
}
37+
]
38+
}
39+
},
40+
{
41+
"files": [
42+
"*.html"
43+
],
44+
"extends": [
45+
"plugin:@angular-eslint/template/recommended"
46+
],
47+
"rules": {}
48+
}
49+
]
50+
}

projects/charts/bar-chart/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# bar-chart
2+
3+
This project was generated with [Ignite UI CLI](https://github.com/IgniteUI/igniteui-cli) version 14.2.3.
4+
5+
## Development server
6+
7+
Run `ig start` to build the application, start a web server and open the application in the default browser. Then navigate to `http://localhost:4200/`. Default serving port can be configured in `ignite-ui-cli.json` via `defaultPort` property.
8+
9+
## Build
10+
11+
Run `ig build` to build the application into an output directory.
12+
13+
## Step by step mode
14+
15+
If you want to get a guided experience through the available options, you can initialize the step by step mode that will help you to create and setup your new application, as well as update project previously created with the Ignite UI CLI. To start the guide, simply run the `ig` command.
16+
17+
## List templates
18+
19+
The `ig list` lists all available templates. When you run the command within a project folder it will list all available templates, even if you have provided different ones.
20+
21+
## Adding components
22+
23+
Add a new component or template to the project passing component ID and choosing a name.
24+
25+
`ig add <component/template> <component_name>`
26+
27+
The ID matches either a component ("grid", "combo", etc) or a predefined template. Predefined templates can provide either multiple components or fulfilling a specific use case like "form-validation", "master-detail" and so on.
28+
29+
## Running unit tests
30+
31+
Run `ig test` to execute the unit tests via [Karma](https://karma-runner.github.io). Runs all `.spec.ts` files under `./src` folder.
32+
33+
## Running end-to-end tests
34+
35+
Run `ig test --e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
36+
37+
## Help
38+
39+
`ig help` lists the available commands and provides a brief description of what they do.
40+
41+
### Further help
42+
43+
To get more help on the IgniteUI CLI go check out the [IgniteUI CLI Wiki](https://github.com/IgniteUI/igniteui-cli/wiki).
44+
45+
## Angular CLI compatibility
46+
You can run all of the supported Angular CLI commands. More details at [Angular CLI](https://github.com/angular/angular-cli).
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"bar-chart": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
}
12+
},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular/build:application",
19+
"options": {
20+
"outputPath": "dist/bar-chart-app",
21+
"index": "src/index.html",
22+
"browser": "src/main.ts",
23+
"polyfills": ["zone.js"],
24+
"tsConfig": "tsconfig.app.json",
25+
"inlineStyleLanguage": "scss",
26+
"assets": [
27+
{
28+
"glob": "**/*",
29+
"input": "public"
30+
}
31+
],
32+
"styles": ["src/styles.scss"],
33+
"scripts": ["./node_modules/hammerjs/hammer.min.js"],
34+
"stylePreprocessorOptions": {
35+
"includePaths": ["node_modules"]
36+
},
37+
"server": "src/main.server.ts",
38+
"prerender": true,
39+
"ssr": {
40+
"entry": "src/server.ts"
41+
},
42+
"outputMode": "static"
43+
},
44+
"configurations": {
45+
"production": {
46+
"budgets": [
47+
{
48+
"type": "initial",
49+
"maximumWarning": "5mb",
50+
"maximumError": "10mb"
51+
},
52+
{
53+
"type": "anyComponentStyle",
54+
"maximumWarning": "6kb",
55+
"maximumError": "2mb"
56+
}
57+
],
58+
"outputHashing": "all"
59+
},
60+
"development": {
61+
"optimization": false,
62+
"extractLicenses": false,
63+
"sourceMap": true
64+
}
65+
},
66+
"defaultConfiguration": "production"
67+
},
68+
"serve": {
69+
"builder": "@angular/build:dev-server",
70+
"configurations": {
71+
"production": {
72+
"buildTarget": "bar-chart:build:production"
73+
},
74+
"development": {
75+
"buildTarget": "bar-chart:build:development"
76+
}
77+
},
78+
"defaultConfiguration": "development"
79+
},
80+
"extract-i18n": {
81+
"builder": "@angular/build:extract-i18n",
82+
"options": {
83+
"buildTarget": "bar-chart:build"
84+
}
85+
},
86+
"test": {
87+
"builder": "@angular/build:karma",
88+
"options": {
89+
"polyfills": ["zone.js", "zone.js/testing"],
90+
"tsConfig": "tsconfig.spec.json",
91+
"inlineStyleLanguage": "scss",
92+
"assets": [
93+
{
94+
"glob": "**/*",
95+
"input": "public"
96+
}
97+
],
98+
"styles": ["src/styles.scss"],
99+
"scripts": [],
100+
"stylePreprocessorOptions": {
101+
"includePaths": ["node_modules"]
102+
}
103+
}
104+
},
105+
"lint": {
106+
"builder": "@angular-eslint/builder:lint",
107+
"options": {
108+
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
109+
}
110+
}
111+
}
112+
}
113+
},
114+
"cli": {
115+
"schematicCollections": ["@angular-eslint/schematics"],
116+
"analytics": false
117+
},
118+
"schematics": {
119+
"@schematics/angular:component": {
120+
"type": "component"
121+
},
122+
"@schematics/angular:directive": {
123+
"type": "directive"
124+
},
125+
"@schematics/angular:service": {
126+
"type": "service"
127+
},
128+
"@schematics/angular:guard": {
129+
"typeSeparator": "."
130+
},
131+
"@schematics/angular:interceptor": {
132+
"typeSeparator": "."
133+
},
134+
"@schematics/angular:module": {
135+
"typeSeparator": "."
136+
},
137+
"@schematics/angular:pipe": {
138+
"typeSeparator": "."
139+
},
140+
"@schematics/angular:resolver": {
141+
"typeSeparator": "."
142+
}
143+
}
144+
}

0 commit comments

Comments
 (0)