Skip to content

Commit 19e7e95

Browse files
authored
chore(*): Maintanance (#199)
- Update dependencies (not Angular!) - Migrate and cleanup config files - Cleanup README and CHANGELOG - Fix update-package script - Introduce ESLint & Prettier - Migrate from Travis CI to GitHub actions
1 parent fd1311a commit 19e7e95

Some content is hidden

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

64 files changed

+20200
-21833
lines changed

.editorconfig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# Editor configuration, see https://editorconfig.org
21
root = true
32

43
[*]
54
charset = utf-8
6-
indent_style = tab
7-
indent_size = 4
5+
end_of_line = crlf
6+
indent_size = 2
7+
indent_style = space
88
insert_final_newline = true
9+
max_line_length = 140
910
trim_trailing_whitespace = true
1011

1112
[*.md]

.eslintrc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"tsconfigRootDir": ".",
5+
"project": ["./tsconfig.json"]
6+
},
7+
"plugins": ["@typescript-eslint", "prettier", "simple-import-sort"],
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"prettier",
13+
"prettier/@typescript-eslint",
14+
"plugin:prettier/recommended"
15+
],
16+
"rules": {
17+
"@typescript-eslint/no-explicit-any": "off",
18+
"import/order": "off",
19+
"simple-import-sort/exports": "error",
20+
"simple-import-sort/imports": "error",
21+
"sort-imports": "off"
22+
}
23+
}

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
pull_request:
7+
branches: [develop]
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v2
16+
- name: Setup NodeJS
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 14.15.x
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Build library
23+
run: npm run build:library
24+
- name: Build demo
25+
run: npm run build:demo
26+
27+
lint:
28+
name: Lint
29+
needs: build
30+
runs-on: ubuntu-20.04
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v2
34+
- name: Setup NodeJS
35+
uses: actions/setup-node@v2
36+
with:
37+
node-version: 14.15.x
38+
- name: Install dependencies
39+
run: npm ci
40+
- name: Lint library
41+
run: npm run lint:library
42+
43+
test:
44+
name: Test
45+
needs: build
46+
runs-on: ubuntu-20.04
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v2
50+
- name: Setup NodeJS
51+
uses: actions/setup-node@v2
52+
with:
53+
node-version: 14.15.x
54+
- name: Install dependencies
55+
run: npm ci
56+
- name: Test library
57+
run: npm run test:library
58+
- name: Upload test coverage
59+
run: npm run test:library:upload-coverage

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish-to-npm:
9+
name: Publish to npm
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
- name: Setup NodeJS
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: 14.15.x
18+
registry-url: 'https://registry.npmjs.org'
19+
- name: Install dependencies
20+
run: npm ci
21+
- name: Build
22+
run: npm run build:library
23+
- name: Publish to npm
24+
run: npm publish ./dist/angular-notifier
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 112 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,123 @@
1-
# Created by https://www.gitignore.io/api/angular,visualstudiocode
2-
# Edit at https://www.gitignore.io/?templates=angular,visualstudiocode
3-
4-
### Angular ###
5-
## Angular ##
6-
# compiled output
7-
dist/
8-
tmp/
9-
app/**/*.js
10-
app/**/*.js.map
11-
12-
# dependencies
1+
# Created by https://www.toptal.com/developers/gitignore/api/node,vscode
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,vscode
3+
4+
### Node ###
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
*.pid.lock
21+
22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
lib-cov
24+
25+
# Coverage directory used by tools like istanbul
26+
coverage
27+
*.lcov
28+
29+
# nyc test coverage
30+
.nyc_output
31+
32+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33+
.grunt
34+
35+
# Bower dependency directory (https://bower.io/)
36+
bower_components
37+
38+
# node-waf configuration
39+
.lock-wscript
40+
41+
# Compiled binary addons (https://nodejs.org/api/addons.html)
42+
build/Release
43+
44+
# Dependency directories
1345
node_modules/
14-
bower_components/
15-
16-
# IDEs and editors
17-
.idea/
18-
19-
# misc
20-
.sass-cache/
21-
connect.lock/
22-
coverage/
23-
libpeerconnection.log/
24-
npm-debug.log
25-
testem.log
46+
jspm_packages/
47+
48+
# TypeScript v1 declaration files
2649
typings/
2750

