From 40f1d84f5d57a90d29337801124f7a492a1a2eec Mon Sep 17 00:00:00 2001 From: Alexis THOMAS Date: Tue, 9 Aug 2022 00:02:08 +0200 Subject: [PATCH 1/3] change to cordova-plugin-ns0m-barcodescanner for publication --- README.md | 7 ++ package-lock.json | 2 +- package.json | 41 ++++++------ plugin.xml | 159 ++++++++++++++++++++++++---------------------- 4 files changed, 113 insertions(+), 96 deletions(-) diff --git a/README.md b/README.md index d03bad83..d17e03df 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +### Publication-only version of the [@red-mobile/cordova-plugin-barcodescanner](https://github.com/okhiroyuki/cordova-plugin-barcodescanner) package with some fixes. [![Latest Published Version](https://img.shields.io/npm/v/cordova-plugin-ns0m-barcodescanner)](https://www.npmjs.com/package/cordova-plugin-ns0m-barcodescanner) +``` +cordova plugin add cordova-plugin-ns0m-barcodescanner +``` + +--- + # Cordova Plugin BarcodeScanner ================================ diff --git a/package-lock.json b/package-lock.json index 29f01738..e7706b0c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "@red-mobile/cordova-plugin-barcodescanner", + "name": "cordova-plugin-ns0m-barcodescanner", "version": "9.0.0", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index e48bc9c0..f46525cc 100644 --- a/package.json +++ b/package.json @@ -1,37 +1,42 @@ { - "name": "@red-mobile/cordova-plugin-barcodescanner", + "name": "cordova-plugin-ns0m-barcodescanner", "version": "9.0.7", "description": "You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application.", "cordova": { - "id": "@red-mobile/cordova-plugin-barcodescanner", + "id": "cordova-plugin-ns0m-barcodescanner", "platforms": [ - "android" + "android", + "ios", + "windows", + "browser" ] }, - "repository": { - "type": "git", - "url": "git+" - }, + "repository": "github:ns0m/cordova-plugin-ns0m-barcodescanner", + "bugs": "https://github.com/ns0m/cordova-plugin-ns0m-barcodescanner/issues", "keywords": [ + "cordova", + "barcode", + "scanner", + "qrcode", + "qr", + "scan", + "camera", "ecosystem:cordova", "cordova-android", - "cordova:plugin" + "cordova-ios", + "cordova-windows" ], - "author": "Adobe PhoneGap Team", - "license": "MIT", - "bugs": { - "url": "https://github.com/okhiroyuki/cordova-plugin-barcodescanner/issues" - }, - "homepage": "https://github.com/okhiroyuki/cordova-plugin-barcodescanner#readme", "scripts": { "test": "jasmine-node --color spec" }, - "devDependencies": { - "jasmine-node": "^3.0.0", - "pluginpub": "^0.0.9" - }, + "author": "Adobe PhoneGap Team", + "license": "MIT", "dependencies": { "nopt": "^5.0.0", "shelljs": "^0.8.3" + }, + "devDependencies": { + "jasmine-node": "^3.0.0", + "pluginpub": "^0.0.9" } } diff --git a/plugin.xml b/plugin.xml index 0013bfaa..d31eb669 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,79 +1,84 @@ - - - BarcodeScanner - You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application. - MIT - https://github.com/phonegap/phonegap-plugin-barcodescanner - https://github.com/phonegap/phonegap-plugin-barcodescanner/issues - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + BarcodeScanner + You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application. + MIT + cordova,barcode,scanner,qrcode,qr,scan,camera + https://github.com/ns0m/cordova-plugin-ns0m-barcodescanner + https://github.com/ns0m/cordova-plugin-ns0m-barcodescanner/issues + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From fd3bb2ccf7f59641e8e36a102097f19cf410e0b5 Mon Sep 17 00:00:00 2001 From: Alexis THOMAS Date: Tue, 9 Aug 2022 00:10:23 +0200 Subject: [PATCH 2/3] add publication actions --- .github/workflows/publish-npm.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/publish-npm.yml diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml new file mode 100644 index 00000000..8bb024b9 --- /dev/null +++ b/.github/workflows/publish-npm.yml @@ -0,0 +1,17 @@ +name: Publish NPM +on: + release: + types: [created] +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} From fb4c6b58f79fe8ab0a5a44bc4802b1cd8c499abf Mon Sep 17 00:00:00 2001 From: Alexis THOMAS Date: Wed, 10 Aug 2022 23:33:47 +0200 Subject: [PATCH 3/3] ignore project files --- .gitignore | 1 + .npmignore | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .npmignore diff --git a/.gitignore b/.gitignore index fb37d8d8..ad7e45f6 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ bin/ .project .idea *.iml +*.tgz local.properties src/windows/lib/.vs src/windows/lib/bin diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..78c36955 --- /dev/null +++ b/.npmignore @@ -0,0 +1,4 @@ +.* +spec +*.iml +*.tgz