mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
143 lines
4.7 KiB
JSON
143 lines
4.7 KiB
JSON
{
|
|
"name": "@oceanprotocol/squid",
|
|
"version": "0.6.5",
|
|
"description": "JavaScript client library for Ocean Protocol",
|
|
"main": "./dist/node/squid.js",
|
|
"typings": "./dist/node/squid.d.ts",
|
|
"browser": "./dist/browser/squid.cjs2.min.js",
|
|
"scripts": {
|
|
"start": "npm link @oceanprotocol/keeper-contracts @oceanprotocol/secret-store-client && npm run build:watch",
|
|
"build": "npm run clean && npm run build:tsc && npm run build:dist",
|
|
"build:tsc": "tsc --sourceMap",
|
|
"build:metadata": "./scripts/get-metadata.js > src/metadata.json",
|
|
"build:dist": "cross-env NODE_ENV=production webpack",
|
|
"build:watch": "tsc -w",
|
|
"test": "mocha",
|
|
"test:watch": "mocha -w --watch-extensions js,ts,json",
|
|
"test:cover": "nyc --report-dir coverage/unit mocha",
|
|
"integration": "mocha --opts integration/mocha.opts",
|
|
"integration:pacific": "export NETWORK_NAME=pacific; mocha --opts integration/mocha.opts",
|
|
"integration:nile": "export NETWORK_NAME=nile; mocha --opts integration/mocha.opts",
|
|
"integration:duero": "export NETWORK_NAME=duero; mocha --opts integration/mocha.opts",
|
|
"integration:watch": "mocha -w --watch-extensions js,ts,json --opts integration/mocha.opts",
|
|
"integration:cover": "nyc --report-dir coverage/integration mocha --opts integration/mocha.opts",
|
|
"clean": "rm -rf ./dist/ ./doc/ ./.nyc_output",
|
|
"lint": "eslint --ignore-path .gitignore --ext .ts,.tsx .",
|
|
"format": "prettier --parser typescript --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx}'",
|
|
"doc": "typedoc --mode modules --out ./doc/ ./src/",
|
|
"doc:json": "./scripts/typedoc.js",
|
|
"merge-coverages": "npx lcov-result-merger \"coverage/*/lcov.info\" coverage/lcov.info",
|
|
"report-coverage": "npm run report-coverage:unit && npm run report-coverage:integration",
|
|
"report-coverage:unit": "cat coverage/unit/lcov.info | codacy-coverage --token 71ef0d15f6f04ac29b31d704b28f866a",
|
|
"report-coverage:integration": "cat coverage/integration/lcov.info | codacy-coverage --token 71ef0d15f6f04ac29b31d704b28f866a",
|
|
"run": "ts-node",
|
|
"release": "release-it --non-interactive",
|
|
"changelog": "auto-changelog -p",
|
|
"prepublishOnly": "npm run build",
|
|
"prebuild": "npm run build:metadata",
|
|
"prepare": "npm run build:metadata"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/oceanprotocol/squid-js.git"
|
|
},
|
|
"keywords": [],
|
|
"author": "Ocean Protocol <devops@oceanprotocol.com>",
|
|
"license": "Apache-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/oceanprotocol/squid-js/issues"
|
|
},
|
|
"homepage": "https://github.com/oceanprotocol/squid-js#readme",
|
|
"peerDependencies": {
|
|
"web3": "1.0.0-beta.37"
|
|
},
|
|
"dependencies": {
|
|
"@oceanprotocol/keeper-contracts": "^0.10.3",
|
|
"@oceanprotocol/secret-store-client": "0.0.15",
|
|
"bignumber.js": "^8.1.1",
|
|
"deprecated-decorator": "^0.1.6",
|
|
"node-fetch": "^2.6.0",
|
|
"save-file": "^2.3.1",
|
|
"uuid": "^3.3.2",
|
|
"web3": "1.0.0-beta.37",
|
|
"whatwg-url": "^7.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@release-it/bumper": "^1.0.3",
|
|
"@types/chai": "^4.1.7",
|
|
"@types/chai-spies": "^1.0.0",
|
|
"@types/mocha": "^5.2.7",
|
|
"@types/node": "^12.0.5",
|
|
"@types/node-fetch": "^2.3.5",
|
|
"@typescript-eslint/eslint-plugin": "^1.10.2",
|
|
"@typescript-eslint/parser": "^1.10.2",
|
|
"auto-changelog": "^1.13.0",
|
|
"chai": "^4.2.0",
|
|
"chai-spies": "^1.0.0",
|
|
"cross-env": "^5.2.0",
|
|
"eslint": "^5.16.0",
|
|
"eslint-config-oceanprotocol": "^1.3.0",
|
|
"eslint-config-prettier": "^5.0.0",
|
|
"eslint-plugin-prettier": "^3.1.0",
|
|
"lcov-result-merger": "^3.1.0",
|
|
"mocha": "^6.1.4",
|
|
"mock-local-storage": "^1.1.8",
|
|
"nyc": "^14.1.1",
|
|
"ora": "^3.4.0",
|
|
"prettier": "^1.18.2",
|
|
"source-map-support": "^0.5.12",
|
|
"truffle-hdwallet-provider": "^1.0.10",
|
|
"ts-node": "^8.2.0",
|
|
"typedoc": "^0.15.0",
|
|
"typescript": "^3.5.2",
|
|
"uglifyjs-webpack-plugin": "^2.1.3",
|
|
"webpack": "^4.33.0",
|
|
"webpack-cli": "^3.3.2",
|
|
"webpack-merge": "^4.2.1"
|
|
},
|
|
"nyc": {
|
|
"include": [
|
|
"src/**/*.ts"
|
|
],
|
|
"extension": [
|
|
".ts"
|
|
],
|
|
"require": [
|
|
"ts-node/register"
|
|
],
|
|
"reporter": [
|
|
"text-summary",
|
|
"lcov",
|
|
"html"
|
|
],
|
|
"sourceMap": true,
|
|
"instrument": true
|
|
},
|
|
"release-it": {
|
|
"hooks": {
|
|
"before:init": "npm run doc:json",
|
|
"after:bump": "npm run changelog"
|
|
},
|
|
"plugins": {
|
|
"@release-it/bumper": {
|
|
"out": [
|
|
"package.json",
|
|
"package-lock.json"
|
|
]
|
|
}
|
|
},
|
|
"git": {
|
|
"tagName": "v${version}"
|
|
},
|
|
"github": {
|
|
"release": true,
|
|
"assets": [
|
|
"dist/squid-js.json"
|
|
]
|
|
},
|
|
"npm": {
|
|
"publish": false
|
|
}
|
|
}
|
|
}
|