scandit-sdk
Version:
Scandit Barcode Scanner SDK for the Web
249 lines (248 loc) • 10.9 kB
JSON
{
"name": "scandit-sdk",
"version": "4.6.1",
"description": "Scandit Barcode Scanner SDK for the Web",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
"module": "build/module/index.js",
"browser": "build/browser/index.min.js",
"unpkg": "build/browser/index.min.js",
"sideEffects": [
"**/*.css",
"**/*.scss"
],
"author": "Scandit - Lorenzo Wölckner <lorenzo@scandit.com>",
"contributors": [
{
"name": "Lorenzo Wölckner",
"email": "lorenzo@scandit.com"
}
],
"homepage": "https://www.scandit.com/products/sdk-web/",
"license": "SEE LICENSE IN LICENSE",
"bugs": {
"email": "support@scandit.com"
},
"repository": {
"type": "git",
"url": "https://github.com/scandit"
},
"scripts": {
"info": "npm-scripts-info",
"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\"",
"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\"",
"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\"",
"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\"",
"build": "run-p --print-label --aggregate-output build:* copy-engine-sdk",
"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...')",
"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...')",
"clean:browser": "shx rm -rf build/browser",
"clean:main": "shx rm -rf build/main",
"clean:module": "shx rm -rf build/module",
"clean": "run-p --print-label clean:*",
"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\"",
"coverage:check": "nyc report && nyc check-coverage --lines 90 --functions 90 --branches 90",
"coverage:generate": "nyc report --reporter=lcov",
"coverage": "run-s test coverage:generate && open-cli coverage/lcov-report/index.html",
"describe": "npm-scripts-info",
"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",
"docs:html": "shx rm -rf docs && typedoc --options typedoc.json && run-s docs:copy-special",
"docs": "run-s docs:html && open-cli docs/index.html",
"e2e:serve": "http-server ./ -a 127.0.0.1 -p 2674 -s",
"e2e:run": "nightwatch",
"e2e": "run-p -r e2e:serve \"e2e:run {@}\" --",
"fix:code": "tslint --fix --project . && prettier --write --loglevel warn \"src/**/*.ts\" \"e2e/**/*.js\" \"config/**/*.{js,json}\"",
"fix:style": "stylelint --fix --syntax scss src/**/*.scss",
"fix": "run-p --print-label --aggregate-output fix:*",
"license": "shx rm LICENSE && shx cp LICENSE_HEADER LICENSE && yarn licenses generate-disclaimer --production >> LICENSE && cat LICENSE_MANUAL >> LICENSE && run-s docs:copy-special",
"lint:worker-compat": "BROWSERSLIST_CONFIG=.browserslistrc.worker yarn eslint src/lib/workers/engineWorker.ts",
"lint:tsc": "tsc -p tsconfig.json --noEmit",
"lint:tslint": "tslint --project .",
"lint:stylelint": "stylelint --syntax scss src/**/*.scss",
"lint": "run-p --print-label --aggregate-output lint:*",
"prepend:engine-version": "cross-env yarn replace --quiet --count --multiline false \"^\" \"wasmJSVersion=\\'$npm_package_version\\';\"",
"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))",
"postversion": "run-s clean build && npm pack --dry-run && echo-cli \"Run 'npm publish' to publish files when ready\"",
"release": "run-s reset && yarn version",
"replace:engine-version": "cross-env yarn replace --quiet --count \"%VER%\" \"$npm_package_version\"",
"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')\"",
"reset": "git clean -dfx && git reset --hard && yarn --frozen-lockfile",
"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",
"test": "run-s build:main copy-engine-sdk \"replace:* build/main/lib/workers/engineWorker.js\" && nyc --silent ava"
},
"scripts-info": {
"info": "Display information about the scripts",
"clean": "Remove build and test output folders",
"build": "Build (rebuild) and create all output modules",
"fix": "Try to automatically fix all linting problems",
"lint": "Lint all source files",
"test": "Build (rebuild) main library and run unit tests",
"e2e": "Run E2E tests. You must specify a comma-separated list of browsers with '-e chrome,firefox,safari'",
"coverage": "Run tests, generate HTML coverage report, and open it in a browser",
"docs": "Generate HTML API documentation and open it in a browser",
"license": "Generate LICENSE file with copyright and licenses of dependencies",
"reset": "Delete all untracked files, reset the repo to the last commit and install all needed packages",
"size-info": "Build (rebuild) browser UMD library and show bundle size information",
"release": "Clean, build, test, generate and check coverage, generate license, generate docs and prepare release"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "yarn lint"
}
},
"lint-staged": {
"src/**/*.ts": [
"tslint --fix --project .",
"prettier --write",
"git add"
],
"e2e/**/*.js": [
"prettier --write",
"git add"
],
"./*.{js,json}": [
"prettier --write",
"git add"
],
"src/**/*.scss": [
"stylelint --syntax scss --fix",
"git add"
]
},
"standard-version": {
"scripts": {
"postbump": "echo-cli 'Rebuilding project for updated version number' && yarn build"
},
"skip": {
"changelog": true
}
},
"engines": {
"node": ">=8"
},
"keywords": [
"scandit",
"barcode",
"qr",
"scan",
"scanner",
"scanning",
"code",
"webassembly",
"sdk",
"javascript",
"typescript"
],
"files": [
"package.json",
".browserslistrc",
".browserslistrc.worker",
".editorconfig",
".eslintrc.json",
".npmignore",
".nycrc.json",
".prettierrc.json",
".stylelintrc.json",
"ava.config.js",
"CHANGELOG.md",
"example_background.html",
"example.html",
"LICENSE",
"LICENSE_HEADER",
"LICENSE_MANUAL",
"README.md",
"rollup.config.js",
"tsconfig.json",
"tsconfig.module.json",
"tslint.json",
"typedoc.json",
"yarn.lock",
"build/",
"coverage/",
"docs/",
"src/",
"typedoc-custom-theme/",
"!**/.tsbuildinfo"
],
"devDependencies": {
"@babel/core": "^7.7.4",
"@babel/plugin-transform-runtime": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@istanbuljs/nyc-config-typescript": "^0.1.3",
"@types/howler": "^2.1.2",
"@types/js-cookie": "^2.2.4",
"@types/node": "^12.12.14",
"@types/node-fetch": "^2.5.4",
"@types/sinon": "^7.5.1",
"@types/ua-parser-js": "^0.7.33",
"@typescript-eslint/parser": "^2.10.0",
"autoprefixer": "^9.7.3",
"ava": "^2.4.0",
"browser-env": "^3.3.0",
"canvas": "^2.6.0",
"chromedriver": "^78.0.1",
"cross-env": "^6.0.3",
"cssnano": "^4.1.10",
"echo-cli": "^1.0.8",
"eslint": "^6.7.2",
"eslint-plugin-compat": "^3.3.0",
"esm": "^3.2.25",
"geckodriver": "^1.19.1",
"http-server": "^0.12.0",
"husky": "^3.1.0",
"ignore-styles": "^5.0.1",
"lint-staged": "^9.5.0",
"markdown": "^0.5.0",
"marked": "^0.7.0",
"nightwatch": "^1.3.1",
"node-fetch": "^2.6.0",
"node-sass": "^4.13.0",
"npm-run-all": "^4.1.5",
"npm-scripts-info": "^0.3.9",
"nyc": "^14.1.1",
"open-cli": "^5.0.0",
"postcss": "^7.0.23",
"prettier": "^1.19.1",
"replace": "^1.1.1",
"rollup": "^1.27.8",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-filesize": "^6.2.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sass": "^1.2.2",
"rollup-plugin-sizes": "^0.5.1",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-typescript2": "^0.25.3",
"rollup-plugin-visualizer": "^3.3.0",
"selenium-server": "^3.141.59",
"shx": "^0.3.2",
"sinon": "^7.5.0",
"source-map-support": "^0.5.16",
"stylelint": "^12.0.0",
"stylelint-config-standard": "^19.0.0",
"ts-node": "^8.5.4",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"tslint-eslint-rules": "^5.4.0",
"tslint-microsoft-contrib": "^6.2.0",
"tslint-misc-rules": "^3.5.1",
"tslint-sonarts": "^1.9.0",
"typedoc": "0.15.0",
"typedoc-plugin-as-member-of": "^1.0.2",
"typescript": "~3.5.3",
"webworker-threads": "^0.7.17"
},
"dependencies": {
"@babel/runtime-corejs2": "^7.7.4",
"@juggle/resize-observer": "^2.5.0",
"eventemitter3": "4.0.0",
"howler": "^2.1.2",
"js-cookie": "^2.2.1",
"objectFitPolyfill": "^2.3.0",
"tslib": "^1.10.0",
"ua-parser-js": "^0.7.20",
"webrtc-adapter": "^7.3.0"
}
}