Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"prefix": "ngx",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "ngx",
"style": "camelCase",
"type": "attribute"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ speed-measure-plugin*.json
.history/*

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand Down
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit $1 --extends "@commitlint/config-angular"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint
6 changes: 0 additions & 6 deletions .huskyrc.json

This file was deleted.

17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 13.0.0 (2022-05-31)


### Build System

* **release:** update to angular 13 ([8ab439a](https://github.com/techiediaries/ngx-qrcode/commit/8ab439a8ed815c01293855eff86072af10460a7d))


### BREAKING CHANGES

* **lib:** support for angular v13
* Replace tslint with eslint
* Change protractor to cypress
* Update third party libraries
* Update node lts version


# [9.1.0](https://github.com/techiediaries/ngx-qrcode/compare/9.0.0...9.1.0) (2020-08-11)


Expand Down
86 changes: 47 additions & 39 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@
"projectType": "library",
"root": "projects/ngx-qrcode",
"sourceRoot": "projects/ngx-qrcode/src",
"prefix": "lib",
"prefix": "ngx",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/ngx-qrcode/tsconfig.lib.json",
"project": "projects/ngx-qrcode/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/ngx-qrcode/tsconfig.lib.prod.json"
}
}
},
"development": {}
},
"defaultConfiguration": "production"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
Expand All @@ -30,14 +32,11 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"projects/ngx-qrcode/tsconfig.lib.json",
"projects/ngx-qrcode/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"projects/ngx-qrcode/**/*.ts",
"projects/ngx-qrcode/**/*.html"
]
}
}
Expand All @@ -62,15 +61,23 @@
"main": "projects/ngx-qrcode-demo/src/main.ts",
"polyfills": "projects/ngx-qrcode-demo/src/polyfills.ts",
"tsConfig": "projects/ngx-qrcode-demo/tsconfig.app.json",
"aot": true,
"assets": [
"projects/ngx-qrcode-demo/src/favicon.ico",
"projects/ngx-qrcode-demo/src/assets"
],
"styles": [
"projects/ngx-qrcode-demo/src/styles.scss"
],
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true,
"allowedCommonJsDependencies": [
"qrcode"
]
},
"configurations": {
"production": {
Expand All @@ -83,7 +90,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
Expand All @@ -100,19 +106,23 @@
"maximumError": "10kb"
}
]
}
}
},
"development": {}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "ngx-qrcode-demo:build"
},
"options": {},
"configurations": {
"production": {
"browserTarget": "ngx-qrcode-demo:build:production"
},
"development": {
"browserTarget": "ngx-qrcode-demo:build:development"
}
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
Expand All @@ -137,35 +147,33 @@
"scripts": []
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ngx-qrcode-demo/tsconfig.app.json",
"projects/ngx-qrcode-demo/tsconfig.spec.json",
"projects/ngx-qrcode-demo/e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"builder": "@cypress/schematic:cypress",
"options": {
"protractorConfig": "projects/ngx-qrcode-demo/e2e/protractor.conf.js",
"devServerTarget": "ngx-qrcode-demo:serve"
"devServerTarget": "ngx-qrcode-demo:serve",
"configFile": "projects/ngx-qrcode-demo/e2e/cypress.json"
},
"configurations": {
"production": {
"devServerTarget": "ngx-qrcode-demo:serve:production"
}
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/ngx-qrcode-demo/**/*.ts",
"projects/ngx-qrcode-demo/**/*.html"
]
}
}
}
}},
}
},
"cli": {
"analytics": "3cbdf0e5-4793-407d-9c3d-8769136e76cf"
"analytics": "3cbdf0e5-4793-407d-9c3d-8769136e76cf",
"defaultCollection": "@angular-eslint/schematics"
},
"defaultProject": "ngx-qrcode"
}
}
85 changes: 45 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@techiediaries/ngx-qrcode",
"version": "9.1.0",
"version": "13.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve ngx-qrcode-demo",
"build": "ng build --prod",
"build:demo": "ng build ngx-qrcode-demo --prod",
"build": "ng build --configuration production",
"build:demo": "ng build ngx-qrcode-demo --configuration production",
"test": "ng test --watch=false",
"test:watch": "ng test --watch=true",
"lint": "ng lint",
Expand All @@ -16,7 +16,8 @@
"lib:package": "yarn build && yarn copy:readme",
"prelib:publish": "yarn lib:package",
"lib:publish": "cd ./dist/ngx-qrcode && yarn publish --access=public",
"tags": "yarn tag list @techiediaries/ngx-qrcode"
"tags": "yarn tag list @techiediaries/ngx-qrcode",
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand All @@ -29,50 +30,54 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~9.1.12",
"@angular/common": "~9.1.12",
"@angular/compiler": "~9.1.12",
"@angular/core": "~9.1.12",
"@angular/forms": "~9.1.12",
"@angular/platform-browser": "~9.1.12",
"@angular/platform-browser-dynamic": "~9.1.12",
"@angular/router": "~9.1.12",
"qrcode": "^1.4.4",
"rxjs": "~6.5.4",
"tslib": "^1.13.0",
"zone.js": "~0.10.3"
"@angular/animations": "~13.3.10",
"@angular/common": "~13.3.10",
"@angular/compiler": "~13.3.10",
"@angular/core": "~13.3.10",
"@angular/forms": "~13.3.10",
"@angular/platform-browser": "~13.3.10",
"@angular/platform-browser-dynamic": "~13.3.10",
"@angular/router": "~13.3.10",
"qrcode": "^1.5.0",
"rxjs": "~7.5.5",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.12",
"@angular-devkit/build-ng-packagr": "~0.901.12",
"@angular/cli": "~9.1.12",
"@angular/compiler-cli": "~9.1.12",
"@angular/language-service": "~9.1.12",
"@commitlint/cli": "^9.1.1",
"@commitlint/config-angular": "^9.1.1",
"@types/jasmine": "~3.5.12",
"@angular-devkit/build-angular": "~13.3.7",
"@angular-eslint/builder": "13.2.1",
"@angular-eslint/eslint-plugin": "13.2.1",
"@angular-eslint/eslint-plugin-template": "13.2.1",
"@angular-eslint/schematics": "13.2.1",
"@angular-eslint/template-parser": "13.2.1",
"@angular/cli": "~13.3.7",
"@angular/compiler-cli": "~13.3.10",
"@angular/language-service": "~13.3.10",
"@commitlint/cli": "^17.0.1",
"@commitlint/config-angular": "^17.0.0",
"@cypress/schematic": "^1.7.0",
"@types/jasmine": "~4.0.3",
"@types/jasminewd2": "~2.0.8",
"@types/node": "^14.0.27",
"codelyzer": "^5.2.2",
"@types/node": "^16.11.36",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"conventional-changelog-cli": "^2.0.34",
"conventional-github-releaser": "^3.1.5",
"copyfiles": "^2.3.0",
"husky": "^4.2.5",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.2",
"karma": "~5.1.1",
"eslint": "^8.12.0",
"husky": "^8.0.0",
"jasmine-core": "~4.1.1",
"karma": "~6.3.20",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~3.3.1",
"karma-jasmine-html-reporter": "^1.5.4",
"ng-packagr": "^9.1.5",
"protractor": "~7.0.0",
"ts-node": "~8.10.2",
"tslint": "~6.1.3",
"typescript": "~3.8.3"
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~5.0.1",
"karma-jasmine-html-reporter": "^2.0.0",
"ng-packagr": "^13.3.1",
"typescript": "~4.6.4",
"cypress": "^9.7.0"
},
"engines": {
"node": ">=12.14.1",
"yarn": ">=1.22.4"
"node": ">=16.15.0",
"yarn": ">=1.22.19"
}
}
Loading