Skip to content

Commit

Permalink
feat(*): add dist (umd), add webpack, lint, build, optimise npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
OsoianMarcel committed Apr 17, 2019
1 parent 05aac53 commit 713d240
Show file tree
Hide file tree
Showing 7 changed files with 232 additions and 187 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
31 changes: 31 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"env": {
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2017
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
},
"plugins": [
"mocha"
]
}
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.idea
node_modules
yarn.lock
build
/.idea
/node_modules
/dist
yarn.lock
30 changes: 24 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
{
"name": "erc20-contract-js",
"version": "1.2.0",
"version": "1.3.0",
"description": "Simple JS library used to manipulate with ERC-20 token contracts",
"keywords": [
"ethereum",
"web3",
"javascript",
"erc20",
"contract",
"abi",
"javascript",
"web3",
"ethereum",
"eth",
"token",
"contract"
],
"main": "index.js",
"unpkg": "dist/erc20-contract-js.min.js",
"files": [
"/src",
"/dist"
],
"repository": "https://github.com/OsoianMarcel/erc20-contract-js.git",
"homepage": "https://github.com/OsoianMarcel/erc20-contract-js",
"bugs": {
Expand All @@ -21,12 +30,21 @@
"web3": "^1.0.0-beta.30"
},
"devDependencies": {
"@babel/core": "^7.4.3",
"@babel/preset-env": "^7.4.3",
"babel-loader": "^8.0.5",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"eslint": "^5.16.0",
"eslint-plugin-mocha": "^5.3.0",
"mocha": "^5.0.1",
"web3": "^1.0.0-beta.30"
"web3": "^1.0.0-beta.30",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.0"
},
"scripts": {
"test": "mocha"
"test": "mocha",
"build": "webpack",
"lint": "eslint ./src"
}
}
Loading

0 comments on commit 713d240

Please sign in to comment.