Skip to content

Commit 846b719

Browse files
committed
stacked-apex-chart initial version
1 parent f3f2122 commit 846b719

37 files changed

+875
-0
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

.github/workflows/node.js.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
# Using Ignite UI for Angular licensed packages via an access token:
5+
# https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/ignite-ui-licensing#github-actions-configuration
6+
7+
name: Node.js CI
8+
9+
on:
10+
push:
11+
branches: [ main ]
12+
pull_request:
13+
branches: [ main ]
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
strategy:
21+
matrix:
22+
node-version: [22.x]
23+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v2
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
# cache: 'npm' # enable after committing lock file from first install
32+
- run: npm i # replace with 'npm ci' after committing lock file from first install
33+
- run: npm run lint
34+
- run: npm run build
35+
- run: npm run test -- --watch=false --browsers ChromeHeadless

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
40+
# System files
41+
.DS_Store
42+
Thumbs.db

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": ["angular.ng-template"]
4+
}

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
},
12+
{
13+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}

.vscode/tasks.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
3+
"version": "2.0.0",
4+
"tasks": [
5+
{
6+
"type": "npm",
7+
"script": "start",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern": "$tsc",
12+
"background": {
13+
"activeOnStart": true,
14+
"beginsPattern": {
15+
"regexp": "(.*?)"
16+
},
17+
"endsPattern": {
18+
"regexp": "bundle generation complete"
19+
}
20+
}
21+
}
22+
},
23+
{
24+
"type": "npm",
25+
"script": "test",
26+
"isBackground": true,
27+
"problemMatcher": {
28+
"owner": "typescript",
29+
"pattern": "$tsc",
30+
"background": {
31+
"activeOnStart": true,
32+
"beginsPattern": {
33+
"regexp": "(.*?)"
34+
},
35+
"endsPattern": {
36+
"regexp": "bundle generation complete"
37+
}
38+
}
39+
}
40+
}
41+
]
42+
}

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# stacked-apex-chart
2+
3+
This project was generated with [App Builder Code Gen](https://www.appbuilder.dev/platform).
4+
5+
## Development server
6+
7+
Run `npm start` to build the application, start a web server and open the application in the default browser. The application will open in `http://localhost:4200/` by default.
8+
9+
## Build
10+
11+
Run `npm run build` to build the application into an output directory.
12+
13+
## Running unit tests
14+
15+
Run `npm test` to execute the unit tests via [Karma](https://karma-runner.github.io). Runs all `.spec.ts` files under `./src` folder.
16+
17+
## Running code style checks
18+
19+
Run `npm run lint` to execute the code styling rules for the project.
20+
21+
## Licensing
22+
23+
See the [License FAQ and Installation documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/ignite-ui-licensing) for information on how to upgrade to the full licensed package, if the project is using a Trial version of Ignite UI for Angular, and how to setup your environment and CI to use our licensed npm feed.
24+
25+
If you're downloading the project as a .zip file, you still need to follow the steps in the License FAQ to configure access to the licensed feed before installing dependencies.
26+
27+
Alternatively run `npm run infragistics-login` for a guided login to our licensed feed.
28+
29+
## Additional resources
30+
31+
- Ignite UI Angular Schematics were used to generate this project and are available for additional commands within the project. For more details and how to use them, refer to [Angular Schematics & Ignite UI CLI](https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/cli-overview).
32+
33+
- [Ignite UI for Angular](https://www.infragistics.com/products/ignite-ui-angular) - to learn more about the product or to dive into component specifics and showcases.

angular.json

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"stacked-apex-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-devkit/build-angular:application",
19+
"options": {
20+
"outputPath": "dist/stacked-apex-chart",
21+
"index": "src/index.html",
22+
"browser": "src/main.ts",
23+
"polyfills": [
24+
"zone.js"
25+
],
26+
"tsConfig": "tsconfig.app.json",
27+
"inlineStyleLanguage": "scss",
28+
"assets": [
29+
"src/favicon.ico",
30+
"src/assets"
31+
],
32+
"styles": [
33+
"src/styles.scss"
34+
],
35+
"scripts": [
36+
"./node_modules/hammerjs/hammer.min.js"
37+
],
38+
"stylePreprocessorOptions": {
39+
"includePaths": [
40+
"node_modules"
41+
]
42+
}
43+
},
44+
"configurations": {
45+
"production": {
46+
"budgets": [
47+
{
48+
"type": "initial",
49+
"maximumWarning": "5mb",
50+
"maximumError": "10mb"
51+
},
52+
{
53+
"type": "anyComponentStyle",
54+
"maximumWarning": "8kb",
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-devkit/build-angular:dev-server",
70+
"configurations": {
71+
"production": {
72+
"buildTarget": "stacked-apex-chart:build:production"
73+
},
74+
"development": {
75+
"buildTarget": "stacked-apex-chart:build:development"
76+
}
77+
},
78+
"defaultConfiguration": "development"
79+
},
80+
"extract-i18n": {
81+
"builder": "@angular-devkit/build-angular:extract-i18n",
82+
"options": {
83+
"buildTarget": "stacked-apex-chart:build"
84+
}
85+
},
86+
"test": {
87+
"builder": "@angular-devkit/build-angular:karma",
88+
"options": {
89+
"polyfills": [
90+
"zone.js",
91+
"zone.js/testing"
92+
],
93+
"tsConfig": "tsconfig.spec.json",
94+
"inlineStyleLanguage": "scss",
95+
"assets": [
96+
"src/favicon.ico",
97+
"src/assets"
98+
],
99+
"styles": [
100+
"src/styles.scss"
101+
],
102+
"scripts": [],
103+
"stylePreprocessorOptions": {
104+
"includePaths": [
105+
"node_modules"
106+
]
107+
}
108+
}
109+
},
110+
"lint": {
111+
"builder": "@angular-eslint/builder:lint",
112+
"options": {
113+
"eslintConfig": "eslint.config.mjs",
114+
"lintFilePatterns": [
115+
"src/**/*.ts",
116+
"src/**/*.html"
117+
]
118+
}
119+
}
120+
}
121+
}
122+
},
123+
"cli": {
124+
"schematicCollections": [
125+
"@angular-eslint/schematics"
126+
]
127+
}
128+
}

eslint.config.mjs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { FlatCompat } from '@eslint/eslintrc';
2+
3+
const compat = new FlatCompat();
4+
5+
export default [
6+
...compat.extends('plugin:@angular-eslint/recommended', 'plugin:@angular-eslint/template/process-inline-templates'),
7+
{
8+
files: ['**/*.ts', '**/*.tsx'],
9+
languageOptions: {
10+
parserOptions: {
11+
project: ['tsconfig.json'],
12+
createDefaultProgram: true,
13+
},
14+
},
15+
rules: {
16+
'@angular-eslint/directive-selector': [
17+
'error',
18+
{ type: 'attribute', prefix: 'app', style: 'camelCase' },
19+
],
20+
'@angular-eslint/component-selector': [
21+
'error',
22+
{ type: 'element', prefix: 'app', style: 'kebab-case' },
23+
]
24+
},
25+
},
26+
...compat.extends('plugin:@angular-eslint/template/recommended'),
27+
{
28+
files: ['**/*.html'],
29+
rules: {},
30+
},
31+
{
32+
ignores: ['projects/**/*']
33+
},
34+
];

ignite-ui-cli.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "20.0.1455",
3+
"project": {
4+
"defaultPort": 4200,
5+
"framework": "angular",
6+
"projectType": "igx-ts",
7+
"projectTemplate": "base",
8+
"theme": "Default",
9+
"themePath": "node_modules/igniteui-angular/styles/igniteui-angular.css",
10+
"isBundle": false,
11+
"bundleFilePath": "",
12+
"igniteuiSource": "",
13+
"components": [],
14+
"sourceFiles": [],
15+
"isShowcase": false,
16+
"version": ""
17+
},
18+
"build": {}
19+
}

0 commit comments

Comments
 (0)