Skip to content

Commit

Permalink
feat: add angular 15 support #191
Browse files Browse the repository at this point in the history
feat: support for angular 15 #191
  • Loading branch information
Cordobo committed Nov 18, 2022
1 parent d05f190 commit f8cfca0
Show file tree
Hide file tree
Showing 28 changed files with 7,552 additions and 7,628 deletions.
32 changes: 8 additions & 24 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": [
"*.ts"
],
"files": ["*.ts"],
"parserOptions": {
"project": [
"tsconfig.json"
],
"project": ["tsconfig.json"],
"createDefaultProgram": true
},
"extends": [
Expand Down Expand Up @@ -70,14 +64,8 @@
"allowTemplateLiterals": true
}
],
"@typescript-eslint/semi": [
"error",
"never"
],
"brace-style": [
"error",
"1tbs"
],
"@typescript-eslint/semi": ["error", "never"],
"brace-style": ["error", "1tbs"],
"id-blacklist": "off",
"id-match": "off",
"import/order": "error",
Expand All @@ -103,13 +91,9 @@
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
}
]
}
}
2 changes: 1 addition & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ markComment: >
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
closeComment: false
41 changes: 20 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# 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
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build and Deploy
name: Build and Deploy

on:
push:
branches: [ main ]
branches: [main]

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -18,21 +17,21 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run ci:lint
# - run: npm run ci:test
- name: Build
run: |
npm run ci:build:lib
npm run ci:build:app
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.2.0
with:
branch: gh-pages
folder: dist/demo-app
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run ci:lint
# - run: npm run ci:test
- name: Build
run: |
npm run ci:build:lib
npm run ci:build:app
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.2.0
with:
branch: gh-pages
folder: dist/demo-app
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,26 @@
- Support for images
- Trusted and used by thousands of developers like you

`angularx-qrcode` is compatible with Ionic 3/4/5 and Angular 4/5/6/7/8/9/10/11/12/13/14+ with support for the Ivy compiler. It is a drop-in replacement for the no-longer-maintained angular component ng2-qrcode and based on node-qrcode.
`angularx-qrcode` is compatible with Ionic 3/4/5 and Angular 4/5/6/7/8/9/10/11/12/13/14/15+ with support for the Ivy compiler. It is a drop-in replacement for the no-longer-maintained angular component ng2-qrcode and based on node-qrcode.

## Installation

**Angular 14 and Ionic with angularx-qrcode 14**
**Angular 15 and Ionic with angularx-qrcode 15**

```
npm install angularx-qrcode --save
# Or with yarn
yarn add angularx-qrcode
```

**Angular 14 and Ionic with angularx-qrcode 14**

```
npm install angularx-qrcode@14.0.0 --save
# Or with yarn
yarn add angularx-qrcode@14.0.0
```

**Angular 13 and Ionic with angularx-qrcode 13**

```
Expand Down
7 changes: 4 additions & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"allowedCommonJsDependencies": [
"qrcode"
],
"allowedCommonJsDependencies": ["qrcode"],
"outputPath": "dist/demo-app",
"index": "projects/demo-app/src/index.html",
"main": "projects/demo-app/src/main.ts",
Expand Down Expand Up @@ -155,5 +153,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}
Loading

0 comments on commit f8cfca0

Please sign in to comment.