Skip to content

Commit

Permalink
Merge pull request #27 from 0xPolygon/fix-version
Browse files Browse the repository at this point in the history
rmv: webpack
  • Loading branch information
py-zoid authored May 28, 2024
2 parents 855c89d + 0cdb008 commit cf95843
Show file tree
Hide file tree
Showing 18 changed files with 20,015 additions and 18,810 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion webpack/licence.js → license.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const package = require('../package.json');
const package = require('./package.json');
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth() + 1; //January is 0!
Expand Down
15,710 changes: 6,095 additions & 9,615 deletions package-lock.json

Large diffs are not rendered by default.

37 changes: 18 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,17 @@
],
"scripts": {
"clean": "rimraf dist",
"build": "npm run build:dev",
"build:link": "npm run build && npm link",
"build:webpack": "npm run lint && webpack --config webpack/webpack.all.config.js",
"build:pack": "npm run clean && npm run build:dev && npm pack",
"build:dev": "cross-env NODE_ENV=development npm run build:webpack",
"build:prod": "cross-env NODE_ENV=production npm run build:webpack",
"deploy": "npm run clean && npm run build:dev && npm run build:prod",
"build:webpack": "webpack --env build",
"build": "tsc",
"build:link": "npm run build:webpack && npm link",
"deploy": "npm run clean && npm run build:webpack",
"prepublishOnly": "npm run deploy",
"lint": "tslint src/**/*.ts",
"lint:fix": "tslint src/**/*.ts --fix",
"build:test": "npm run build:pack && npm run test",
"test": "cd test && npm run install:lib:test",
"debug": "npm run build:pack && cd test && npm run install:lib:debug",
"testrpc": "ganache-cli --mnemonic 'clock radar mass judge dismiss just intact mind resemble fringe diary casino' --gasLimit 13000000",
"install:example": "cd examples && npm i ../maticnetwork-lxly.js-0.0.1.tgz --no-save"
"build:test": "npm run build:link && npm run test",
"test": "cd test && npm run link:lib:test",
"debug": "npm run build:webpack && cd test && npm run link:lib:debug",
"testrpc": "ganache-cli --mnemonic 'clock radar mass judge dismiss just intact mind resemble fringe diary casino' --gasLimit 13000000"
},
"repository": {
"type": "git",
Expand All @@ -47,23 +43,26 @@
},
"homepage": "https://github.com/0xpolygon/lxly.js#readme",
"dependencies": {
"assert": "^2.1.0",
"buffer": "^6.0.3",
"ethereumjs-util": "^7.1.5",
"node-fetch": "^2.7.0"
"i": "^0.3.7",
"node-fetch": "^2.7.0",
"npm": "^10.5.0",
"stream": "^0.0.2",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/node-fetch": "^2.6.11",
"@typescript-eslint/parser": "^7.3.1",
"copy-webpack-plugin": "^6.1.1",
"cross-env": "^7.0.3",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"smart-banner-webpack-plugin": "^3.0.1",
"ts-loader": "^8.0.0",
"tslint": "^6.1.3",
"typescript": "^4.6.3",
"webpack": "^4.47.0",
"webpack-cli": "^4.10.0",
"webpack-merge": "^4.2.2"
"typescript": "^4.9.5"
},
"browserslist": [
"> 1%",
Expand Down
30 changes: 0 additions & 30 deletions src/tsconfig.json

This file was deleted.

4 changes: 2 additions & 2 deletions test/debug_web3.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const execute = async () => {
// // getBalance on network 0
// console.log('balance of N0ERC20Token is', await N0ERC20Token.getBalance(from));

// // getEtherBalance on network 0
// console.log('balance of N0EtherToken is', await N0EtherToken.getBalance(from));
// getEtherBalance on network 0
console.log('balance of N0EtherToken is', await N0EtherToken.getBalance(from));

// // getBalance on network 1
// console.log('balance of N1ERC20Token is', await N1ERC20Token.getBalance(from));
Expand Down
12 changes: 0 additions & 12 deletions test/index.html

This file was deleted.

16 changes: 0 additions & 16 deletions test/install_lib.js

This file was deleted.

45 changes: 0 additions & 45 deletions test/karma.conf.js

This file was deleted.

Loading

0 comments on commit cf95843

Please sign in to comment.