Skip to content

Commit d2d4ce6

Browse files
committed
update deps
1 parent 3166113 commit d2d4ce6

29 files changed

+3398
-2364
lines changed

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.prettierignore

-42
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,4 @@
11
# Add files here to ignore them from prettier formatting
22

3-
# compiled output
43
/dist
5-
/docs
6-
/tmp
7-
/out-tsc
8-
9-
# dependencies
10-
/node_modules
11-
12-
# IDEs and editors
13-
/.idea
14-
.project
15-
.classpath
16-
.c9/
17-
*.launch
18-
.settings/
19-
*.sublime-workspace
20-
21-
# IDE - VSCode
22-
.vscode/*
23-
!.vscode/settings.json
24-
!.vscode/tasks.json
25-
!.vscode/launch.json
26-
!.vscode/extensions.json
27-
28-
# misc
29-
/.sass-cache
30-
/connect.lock
314
/coverage
32-
/libpeerconnection.log
33-
npm-debug.log
34-
yarn-error.log
35-
testem.log
36-
test-report.xml
37-
/typings
38-
39-
# System Files
40-
.DS_Store
41-
Thumbs.db
42-
43-
# others
44-
/tools
45-
angular.json
46-
yarn.lock

.prettierrc

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
{
2-
"printWidth": 140,
3-
"singleQuote": true
2+
"printWidth": 120,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"arrowParens": "avoid",
6+
"overrides": [
7+
{
8+
"files": "*.component.html",
9+
"options": {
10+
"parser": "angular"
11+
}
12+
},
13+
{
14+
"files": "*.html",
15+
"options": {
16+
"parser": "html"
17+
}
18+
}
19+
]
420
}

CONTRIBUTING.md

+24-29
Original file line numberDiff line numberDiff line change
@@ -116,38 +116,41 @@ After your pull request is merged, you can safely delete your branch and pull th
116116
To ensure consistency throughout the source code, keep these rules in mind as you are working:
117117
* All features or bug fixes **must be tested** by one or more specs (unit-tests).
118118
* All public API methods **must be documented**. (Details TBC).
119-
* We follow [fulls1z3's Angular TSLint rules][angular-tslint-rules].
119+
- We follow [eslint:recommended][eslint].
120120
121121
## <a name="commit"></a> Commit message guidelines
122122
We have very precise rules over how our git commit messages can be formatted. This leads to **more readable messages** that
123123
are easy to follow when looking through the **project history**. But also, we use the git commit messages to **generate
124124
the `ngx-auth` change log**.
125125
126126
### Commit Message Format
127-
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special format that includes
128-
a **type**, a **scope** (*when applicable*) and a **subject**:
127+
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special format that includes
128+
a **type** and a **subject**:
129+
129130
```
130-
<type>(<scope>): <subject>
131+
<type>: <subject>
131132
<BLANK LINE>
132133
<body>
133134
<BLANK LINE>
134135
<footer>
135136
```
136137
137-
The **header** is mandatory and the **scope** of the header is optional.
138+
The **header** is mandatory.
138139
139140
Any line of the commit message cannot be longer 100 characters. This allows the message to be easier to read on GitHub as
140141
well as in various git tools.
141142
142143
Footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/)
143144
if any.
144145
145-
Samples: (even more [samples](https://github.com/fulls1z3/ngx-auth/commits/master))
146+
Samples: (even more [samples](https://github.com/fulls1z3/universal/commits/master))
147+
146148
```
147-
docs(changelog): update change log to alpha.4
149+
docs: update change log to alpha.4
148150
```
151+
149152
```
150-
fix(release): need to depend on latest rxjs and zone.js
153+
fix: need to depend on latest rxjs and zone.js
151154
152155
The version in our package.json gets copied to the one we publish, and users need the latest of these.
153156
```
@@ -157,28 +160,20 @@ If the commit reverts a previous commit, it should begin with `revert: `, follow
157160
In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
158161
159162
### Type
160-
Must be one of the following:
161-
* **build**: Changes that affect the build system or external dependencies (example scopes: gulp, npm, webpack)
162-
* **ci**: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, etc)
163-
* **docs**: Documentation only changes
164-
* **feat**: A new feature
165-
* **fix**: A bug fix
166-
* **perf**: A code change that improves performance
167-
* **refactor**: A code change that neither fixes a bug nor adds a feature
168-
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
169-
* **test**: Adding missing tests or correcting existing tests
170163
171-
### Scope
172-
The scope should be the name of the project affected.
173-
174-
The following is the list of supported scopes:
175-
* **core**
176-
* **auth0**
177-
178-
There are currently a few exceptions to the "use project name" rule:
164+
Must be one of the following:
179165
180-
* **packaging**: used for changes that change the package layout (*e.g. package.json, bundles, path changes, etc.*)
181-
* **changelog**: used for updating the release notes in CHANGELOG.md
166+
- **feat**: A new feature
167+
- **fix**: A bug fix
168+
- **docs**: Documentation only changes
169+
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
170+
- **refactor**: A code change that neither fixes a bug nor adds a feature
171+
- **perf**: A code change that improves performance
172+
- **test**: Adding missing tests or correcting existing tests
173+
- **build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
174+
- **ci**: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
175+
- **chore**: Other changes that don't modify src or test files
176+
- **revert**: Reverts a previous commit
182177

183178
### Subject
184179
The subject contains succinct description of the change:
@@ -199,4 +194,4 @@ message is then used for this.
199194
200195
[coc]: https://github.com/fulls1z3/ngx-auth/blob/master/CODE_OF_CONDUCT.md
201196
[github]: https://github.com/fulls1z3/ngx-auth
202-
[angular-tslint-rules]: https://github.com/fulls1z3/angular-tslint-rules
197+
[eslint]: https://github.com/eslint/eslint

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Burak Tasci
3+
Copyright (c) 2021 Burak Tasci
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ As of version **`5.1.0`**, the library contains **[Auth0]** implementation.
2525

2626
## Examples
2727

28-
- [ng-seed/universal] and [fulls1z3/example-app] are officially maintained projects, showcasing common patterns and best
28+
- [universal/universal] and [fulls1z3/example-app] are officially maintained projects, showcasing common patterns and best
2929
practices for **`ngx-auth`**.
3030

3131
## Contributing
@@ -45,10 +45,10 @@ If you want to file a bug, contribute some code, or improve documentation, pleas
4545

4646
The MIT License (MIT)
4747

48-
Copyright (c) 2019 [Burak Tasci]
48+
Copyright (c) 2021 [Burak Tasci]
4949

5050
[ngx-auth]: https://github.com/fulls1z3/ngx-auth
51-
[ng-seed/universal]: https://github.com/ng-seed/universal
51+
[universal/universal]: https://github.com/universal/universal
5252
[fulls1z3/example-app]: https://github.com/fulls1z3/example-app
5353
[auth0]: https://auth0.com
5454
[jetbrains]: https://www.jetbrains.com/community/opensource

commitlint.config.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional'],
3-
rules: {
4-
'scope-enum': [2, 'always', ['core', 'auth0', 'package', 'npm', 'circle', 'lint', 'packaging', 'changelog']]
5-
}
2+
extends: ['@commitlint/config-conventional']
63
};

jest.config.js

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
module.exports = {
2+
displayName: 'ngx-auth',
3+
preset: 'jest-preset-angular',
4+
setupFilesAfterEnv: ['<rootDir>/tools/test/jest.setup.ts'],
5+
testResultsProcessor: './node_modules/jest-junit-reporter',
6+
globals: {
7+
'ts-jest': {
8+
tsConfig: '<rootDir>/tsconfig.spec.json',
9+
stringifyContentPathRegex: '\\.(html|svg)$',
10+
astTransformers: {
11+
before: ['jest-preset-angular/build/InlineFilesTransformer', 'jest-preset-angular/build/StripStylesTransformer']
12+
}
13+
}
14+
},
15+
moduleNameMapper: {
16+
'^@ngx-auth/core': '<rootDir>/packages/@ngx-auth/core/src/index.ts',
17+
'^@ngx-auth/auth0': '<rootDir>/packages/@ngx-auth/auth0/src/index.ts'
18+
},
19+
cache: false,
20+
silent: true,
21+
collectCoverage: true,
22+
collectCoverageFrom: [
23+
'packages/@ngx-auth/core/src/**.ts',
24+
'packages/@ngx-auth/auth0/src/**.ts'
25+
],
26+
snapshotSerializers: [
27+
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
28+
'jest-preset-angular/build/AngularSnapshotSerializer.js',
29+
'jest-preset-angular/build/HTMLCommentSerializer.js'
30+
]
31+
};

package.json

+28-62
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"homepage": "https://github.com/fulls1z3/ngx-auth#readme",
1919
"scripts": {
2020
"clean": "rimraf dist",
21-
"build:core": "ts-node tools/build/packager.ts core",
22-
"build:auth0": "ts-node tools/build/packager.ts auth0",
21+
"build:core": "ng-packagr -p packages/@ngx-auth/core/package.json",
22+
"build:auth0": "ng-packagr -p packages/@ngx-auth/auth0/package.json",
2323
"build": "npm run build:core && npm run build:auth0",
2424
"lint": "tslint -p ./tsconfig.lint.json --force",
2525
"lint:check": "tslint-config-prettier-check ./tslint.lint.json",
@@ -28,80 +28,46 @@
2828
"ci:after": "greenkeeper-lockfile-upload",
2929
"test": "jest --runInBand --colors",
3030
"test:ci": "jest --ci --updateSnapshot --colors",
31-
"release": "standard-version"
31+
"release": "standard-version",
32+
"prepare": "husky install"
3233
},
3334
"devDependencies": {
34-
"@angular/common": "^9.1.0",
35-
"@angular/compiler": "^9.1.0",
36-
"@angular/compiler-cli": "^9.1.0",
37-
"@angular/core": "^9.1.0",
38-
"@angular/platform-browser": "^9.1.0",
39-
"@angular/platform-browser-dynamic": "^9.1.0",
40-
"@angular/router": "^9.1.0",
41-
"@commitlint/cli": "^8.3.5",
42-
"@commitlint/config-conventional": "^8.3.4",
43-
"@types/auth0-js": "^9.12.0",
44-
"@types/jest": "^23.3.14",
45-
"@types/node": "^10.0.0",
35+
"@angular/common": "^10.1.0",
36+
"@angular/compiler": "^10.1.0",
37+
"@angular/compiler-cli": "^10.1.0",
38+
"@angular/core": "^10.1.0",
39+
"@angular/platform-browser": "^10.1.0",
40+
"@angular/platform-browser-dynamic": "^10.1.0",
41+
"@angular/router": "^10.1.0",
42+
"@commitlint/cli": "^12.1.4",
43+
"@commitlint/config-conventional": "^12.1.4",
44+
"@types/auth0-js": "^9.14.5",
45+
"@types/jest": "26.0.8",
46+
"@types/node": "~8.9.4",
4647
"angular-tslint-rules": "^1.20.4",
47-
"auth0-js": "^9.13.0",
48+
"auth0-js": "^9.16.2",
4849
"codelyzer": "^5.2.2",
49-
"cz-conventional-changelog": "^3.1.0",
50-
"husky": "^4.2.0",
51-
"jest": "^23.6.0",
50+
"cz-conventional-changelog": "^3.3.0",
51+
"husky": "^7.0.1",
52+
"jest": "26.2.2",
5253
"jest-junit-reporter": "^1.1.0",
53-
"jest-preset-angular": "8.1.2",
54+
"jest-preset-angular": "8.3.1",
5455
"lerna": "^3.20.2",
55-
"lint-staged": "^10.1.7",
56-
"ng-packagr": "^9.0.0",
57-
"prettier": "1.19.1",
56+
"lint-staged": "~11.0.0",
57+
"ng-packagr": "^10.1.2",
58+
"prettier": "2.3.2",
5859
"prettier-tslint": "^0.4.2",
5960
"reflect-metadata": "^0.1.13",
6061
"request": "^2.88.2",
6162
"rimraf": "^3.0.2",
62-
"rxjs": "~6.5.4",
63-
"ts-node": "^8.9.0",
64-
"tsickle": "^0.38.0",
63+
"rxjs": "~6.5.5",
64+
"ts-node": "^8.10.2",
65+
"tsickle": "^0.43.0",
6566
"tslint": "5.20.1",
6667
"tslint-config-prettier": "^1.18.0",
67-
"typescript": "~3.8.3",
68+
"typescript": "~4.0.8",
6869
"zone.js": "^0.10.2"
6970
},
70-
"husky": {
71-
"hooks": {
72-
"pre-commit": "lint-staged",
73-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
74-
}
75-
},
76-
"jest": {
77-
"preset": "jest-preset-angular",
78-
"setupTestFrameworkScriptFile": "./tools/test/jest.setup.ts",
79-
"testResultsProcessor": "./node_modules/jest-junit-reporter",
80-
"testMatch": [
81-
"**/+(*.)+(spec|test).+(ts|js)?(x)"
82-
],
83-
"globals": {
84-
"ts-jest": {
85-
"tsConfigFile": "./tsconfig.json"
86-
},
87-
"__TRANSFORM_HTML__": true
88-
},
89-
"moduleDirectories": [
90-
"node_modules",
91-
"packages"
92-
],
93-
"moduleNameMapper": {
94-
"^@ngx-auth/core": "<rootDir>/packages/@ngx-auth/core/src/index.ts",
95-
"^@ngx-auth/auth0": "<rootDir>/packages/@ngx-auth/auth0/src/index.ts"
96-
},
97-
"cache": false,
98-
"silent": true,
99-
"collectCoverage": true,
100-
"collectCoverageFrom": [
101-
"packages/@ngx-auth/core/src/**.ts",
102-
"packages/@ngx-auth/auth0/src/**.ts"
103-
]
104-
},
10571
"config": {
10672
"commitizen": {
10773
"path": "./node_modules/cz-conventional-changelog"

packages/@ngx-auth/auth0/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ npm install @ngx-auth/auth0 --save
3333

3434
### <a name="examples"></a> Examples
3535

36-
- [ng-seed/universal] and [fulls1z3/example-app] are officially maintained projects, showcasing common patterns and best
36+
- [universal/universal] and [fulls1z3/example-app] are officially maintained projects, showcasing common patterns and best
3737
practices for **`@ngx-auth/auth0`**.
3838

3939
### <a name="related-packages"></a> Related packages
@@ -273,11 +273,11 @@ and redirects to the `login` page.
273273

274274
The MIT License (MIT)
275275

276-
Copyright (c) 2019 [Burak Tasci]
276+
Copyright (c) 2021 [Burak Tasci]
277277

278278
[auth0]: https://auth0.com
279279
[ngx-auth]: https://github.com/fulls1z3/ngx-auth
280-
[ng-seed/universal]: https://github.com/ng-seed/universal
280+
[universal/universal]: https://github.com/universal/universal
281281
[fulls1z3/example-app]: https://github.com/fulls1z3/example-app
282282
[@ngx-auth/core]: https://github.com/fulls1z3/ngx-auth/tree/master/packages/@ngx-auth/core
283283
[@ngx-config/core]: https://github.com/fulls1z3/ngx-config/tree/master/packages/@ngx-config/core

0 commit comments

Comments
 (0)