Skip to content

Commit da52f00

Browse files
committed
feat(no-ref): ng15 and new ci/cd process
1 parent ac0ed82 commit da52f00

File tree

83 files changed

+18204
-16695
lines changed

Some content is hidden

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

83 files changed

+18204
-16695
lines changed

.editorconfig

Lines changed: 0 additions & 13 deletions
This file was deleted.

.eslintignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Compiled output
2+
/dist
3+
/tmp
4+
/out-tsc
5+
/bazel-out
6+
7+
# Node
8+
/node_modules
9+
10+
# IDEs and editors
11+
.idea/
12+
13+
# Visual Studio Code
14+
.vscode
15+
.history
16+
17+
# Miscellaneous
18+
/.angular
19+
/coverage

.eslintrc.json

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"root": true,
3+
"overrides": [
4+
{
5+
"files": ["*.ts"],
6+
"env": {
7+
"es6": true
8+
},
9+
"parserOptions": {
10+
"project": ["tsconfig.json"],
11+
"createDefaultProgram": true
12+
},
13+
"extends": [
14+
"eslint:recommended",
15+
"plugin:@typescript-eslint/recommended",
16+
"plugin:@angular-eslint/recommended",
17+
"plugin:prettier/recommended"
18+
],
19+
"rules": {
20+
"@angular-eslint/component-selector": [
21+
"error",
22+
{
23+
"prefix": "ngx-loader-indicator",
24+
"style": "kebab-case",
25+
"type": "element"
26+
}
27+
],
28+
"@angular-eslint/directive-selector": [
29+
"error",
30+
{
31+
"prefix": "loader",
32+
"style": "camelCase",
33+
"type": "attribute"
34+
}
35+
],
36+
"@typescript-eslint/array-type": ["error"],
37+
"@typescript-eslint/consistent-type-assertions": [
38+
"error",
39+
{
40+
"assertionStyle": "as"
41+
}
42+
],
43+
"@typescript-eslint/naming-convention": [
44+
"error",
45+
{
46+
"selector": "interface",
47+
"format": ["PascalCase"],
48+
"custom": {
49+
"regex": "^I[A-Z]",
50+
"match": true
51+
}
52+
}
53+
],
54+
"@typescript-eslint/explicit-member-accessibility": ["error"],
55+
"import/no-unresolved": "off",
56+
"import/no-extraneous-dependencies": "off",
57+
"import/prefer-default-export": "off",
58+
"no-underscore-dangle": "off",
59+
"class-methods-use-this": "off",
60+
"lines-between-class-members": "off",
61+
"no-return-assign": "off",
62+
"no-param-reassign": [
63+
"error",
64+
{
65+
"props": false
66+
}
67+
],
68+
"no-plusplus": ["off"],
69+
"@typescript-eslint/no-unused-vars": [
70+
"error",
71+
{
72+
"argsIgnorePattern": "^_"
73+
}
74+
],
75+
"@typescript-eslint/unbound-method": "off",
76+
"import/no-cycle": "off",
77+
"import/extensions": "off"
78+
}
79+
},
80+
{
81+
"files": ["*.html"],
82+
"extends": [
83+
"plugin:@angular-eslint/template/recommended",
84+
"plugin:prettier/recommended"
85+
],
86+
"rules": {
87+
"@typescript-eslint/indent": "off"
88+
}
89+
},
90+
{
91+
"files": ["*.js"],
92+
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
93+
"parserOptions": {
94+
"ecmaVersion": 2020
95+
},
96+
"env": {
97+
"browser": true,
98+
"node": true,
99+
"es6": true
100+
}
101+
},
102+
{
103+
"files": ["*.json"],
104+
"extends": ["plugin:json/recommended", "plugin:prettier/recommended"]
105+
}
106+
]
107+
}

