Skip to content

Commit 3c99846

Browse files
authored
Merge pull request #302 from devmehq/develop
develop
2 parents 5e7427d + d6f7e85 commit 3c99846

File tree

8 files changed

+565
-178
lines changed

8 files changed

+565
-178
lines changed

.github/renovate.json

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,21 @@
11
{
2-
"extends": [
3-
"config:base"
4-
],
2+
"extends": ["config:base"],
53
"branchPrefix": "renovate-",
64
"baseBranches": ["develop"],
75
"assigneesFromCodeOwners": true,
86
"packageRules": [
97
{
10-
"matchPackagePatterns": [
11-
"*"
12-
],
13-
"matchUpdateTypes": [
14-
"minor",
15-
"patch"
16-
],
8+
"matchPackagePatterns": ["*"],
9+
"matchUpdateTypes": ["minor", "patch"],
1710
"groupName": "all non-major dependencies",
1811
"groupSlug": "all-minor-patch",
1912
"automerge": true,
20-
"labels": [
21-
"dependencies"
22-
]
13+
"labels": ["dependencies"]
2314
},
2415
{
25-
"matchPackagePatterns": [
26-
"*"
27-
],
28-
"matchUpdateTypes": [
29-
"major"
30-
],
31-
"labels": [
32-
"dependencies",
33-
"breaking"
34-
]
16+
"matchPackagePatterns": ["*"],
17+
"matchUpdateTypes": ["major"],
18+
"labels": ["dependencies", "breaking"]
3519
}
3620
]
3721
}

.github/workflows/ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- 'package.json'
1010
- 'yarn.lock'
1111
- 'release.config.js'
12+
- '.github/workflows/ci.yml'
1213
branches:
1314
- '*'
1415
- '**'
@@ -24,6 +25,10 @@ jobs:
2425
runs-on: ubuntu-latest
2526
timeout-minutes: 20
2627

28+
permissions:
29+
packages: write
30+
contents: write
31+
2732
steps:
2833
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
2934
- uses: styfle/cancel-workflow-action@0.11.0
@@ -36,6 +41,10 @@ jobs:
3641
fetch-depth: 30
3742

3843
- uses: FranzDiebold/github-env-vars-action@v2
44+
- name: Setup Node.js
45+
uses: actions/setup-node@v3
46+
with:
47+
node-version: 19
3948

4049
- name: Yarn
4150
run: yarn install --frozen-lockfile
@@ -44,10 +53,8 @@ jobs:
4453
run: |
4554
yarn test
4655
47-
- name: Release Prep
48-
run: |
49-
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
50-
5156
- name: Release
57+
if: github.ref == 'refs/heads/develop'
5258
run: |
53-
semantic-release --no-ci --debug
59+
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
60+
npx semantic-release --no-ci --debug

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 20
2121

22+
permissions:
23+
packages: write
24+
contents: write
25+
2226
steps:
2327
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
2428
- uses: styfle/cancel-workflow-action@0.11.0
@@ -31,6 +35,10 @@ jobs:
3135
fetch-depth: 30
3236

3337
- uses: FranzDiebold/github-env-vars-action@v2
38+
- name: Setup Node.js
39+
uses: actions/setup-node@v3
40+
with:
41+
node-version: 19
3442

3543
- name: Yarn
3644
run: yarn install --frozen-lockfile
@@ -39,10 +47,7 @@ jobs:
3947
run: |
4048
yarn test
4149
42-
- name: Release Prep
43-
run: |
44-
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
45-
4650
- name: Release
4751
run: |
48-
semantic-release --no-ci --debug
52+
npm i -g semantic-release @semantic-release/git @semantic-release/github conventional-changelog-conventionalcommits
53+
npx semantic-release --no-ci --debug

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/.bin/pretty-quick
2+
node_modules/.bin/lint-staged

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
# Changelog
22

33
### [1.0.8](https://github.com/devme/react-qr-code/compare/v1.0.7...v1.0.8) (2022-12-28)
4+
45
- Fix entry points in package.json
56
- Update docs
67

78
### [1.0.7](https://github.com/devme/react-qr-code/compare/v1.0.6...v1.0.7) (2022-12-28)
9+
810
- Simplify build process
911
- Move the bundle umd only
1012
- Update dependencies
1113

1214
### [1.0.6](https://github.com/devme/react-qr-code/compare/v1.0.5...v1.0.6) (2022-01-09)
15+
1316
- Remove qr.js as dependency
1417
- Migrate qr.js to local typescript implementation
1518
- Remove source maps from production build
1619
- Minor code enhancements
1720

