From e345b2ee5cbd25aad38ad38854ca4620b4f27da5 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Mon, 15 Jan 2018 17:10:04 +0100 Subject: [PATCH] WIP webpack full build --- .travis.yml | 5 +- README.md | 8 +- bin/chlu-service-node.js | 22 ++- dist/ChluIPFS.min.js | 2 +- examples/customer.html | 9 - examples/serviceNode.html | 3 - package-lock.json | 338 +++++++++++++++++++++++++------------- package.json | 12 +- tests/utils/ipfs.js | 2 +- webpack.config.js | 39 ++++- 10 files changed, 292 insertions(+), 148 deletions(-) diff --git a/.travis.yml b/.travis.yml index 02d95ec..84dd698 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,10 @@ language: node_js node_js: - "8" -script: npm run test +script: + - npm run lint + - npm run build + - npm run test before_script: - export DISPLAY=:99.0 diff --git a/README.md b/README.md index 2f5fc7e..bd416b6 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,13 @@ If you are in development mode, you can pass an option `mock: true` when initial ### In the Browser -You can require/import this module from the browser through Webpack. Check out [this example](https://github.com/ipfs/js-ipfs/tree/master/examples/browser-webpack) for the additional configuration needed by js-ipfs. +You can require/import this module from the browser through Webpack, look at the Webpack configuration of this project to figure out what you need. +By default webpack will load the prebuilt minified library to avoid issues in front-end projects. -If you don't have webpack, we also have a prebuilt minified version of the library that you can include in a ` - - -