ordercloud-javascript-sdk
Version:
The offical Javascript SDK for the Ordercloud ecommerce API
85 lines (84 loc) • 2.73 kB
JSON
{
"name": "ordercloud-javascript-sdk",
"description": "The offical Javascript SDK for the Ordercloud ecommerce API",
"author": "Four51 OrderCloud",
"version": "11.1.1",
"main": "dist/index.js",
"umd:main": "dist/index.umd.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"unpkg": "dist/index.umd.js",
"homepage": "https://ordercloud.io/",
"bugs": {
"url": "https://github.com/ordercloud-api/ordercloud-javascript-sdk/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/ordercloud-api/ordercloud-javascript-sdk"
},
"keywords": [
"ordercloud",
"four51",
"b2b",
"b2c",
"javascript",
"typescript",
"ecommerce",
"api",
"headless",
"sdk"
],
"license": "MIT",
"files": [
"dist/"
],
"engines": {
"node": ">=0.10"
},
"scripts": {
"build": "run-s build:sdk build:docs",
"clean:dist": "rm -rf dist",
"prebuild:sdk": "npm run clean:dist && npm run generate-sdk && npm run beautify",
"build:sdk": "rollup --config",
"postbuild:sdk": "shx cp dist/index.d.ts dist/index.esm.d.ts",
"build:docs": "typedoc",
"test": "npm run test:browser && npm run test:server",
"test:browser": "jest --config tests/config/browser.config.js",
"test:server": "jest --config tests/config/server.config.js",
"beautify": "prettier --write codegen/**/*.ts --loglevel silent",
"generate-sdk": "npm run buildCodegen && oc-codegen -t codegen/templates -o ./src -b codegen/handlebars-extensions -k codegen/hooks.js -c",
"debug-template-data": "npm run buildCodegen && oc-codegen -d -k codegen/hooks.js > templateData.json",
"buildCodegen": "tsc --p codegen/tsconfig.json",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@ordercloud/oc-codegen": "0.0.1-26",
"@rollup/plugin-terser": "^0.4.4",
"@types/jest": "^25.1.3",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.21.0",
"add": "^2.0.6",
"axios": "^1.1.3",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-jest": "^23.8.1",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lodash": "^4.17.20",
"mockdate": "^3.0.2",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"rollup": "^2.79.2",
"rollup-plugin-typescript2": "^0.26.0",
"shx": "^0.3.2",
"ts-jest": "^29.2.5",
"typedoc": "^0.23.19",
"typedoc-plugin-missing-exports": "^1.0.0",
"typescript": "^4.6.0",
"yarn": "^1.22.0"
},
"peerDependencies": {
"axios": "^1.1.3"
}
}