1821
### [1.0.5](https://github.com/devme/react-qr-code/compare/v1.0.3...v1.0.5) (2022-01-01)
22+
1923
- Rewrite the codebase
2024
- Improve readme

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[The MIT License](https://tldrlegal.com/l/mit)
22

3-
Copyright (c) 2021 <mo.meabed@gmail.com>
3+
Copyright (c) 2023 <support@dev.me>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

package.json

Lines changed: 23 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717
},
1818
"repository": {
1919
"type": "git",
20-
"url": "git+https://github.com/devmehq/react-qr-code.git"
20+
"url": "https://github.com/devmehq/react-qr-code.git"
2121
},
2222
"license": "MIT",
2323
"author": {
24-
"name": "Mohamed Meabed",
25-
"email": "mo@meabed.com",
26-
"url": "https://meabed.com"
24+
"name": "DEV.ME Team",
25+
"email": "support@dev.me",
26+
"url": "https://devme.com"
2727
},
2828
"maintainers": [
2929
{
30-
"name": "Mohamed Meabed",
31-
"email": "mo@meabed.com",
32-
"url": "https://meabed.com"
30+
"name": "DEV.ME Team",
31+
"email": "support@dev.me",
32+
"url": "https://devme.com"
3333
}
3434
],
3535
"sideEffects": false,
@@ -43,55 +43,43 @@
4343
"build": "rollup -c rollup.config.mjs",
4444
"build:prod": "NODE_ENV=production rollup -c rollup.config.mjs",
4545
"lint-js": "eslint src/**/*.ts",
46+
"prepare": "yarn husky install",
4647
"prepublishOnly": "rm -rf dist/* && NODE_ENV=production rollup -c rollup.config.mjs",
4748
"prettier": "prettier --write '**/*.{ts,tsx,css,scss}'",
48-
"test": "echo \"Error: no test specified\" && exit 0",
49+
"test": "echo \"Error: no test specified\"",
4950
"test-watch": "jest --watch"
5051
},
5152
"lint-staged": {
52-
"**/*.{ts,tsx,js,jsx,css,scss,sass,less,md}": [
53-
"prettier --write",
54-
"git add"
55-
],
56-
"src/**/*.{ts,tsx}": [
57-
"npm run lint:fix",
58-
"git add"
59-
]
60-
},
61-
"config": {
62-
"commitizen": {
63-
"path": "cz-conventional-changelog"
64-
}
53+
"src/*.{ts,tsx,js,jsx}": "prettier --write",
54+
"__tests__/*.{ts,tsx,js,jsx}": "prettier --write"
6555
},
6656
"devDependencies": {
6757
"@ianvs/prettier-plugin-sort-imports": "3.7.1",
6858
"@rollup/plugin-commonjs": "24.0.0",
6959
"@rollup/plugin-node-resolve": "15.0.1",
7060
"@rollup/plugin-replace": "5.0.2",
71-
"@rollup/plugin-typescript": "10.0.1",
61+
"@rollup/plugin-typescript": "11.0.0",
7262
"@types/jasmine": "4.3.1",
73-
"@types/jest": "29.2.4",
63+
"@types/jest": "29.2.5",
7464
"@types/react": "18.0.26",
7565
"@types/react-dom": "18.0.10",
76-
"@typescript-eslint/eslint-plugin": "5.47.1",
77-
"@typescript-eslint/parser": "5.47.1",
78-
"eslint": "8.30.0",
79-
"eslint-config-prettier": "8.5.0",
66+
"@typescript-eslint/eslint-plugin": "5.48.2",
67+
"@typescript-eslint/parser": "5.48.2",
68+
"eslint": "8.32.0",
69+
"eslint-config-prettier": "8.6.0",
70+
"husky": "8.0.3",
8071
"jest": "29.3.1",
81-
"prettier": "2.8.1",
82-
"rollup": "3.9.0",
72+
"lint-staged": "13.1.0",
73+
"prettier": "2.8.3",
74+
"pretty-quick": "3.1.3",
75+
"rollup": "3.10.0",
8376
"rollup-plugin-uglify": "6.0.4",
84-
"ts-jest": "29.0.3",
77+
"ts-jest": "29.0.5",
8578
"tslib": "2.4.1",
8679
"typescript": "4.9.4"
8780
},
8881
"peerDependencies": {
8982
"react": ">=17.0.2",
9083
"react-dom": ">=17.0.2"
91-
},
92-
"engines": {
93-
"node": ">=8.5",
94-
"npm": ">=6.0",
95-
"yarn": "^1.0"
9684
}
9785
}

0 commit comments

Comments
 (0)