1 | {
|
2 | "name": "scandit-sdk",
|
3 | "version": "4.6.1",
|
4 | "description": "Scandit Barcode Scanner SDK for the Web",
|
5 | "main": "build/main/index.js",
|
6 | "typings": "build/main/index.d.ts",
|
7 | "module": "build/module/index.js",
|
8 | "browser": "build/browser/index.min.js",
|
9 | "unpkg": "build/browser/index.min.js",
|
10 | "sideEffects": [
|
11 | "**/*.css",
|
12 | "**/*.scss"
|
13 | ],
|
14 | "author": "Scandit - Lorenzo Wölckner <lorenzo@scandit.com>",
|
15 | "contributors": [
|
16 | {
|
17 | "name": "Lorenzo Wölckner",
|
18 | "email": "lorenzo@scandit.com"
|
19 | }
|
20 | ],
|
21 | "homepage": "https://www.scandit.com/products/sdk-web/",
|
22 | "license": "SEE LICENSE IN LICENSE",
|
23 | "bugs": {
|
24 | "email": "support@scandit.com"
|
25 | },
|
26 | "repository": {
|
27 | "type": "git",
|
28 | "url": "https://github.com/scandit"
|
29 | },
|
30 | "scripts": {
|
31 | "info": "npm-scripts-info",
|
32 | "build:browser-esm": "shx mkdir -p build && cross-env CACHE_FOLDER=esm rollup -c rollup.config.js -f es -o build/browser/index.esm.js && prettier --write build/browser/index.esm.js && cross-env CACHE_FOLDER=esm ROLLUP_MODE=minify rollup -c rollup.config.js -f es -o build/browser/index.esm.min.js && run-s \"replace:* build/browser/index.esm.js build/browser/index.esm.min.js\"",
|
33 | "build:browser-umd": "shx mkdir -p build && cross-env CACHE_FOLDER=umd rollup -c rollup.config.js -f umd --name ScanditSDK -o build/browser/index.js && prettier --write build/browser/index.js && cross-env CACHE_FOLDER=umd ROLLUP_MODE=minify rollup -c rollup.config.js -f umd --name ScanditSDK -o build/browser/index.min.js && run-s \"replace:* build/browser/index.js build/browser/index.min.js\"",
|
34 | "build:main": "shx mkdir -p build/main/styles && shx cp -rf src/styles/* build/main/styles && run-s cache-invalidate:main && tsc -p tsconfig.json && run-s \"replace:* build/main/lib/workers/engineWorker.js\"",
|
35 | "build:module": "shx mkdir -p build/module/styles && shx cp -rf src/styles/* build/module/styles && run-s cache-invalidate:module && tsc -p tsconfig.module.json && run-s \"replace:* build/module/lib/workers/engineWorker.js\"",
|
36 | "build": "run-p --print-label --aggregate-output build:* copy-engine-sdk",
|
37 | "cache-invalidate:main": "cross-env grep -q @\"$npm_package_version\" build/main/lib/workers/engineWorker.js >/dev/null 2>&1 && shx echo 'Executing incremental build...' || (shx rm -f build/main/.tsbuildinfo && shx echo 'Executing clean build...')",
|
38 | "cache-invalidate:module": "cross-env grep -q @\"$npm_package_version\" build/module/lib/workers/engineWorker.js >/dev/null 2>&1 && shx echo 'Executing incremental build...' || (shx rm -f build/module/.tsbuildinfo && shx echo 'Executing clean build...')",
|
39 | "clean:browser": "shx rm -rf build/browser",
|
40 | "clean:main": "shx rm -rf build/main",
|
41 | "clean:module": "shx rm -rf build/module",
|
42 | "clean": "run-p --print-label clean:*",
|
43 | "copy-engine-sdk": "shx mkdir -p build && shx cp -f \"scandit-engine-sdk/*\" build && run-s \"prepend:engine-version build/scandit-engine-sdk.min.js\"",
|
44 | "coverage:check": "nyc report && nyc check-coverage --lines 90 --functions 90 --branches 90",
|
45 | "coverage:generate": "nyc report --reporter=lcov",
|
46 | "coverage": "run-s test coverage:generate && open-cli coverage/lcov-report/index.html",
|
47 | "describe": "npm-scripts-info",
|
48 | "docs:copy-special": "shx mkdir -p docs && echo-cli \"<html><head><link rel=\\\"stylesheet\\\" href=\\\"assets/css/main.css\\\"><style>body{margin:20px}</style></head><body>\" > docs/CHANGELOG.html && marked CHANGELOG.md >> docs/CHANGELOG.html && echo-cli \"</body></html>\" >> docs/CHANGELOG.html && shx mv docs/CHANGELOG.html docs/CHANGELOG.md && shx cp LICENSE docs",
|
49 | "docs:html": "shx rm -rf docs && typedoc --options typedoc.json && run-s docs:copy-special",
|
50 | "docs": "run-s docs:html && open-cli docs/index.html",
|
51 | "e2e:serve": "http-server ./ -a 127.0.0.1 -p 2674 -s",
|
52 | "e2e:run": "nightwatch",
|
53 | "e2e": "run-p -r e2e:serve \"e2e:run {@}\" --",
|
54 | "fix:code": "tslint --fix --project . && prettier --write --loglevel warn \"src/**/*.ts\" \"e2e/**/*.js\" \"config/**/*.{js,json}\"",
|
55 | "fix:style": "stylelint --fix --syntax scss src/**/*.scss",
|
56 | "fix": "run-p --print-label --aggregate-output fix:*",
|
57 | "license": "shx rm LICENSE && shx cp LICENSE_HEADER LICENSE && yarn licenses generate-disclaimer --production >> LICENSE && cat LICENSE_MANUAL >> LICENSE && run-s docs:copy-special",
|
58 | "lint:worker-compat": "BROWSERSLIST_CONFIG=.browserslistrc.worker yarn eslint src/lib/workers/engineWorker.ts",
|
59 | "lint:tsc": "tsc -p tsconfig.json --noEmit",
|
60 | "lint:tslint": "tslint --project .",
|
61 | "lint:stylelint": "stylelint --syntax scss src/**/*.scss",
|
62 | "lint": "run-p --print-label --aggregate-output lint:*",
|
63 | "prepend:engine-version": "cross-env yarn replace --quiet --count --multiline false \"^\" \"wasmJSVersion=\\'$npm_package_version\\';\"",
|
64 | "preversion": "run-s clean lint test coverage:generate coverage:check license docs:html && (git diff --exit-code HEAD || (echo \"File(s) modified during release, aborting\" && exit 1))",
|
65 | "postversion": "run-s clean build && npm pack --dry-run && echo-cli \"Run 'npm publish' to publish files when ready\"",
|
66 | "release": "run-s reset && yarn version",
|
67 | "replace:engine-version": "cross-env yarn replace --quiet --count \"%VER%\" \"$npm_package_version\"",
|
68 | "replace:engine-wasm-hash": "yarn replace --quiet --count \"%________________________ENGINE_WASM_HASH________________________%\" \"$(openssl dgst -sha256 scandit-engine-sdk/scandit-engine-sdk.wasm | shx sed 's/.* //g')\"",
|
69 | "reset": "git clean -dfx && git reset --hard && yarn --frozen-lockfile",
|
70 | "size-info": "cross-env CACHE_FOLDER=size-info ROLLUP_MODE=size-info rollup -c rollup.config.js -f umd --name ScanditSDK -o \"$TMPDIR\"index.js",
|
71 | "test": "run-s build:main copy-engine-sdk \"replace:* build/main/lib/workers/engineWorker.js\" && nyc --silent ava"
|
72 | },
|
73 | "scripts-info": {
|
74 | "info": "Display information about the scripts",
|
75 | "clean": "Remove build and test output folders",
|
76 | "build": "Build (rebuild) and create all output modules",
|
77 | "fix": "Try to automatically fix all linting problems",
|
78 | "lint": "Lint all source files",
|
79 | "test": "Build (rebuild) main library and run unit tests",
|
80 | "e2e": "Run E2E tests. You must specify a comma-separated list of browsers with '-e chrome,firefox,safari'",
|
81 | "coverage": "Run tests, generate HTML coverage report, and open it in a browser",
|
82 | "docs": "Generate HTML API documentation and open it in a browser",
|
83 | "license": "Generate LICENSE file with copyright and licenses of dependencies",
|
84 | "reset": "Delete all untracked files, reset the repo to the last commit and install all needed packages",
|
85 | "size-info": "Build (rebuild) browser UMD library and show bundle size information",
|
86 | "release": "Clean, build, test, generate and check coverage, generate license, generate docs and prepare release"
|
87 | },
|
88 | "husky": {
|
89 | "hooks": {
|
90 | "pre-commit": "lint-staged",
|
91 | "pre-push": "yarn lint"
|
92 | }
|
93 | },
|
94 | "lint-staged": {
|
95 | "src/**/*.ts": [
|
96 | "tslint --fix --project .",
|
97 | "prettier --write",
|
98 | "git add"
|
99 | ],
|
100 | "e2e/**/*.js": [
|
101 | "prettier --write",
|
102 | "git add"
|
103 | ],
|
104 | "./*.{js,json}": [
|
105 | "prettier --write",
|
106 | "git add"
|
107 | ],
|
108 | "src/**/*.scss": [
|
109 | "stylelint --syntax scss --fix",
|
110 | "git add"
|
111 | ]
|
112 | },
|
113 | "standard-version": {
|
114 | "scripts": {
|
115 | "postbump": "echo-cli 'Rebuilding project for updated version number' && yarn build"
|
116 | },
|
117 | "skip": {
|
118 | "changelog": true
|
119 | }
|
120 | },
|
121 | "engines": {
|
122 | "node": ">=8"
|
123 | },
|
124 | "keywords": [
|
125 | "scandit",
|
126 | "barcode",
|
127 | "qr",
|
128 | "scan",
|
129 | "scanner",
|
130 | "scanning",
|
131 | "code",
|
132 | "webassembly",
|
133 | "sdk",
|
134 | "javascript",
|
135 | "typescript"
|
136 | ],
|
137 | "files": [
|
138 | "package.json",
|
139 | ".browserslistrc",
|
140 | ".browserslistrc.worker",
|
141 | ".editorconfig",
|
142 | ".eslintrc.json",
|
143 | ".npmignore",
|
144 | ".nycrc.json",
|
145 | ".prettierrc.json",
|
146 | ".stylelintrc.json",
|
147 | "ava.config.js",
|
148 | "CHANGELOG.md",
|
149 | "example_background.html",
|
150 | "example.html",
|
151 | "LICENSE",
|
152 | "LICENSE_HEADER",
|
153 | "LICENSE_MANUAL",
|
154 | "README.md",
|
155 | "rollup.config.js",
|
156 | "tsconfig.json",
|
157 | "tsconfig.module.json",
|
158 | "tslint.json",
|
159 | "typedoc.json",
|
160 | "yarn.lock",
|
161 | "build/",
|
162 | "coverage/",
|
163 | "docs/",
|
164 | "src/",
|
165 | "typedoc-custom-theme/",
|
166 | "!**/.tsbuildinfo"
|
167 | ],
|
168 | "devDependencies": {
|
169 | "@babel/core": "^7.7.4",
|
170 | "@babel/plugin-transform-runtime": "^7.7.4",
|
171 | "@babel/preset-env": "^7.7.4",
|
172 | "@istanbuljs/nyc-config-typescript": "^0.1.3",
|
173 | "@types/howler": "^2.1.2",
|
174 | "@types/js-cookie": "^2.2.4",
|
175 | "@types/node": "^12.12.14",
|
176 | "@types/node-fetch": "^2.5.4",
|
177 | "@types/sinon": "^7.5.1",
|
178 | "@types/ua-parser-js": "^0.7.33",
|
179 | "@typescript-eslint/parser": "^2.10.0",
|
180 | "autoprefixer": "^9.7.3",
|
181 | "ava": "^2.4.0",
|
182 | "browser-env": "^3.3.0",
|
183 | "canvas": "^2.6.0",
|
184 | "chromedriver": "^78.0.1",
|
185 | "cross-env": "^6.0.3",
|
186 | "cssnano": "^4.1.10",
|
187 | "echo-cli": "^1.0.8",
|
188 | "eslint": "^6.7.2",
|
189 | "eslint-plugin-compat": "^3.3.0",
|
190 | "esm": "^3.2.25",
|
191 | "geckodriver": "^1.19.1",
|
192 | "http-server": "^0.12.0",
|
193 | "husky": "^3.1.0",
|
194 | "ignore-styles": "^5.0.1",
|
195 | "lint-staged": "^9.5.0",
|
196 | "markdown": "^0.5.0",
|
197 | "marked": "^0.7.0",
|
198 | "nightwatch": "^1.3.1",
|
199 | "node-fetch": "^2.6.0",
|
200 | "node-sass": "^4.13.0",
|
201 | "npm-run-all": "^4.1.5",
|
202 | "npm-scripts-info": "^0.3.9",
|
203 | "nyc": "^14.1.1",
|
204 | "open-cli": "^5.0.0",
|
205 | "postcss": "^7.0.23",
|
206 | "prettier": "^1.19.1",
|
207 | "replace": "^1.1.1",
|
208 | "rollup": "^1.27.8",
|
209 | "rollup-plugin-babel": "^4.3.3",
|
210 | "rollup-plugin-commonjs": "^10.1.0",
|
211 | "rollup-plugin-filesize": "^6.2.1",
|
212 | "rollup-plugin-node-resolve": "^5.2.0",
|
213 | "rollup-plugin-sass": "^1.2.2",
|
214 | "rollup-plugin-sizes": "^0.5.1",
|
215 | "rollup-plugin-sourcemaps": "^0.4.2",
|
216 | "rollup-plugin-terser": "^5.1.2",
|
217 | "rollup-plugin-typescript2": "^0.25.3",
|
218 | "rollup-plugin-visualizer": "^3.3.0",
|
219 | "selenium-server": "^3.141.59",
|
220 | "shx": "^0.3.2",
|
221 | "sinon": "^7.5.0",
|
222 | "source-map-support": "^0.5.16",
|
223 | "stylelint": "^12.0.0",
|
224 | "stylelint-config-standard": "^19.0.0",
|
225 | "ts-node": "^8.5.4",
|
226 | "tslint": "^5.20.1",
|
227 | "tslint-config-prettier": "^1.18.0",
|
228 | "tslint-eslint-rules": "^5.4.0",
|
229 | "tslint-microsoft-contrib": "^6.2.0",
|
230 | "tslint-misc-rules": "^3.5.1",
|
231 | "tslint-sonarts": "^1.9.0",
|
232 | "typedoc": "0.15.0",
|
233 | "typedoc-plugin-as-member-of": "^1.0.2",
|
234 | "typescript": "~3.5.3",
|
235 | "webworker-threads": "^0.7.17"
|
236 | },
|
237 | "dependencies": {
|
238 | "@babel/runtime-corejs2": "^7.7.4",
|
239 | "@juggle/resize-observer": "^2.5.0",
|
240 | "eventemitter3": "4.0.0",
|
241 | "howler": "^2.1.2",
|
242 | "js-cookie": "^2.2.1",
|
243 | "objectFitPolyfill": "^2.3.0",
|
244 | "tslib": "^1.10.0",
|
245 | "ua-parser-js": "^0.7.20",
|
246 | "webrtc-adapter": "^7.3.0"
|
247 | }
|
248 | }
|