Skip to content

Added bower configuration #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 25 commits into
base: gh-pages
Choose a base branch
from
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
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
demo
lib
tests
node_modules
bower_components

.gitIgnore
Makefile
test.html
test_webrtc.html
quirc.js-demo-avatar.png
quirc.js-doraemon.png
qr.png
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ JS library is 61.3kb after gzipped and seems to be able to decode video frames f
Quirc.js is a JS Emscripten port of a small portable C qrcode library [Quirc](https://github.com/dlbeer/quirc)

Examples:
- [WebRTC demo](https://zz85.github.io/quirc.js/test_webrtc.html)
- [Image decoding demo](https://zz85.github.io/quirc.js/test.html)
- [WebRTC demo](https://github.com/Karankang007/quirc.js/blob/Master/test_webrtc.html)
- [Image decoding demo](https://github.com/Karankang007/quirc.js/test.html)

Try this:

Expand Down
33 changes: 33 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "quircJs",
"description": "Quirc.js is a JS Emscripten port of a small portable C qrcode library Quirc",
"version": "1.1.1",
"main": "quirc.js",
"keywords": [
"QuircJs",
"QR",
"Barcode",
"Decode",
"WebRTC"
],
"authors": [
"Daniel Beer",
"Joshua Koo"
],
"license": "https://github.com/zz85/quirc.js/blob/gh-pages/LICENSE",
"homepage": "https://github.com/zz85/quirc.js",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests",
".gitIgnore",
"Makefile",
"test.html",
"test_webrtc.html",
"quirc.js-demo-avatar.png",
"quirc.js-doraemon.png",
"demo/*"
]
}
33 changes: 33 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "quirc-js",
"version": "1.1.2",
"description": "Quirc.js is a JS Emscripten port of a small portable C qrcode library Quirc",
"main": "quirc.js",
"directories": {
"lib": "lib",
"test": "tests"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Karankang007/quirc.js.git"
},
"author": "Daniel Beer <[email protected]> (https://github.com/dlbeer)",
"contributors": [
"Joshua Koo (https://github.com/zz85)",
"Karanvir Kang <[email protected]> (https://github.com/karankang007)"
],
"license": "LicenseRef-LICENSE",
"bugs": {
"url": "https://github.com/zz85/quirc.js"
},
"homepage": "https://github.com/zz85/quirc.js",
"browser": {
"fs" : false,
"path": false,
"crypto": false,
"ws": false
}
}
11,334 changes: 11,318 additions & 16 deletions quirc.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions test.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
document.body.appendChild(canvas);

log('start');

Module.onDecoded(decoded);

image = Module._xsetup(width, height);
log('_xsetup', image, 'pointer');

Expand Down
4 changes: 4 additions & 0 deletions test_webrtc.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ <h3>Found [<span style="font-size: 40px" id="display_data"></span>]</h3>
document.body.appendChild(canvas);

log('start');

Module.onDecoded(decoded);
Module.onCounted(counted);

image = Module._xsetup(width, height);
log('_xsetup', image, 'pointer');
return;
Expand Down