.github/ISSUE_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑
2+
3+
Please help us process issues more efficiently by filing an
4+
issue using one of the following templates:
5+
6+
https://github.com/angular/angular/issues/new/choose
7+
8+
Thank you!
9+
10+
🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑🛑
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
name: "\U0001F41E Bug report"
3+
about: Report a bug in the ngx-loader-indicator package
4+
---
5+
6+
<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅
7+
8+
Oh hi there! 😄
9+
10+
To expedite issue processing please search open and closed issues before submitting a new one.
11+
Existing issues often contain information about workarounds, resolution, or progress updates.
12+
13+
🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->
14+
15+
# 🐞 bug report
16+
17+
### Is this a regression?
18+
19+
<!-- Did this behavior use to work in the previous version? -->
20+
<!-- ✍️--> Yes, the previous version in which this bug was not present was: ....
21+
22+
### Description
23+
24+
<!-- ✍️--> A clear and concise description of the problem...
25+
26+
## 🔬 Minimal Reproduction
27+
28+
<!--
29+
Please create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-ivy-mask
30+
-->
31+
<!-- ✍️--> https://stackblitz.com/...
32+
33+
<!--
34+
If StackBlitz is not suitable for reproduction of your issue, please create a minimal GitHub repository with the reproduction of the issue.
35+
A good way to make a minimal reproduction is to create a new app via `ng new repro-app` and add the minimum possible code to show the problem.
36+
Share the link to the repo below along with step-by-step instructions to reproduce the problem, as well as expected and actual behavior.
37+
38+
Issues that don't have enough info and can't be reproduced will be closed.
39+
40+
You can read more about issue submission guidelines here: https://github.com/JsDaddy/ngx-loader-indicator/blob/master/CONTRIBUTING.md#-submitting-an-issue
41+
-->
42+
43+
## 🔥 Exception or Error
44+
45+
<pre><code>
46+
<!-- If the issue is accompanied by an exception or an error, please share it below: -->
47+
<!-- ✍️-->
48+
49+
</code></pre>
50+
51+
## 🌍 Your Environment
52+
53+
**Angular Version:**
54+
55+
<pre><code>
56+
<!-- run `ng version` and paste output below -->
57+
<!-- ✍️-->
58+
59+
</code></pre>
60+
61+
**Anything else relevant?**
62+
63+
<!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. -->
64+
65+
<!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: "\U0001F680 Feature request"
3+
about: Suggest a feature for ngx-loader-indicator package
4+
---
5+
6+
<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅
7+
8+
Oh hi there! 😄
9+
10+
To expedite issue processing please search open and closed issues before submitting a new one.
11+
Existing issues often contain information about workarounds, resolution, or progress updates.
12+
13+
🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->
14+
15+
# 🚀 feature request
16+
17+
### Description
18+
19+
<!-- ✍️--> A clear and concise description of the problem or missing capability...
20+
21+
### Describe the solution you'd like
22+
23+
<!-- ✍️--> If you have a solution in mind, please describe it.
24+
25+
### Describe alternatives you've considered
26+
27+
<!-- ✍️--> Have you considered any alternative solutions or workarounds?

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## PR Checklist
2+
3+
Please check if your PR fulfills the following requirements:
4+
5+
- [ ] The commit message follows our guidelines: https://github.com/JsDaddy/ngx-loader-indicator/blob/develop/CONTRIBUTING.md#commit
6+
- [ ] Tests for the changes have been added (for bug fixes / features)
7+
- [ ] Docs have been added / updated (for bug fixes / features)
8+
9+
## PR Type
10+
11+
What kind of change does this PR introduce?
12+
13+
<!-- Please check the one that applies to this PR using "x". -->
14+
15+
- [ ] Bugfix
16+
- [ ] Feature
17+
- [ ] Code style update (formatting, local variables)
18+
- [ ] Refactoring (no functional changes, no api changes)
19+
- [ ] Build related changes
20+
- [ ] CI related changes
21+
- [ ] Documentation content changes
22+
- [ ] Other... Please describe:
23+
24+
## What is the current behavior?
25+
26+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
27+
28+
Issue Number: N/A
29+
30+
## What is the new behavior?
31+
32+
## Does this PR introduce a breaking change?
33+
34+
- [ ] Yes
35+
- [ ] No
36+
37+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
38+
39+
## Other information

.github/workflows/gh-pages.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: GitHub pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 18
18+
- name: Build demo
19+
run: |
20+
npm ci
21+
npm run build
22+
- name: Deploy demo
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./dist/angular-loader

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish npm
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 18
16+
registry-url: https://registry.npmjs.org/
17+
- name: Build library
18+
run: |
19+
npm ci
20+
npm run build:lib
21+
- name: Publish library
22+
run: npm run publish:lib
23+
env:
24+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/quality-check.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: build and quality
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
branches:
9+
- develop
10+
11+
jobs:
12+
quality-check:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 18
21+
- name: Check quality
22+
run: |
23+
npm ci
24+
npm run lint
25+
npm test
26+
npm run build
27+
npm run build:lib

0 commit comments

Comments
 (0)