Skip to content

Commit

Permalink
feat: generate standalone maticjs build
Browse files Browse the repository at this point in the history
  • Loading branch information
shahbhavir committed Mar 26, 2019
1 parent 81d9226 commit dddd936
Show file tree
Hide file tree
Showing 8 changed files with 184 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules
lib
dist
.DS_Store
*.log
dump.rdb
Expand Down
42 changes: 42 additions & 0 deletions dist/matic.js

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions dist/matic.node.js

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions dist/matic.umd.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
84 changes: 69 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"chai": "3.5.0",
"eslint": "5.6.0",
"eslint-loader": "2.1.1",
"eth-lib": "0.2.7",
"ganache-cli": "6.1.8",
"husky": "1.1.1",
"lint-staged": "7.3.0",
Expand Down
12 changes: 11 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,14 @@ const serverConfig = {
},
}

module.exports = [clientConfig, serverConfig]
const standaloneConfig = {
...clientConfig,
output: {
...clientConfig.output,
library: 'Matic',
filename: `${libraryName}.js`,
},
externals: {},
}

module.exports = [clientConfig, serverConfig, standaloneConfig]

0 comments on commit dddd936

Please sign in to comment.