28-
# e2e
29-
e2e/*.js
30-
e2e/*.map
51+
# TypeScript cache
52+
*.tsbuildinfo
53+
54+
# Optional npm cache directory
55+
.npm
56+
57+
# Optional eslint cache
58+
.eslintcache
59+
60+
# Microbundle cache
61+
.rpt2_cache/
62+
.rts2_cache_cjs/
63+
.rts2_cache_es/
64+
.rts2_cache_umd/
3165

32-
#System Files
33-
.DS_Store/
66+
# Optional REPL history
67+
.node_repl_history
3468

35-
### VisualStudioCode ###
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variables file
76+
.env
77+
.env.test
78+
.env*.local
79+
80+
# parcel-bundler cache (https://parceljs.org/)
81+
.cache
82+
.parcel-cache
83+
84+
# Next.js build output
85+
.next
86+
87+
# Nuxt.js build / generate output
88+
.nuxt
89+
dist
90+
91+
# Gatsby files
92+
.cache/
93+
# Comment in the public line in if your project uses Gatsby and not Next.js
94+
# https://nextjs.org/blog/next-9-1#public-directory-support
95+
# public
96+
97+
# vuepress build output
98+
.vuepress/dist
99+
100+
# Serverless directories
101+
.serverless/
102+
103+
# FuseBox cache
104+
.fusebox/
105+
106+
# DynamoDB Local files
107+
.dynamodb/
108+
109+
# TernJS port file
110+
.tern-port
111+
112+
# Stores VSCode versions used for testing VSCode extensions
113+
.vscode-test
114+
115+
### vscode ###
36116
.vscode/*
37117
!.vscode/settings.json
38118
!.vscode/tasks.json
39119
!.vscode/launch.json
40120
!.vscode/extensions.json
121+
*.code-workspace
41122

42-
### VisualStudioCode Patch ###
43-
# Ignore all local history of files
44-
.history
45-
46-
# End of https://www.gitignore.io/api/angular,visualstudiocode
123+
# End of https://www.toptal.com/developers/gitignore/api/node,vscode

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"arrowParens": "always",
3+
"endOfLine": "auto",
4+
"printWidth": 140,
5+
"singleQuote": true,
6+
"trailingComma": "all"
7+
}

CHANGELOG.md

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
Also see the **[release page](https://github.com/dominique-mueller/angular-notifier.git/releases)**.
3+
Also see **[GitHub releases](https://github.com/dominique-mueller/angular-notifier/releases)**.
44

55
<br>
66

@@ -163,10 +163,6 @@ Also see the **[release page](https://github.com/dominique-mueller/angular-notif
163163

164164
* **config:** Fixed broken configuration merge ([9793773](https://github.com/dominique-mueller/angular-notifier/commit/9793773))
165165

166-
### Tests
167-
168-
* **library:** Added unit tests for the whole source code ([3624eef](https://github.com/dominique-mueller/angular-notifier/commit/3624eef))
169-
170166
<br>
171167

172168
## [1.0.1](https://github.com/dominique-mueller/angular-notifier/releases/tag/1.0.1) (2016-12-05)
@@ -180,23 +176,4 @@ Also see the **[release page](https://github.com/dominique-mueller/angular-notif
180176

181177
## [1.0.0](https://github.com/dominique-mueller/angular-notifier/releases/tag/1.0.0) (2016-12-04)
182178

183-
### Features
184-
185-
* **config:** Added new options, docs improbement, refactoring ([745e47e](https://github.com/dominique-mueller/angular-notifier/commit/745e47e))
186-
* **library:** Added animations ([bdec4ab](https://github.com/dominique-mueller/angular-notifier/commit/bdec4ab))
187-
* **library:** Added minimal feature implementation ([36aa4e3](https://github.com/dominique-mueller/angular-notifier/commit/36aa4e3))
188-
* **library:** Extended API ([4fcab3b](https://github.com/dominique-mueller/angular-notifier/commit/4fcab3b))
189-
190-
### Bug Fixes
191-
192-
* **gulp:** Fixed build process to make it work on Travis CI again ([0e21209](https://github.com/dominique-mueller/angular-notifier/commit/0e21209))
193-
194-
### Documentation
195-
196-
* **readme:** Added docs with image, updated demo ([1ee2ca2](https://github.com/dominique-mueller/angular-notifier/commit/1ee2ca2))
197-
198-
<br>
199-
200-
---
201-
202-
<sup>*Changelog generated automatically by [automatic-release](https://github.com/dominique-mueller/automatic-release).*</sup>
179+
Initial release!

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44

55
**A well designed, fully animated, highly customizable, and easy-to-use notification library for your **Angular 2+** application.**
66

7-
[![npm version](https://img.shields.io/npm/v/angular-notifier.svg?maxAge=3600&style=flat)](https://www.npmjs.com/package/angular-notifier)
8-
[![dependency status](https://img.shields.io/david/dominique-mueller/angular-notifier.svg?maxAge=3600&style=flat)](https://david-dm.org/dominique-mueller/angular-notifier)
9-
[![travis ci build status](https://img.shields.io/travis/dominique-mueller/angular-notifier/master.svg?maxAge=3600&style=flat)](https://travis-ci.org/dominique-mueller/angular-notifier)
10-
[![Codecov](https://img.shields.io/codecov/c/github/dominique-mueller/angular-notifier.svg?maxAge=3600&style=flat)](https://codecov.io/gh/dominique-mueller/angular-notifier)
11-
[![Known Vulnerabilities](https://snyk.io/test/github/dominique-mueller/angular-notifier/badge.svg)](https://snyk.io/test/github/dominique-mueller/simple-progress-webpack-plugin)
12-
[![license](https://img.shields.io/npm/l/angular-notifier.svg?maxAge=3600&style=flat)](https://github.com/dominique-mueller/angular-notifier/LICENSE)
13-
147
</div>
158

169
<br><br>
@@ -536,13 +529,3 @@ const notifierDefaultOptions: NotifierOptions = {
536529
}
537530
};
538531
```
539-
540-
<br><br><br>
541-
542-
## Creator
543-
544-
**Dominique Müller**
545-
546-
- E-Mail: **[[email protected]](mailto:[email protected])**
547-
- Website: **[www.devdom.io](https://www.devdom.io)**
548-
- Twitter: **[@itsdevdom](https://twitter.com/itsdevdom)**

codedov.yml renamed to codecov.yml

File renamed without changes.

0 commit comments

Comments
 (0)