This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
4,568 additions
and
2,167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ module.exports = { | |
'@babel/preset-env', | ||
{ | ||
targets: { | ||
node: 'current', | ||
node: 10, | ||
}, | ||
}, | ||
], | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
{ | ||
"name": "rouge.js", | ||
"version": "0.5.0", | ||
"license": "AGPL-3.0-only", | ||
"description": "Javascript library for interacting with the Rouge protocol", | ||
"main": "dist/rouge.cjs.js", | ||
"module": "dist/rouge.esm.js", | ||
"jsdelivr": "dist/rouge.umd.min.js", | ||
"files": [ | ||
"dist", | ||
"src", | ||
"examples" | ||
], | ||
"engines": { | ||
"node": ">=10.0.0" | ||
}, | ||
"repository": "TheRougeProject/rouge.js", | ||
"keywords": [ | ||
"rouge.js", | ||
"rge", | ||
|
@@ -21,26 +12,33 @@ | |
"voucher", | ||
"ticket" | ||
], | ||
"engines": { | ||
"node": ">=10.0.0" | ||
}, | ||
"main": "dist/rouge.cjs.js", | ||
"module": "dist/rouge.esm.js", | ||
"jsdelivr": "dist/rouge.umd.min.js", | ||
"files": [ | ||
"dist", | ||
"src", | ||
"examples" | ||
], | ||
"authors": [ | ||
"Christophe Le Bars <[email protected]>", | ||
"Valentin D. Guillois <[email protected]>" | ||
], | ||
"license": "AGPL-3.0-only", | ||
"repository": "TheRougeProject/rouge.js", | ||
"scripts": { | ||
"prepublish": "npm run build", | ||
"release": "release-it", | ||
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls", | ||
"example-node": "babel-node examples/node.js", | ||
"lint": "npm run lint:eslint", | ||
"lint:eslint": "eslint src/*.js test/*.js", | ||
"format": "prettier-standard --format src/**/*.js test/**/*.js", | ||
"lint": "prettier-standard --lint src/**/*.js test/**/*.js", | ||
"test": "jest --verbose", | ||
"test:coverage": "jest --coverage", | ||
"test:watch": "clear && jest --watch", | ||
"test:create": "jest --testPathIgnorePatterns='[]' -- __tests__/create.js", | ||
"lint:test": "npm run lint && npm run test:coverage", | ||
"build": "npm run lint:test && npm run build:rollup", | ||
"build:rollup": "rimraf dist/ && cross-env VERSION=$npm_package_version rollup -c" | ||
"build": "rimraf dist/ && cross-env VERSION=$npm_package_version rollup -c" | ||
}, | ||
"release-it": { | ||
"github": { | ||
|
@@ -60,36 +58,30 @@ | |
] | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.12.1", | ||
"@babel/core": "^7.12.3", | ||
"@babel/node": "^7.12.6", | ||
"@babel/preset-env": "^7.12.1", | ||
"@rollup/plugin-commonjs": "^16.0.0", | ||
"@babel/cli": "^7.12.10", | ||
"@babel/core": "^7.12.10", | ||
"@babel/node": "^7.12.10", | ||
"@babel/preset-env": "^7.12.11", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^10.0.0", | ||
"@rollup/plugin-replace": "^2.3.4", | ||
"babel-eslint": "^10.1.0", | ||
"babel-jest": "^26.6.3", | ||
"babel-plugin-relative-path-import": "^2.0.1", | ||
"coveralls": "^3.1.0", | ||
"cross-env": "^7.0.2", | ||
"eslint": "^7.13.0", | ||
"eslint-config-standard": "^16.0.1", | ||
"eslint-plugin-babel": "^5.3.1", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-standard": "^4.0.2", | ||
"cross-env": "^7.0.3", | ||
"dayjs": "^1.9.7", | ||
"ganache-core": "^2.13.1", | ||
"husky": "^4.3.0", | ||
"husky": "^4.3.6", | ||
"jest": "^26.6.3", | ||
"lint-staged": "^10.5.3", | ||
"nodemon": "^2.0.6", | ||
"release-it": "^14.2.1", | ||
"prettier-standard": "^16.4.1", | ||
"release-it": "^14.2.2", | ||
"rimraf": "^3.0.2", | ||
"dayjs": "^1.9.5", | ||
"rollup": "^2.33.1", | ||
"rollup": "^2.35.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"web3": "^1.2.11" | ||
"web3": "^1.3.1" | ||
}, | ||
"peerDependencies": { | ||
"web3-eth": "1.2.x", | ||
|
@@ -100,10 +92,15 @@ | |
"hex64": "^0.4.0", | ||
"rouge-protocol-solidity": "0.21.2" | ||
}, | ||
"lint-staged": { | ||
"src/**/*.js": [ | ||
"npm run format", | ||
"npm run lint" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm run lint:test", | ||
"pre-push": "npm run lint:test" | ||
"pre-commit": "lint-staged" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.