-
Notifications
You must be signed in to change notification settings - Fork 1.2k
docs: fix js dependencies in webpack example #1027
Conversation
@@ -11,13 +11,17 @@ | |||
"babel-core": "^6.24.1", | |||
"babel-loader": "^7.0.0", | |||
"babel-preset-react": "^6.24.1", | |||
"babel-preset-stage-0": "^6.24.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wha does the babel-preset-stage-0
do and why do we need it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why it was included in the .babelrc
https://github.com/ipfs/js-ipfs/blob/master/examples/browser-webpack/.babelrc
We can perhaps take that away if that wasn't needed too.
"react-hot-loader": "^1.3.1", | ||
"webpack": "^2.5.1", | ||
"webpack-dev-server": "^2.4.5" | ||
}, | ||
"dependencies": { | ||
"ipfs": "^0.26.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still want to use IPFS from this repo - it needs to be something like:
"dependencies": {
"ipfs": "../../../src/core",
....
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one should be correct
"dependencies": {
"ipfs": "file:../../",
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, nice! Much better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs remaining comments to be addressed.
@@ -2,8 +2,8 @@ | |||
|
|||
const React = require('react') | |||
const Buffer = require('safe-buffer').Buffer | |||
const IPFS = require('../../../../src/core') // replace this by line below | |||
// const IPFS = require('ipfs') | |||
// const IPFS = require('../../../../src/core') // replace this by line below |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this line now.
@dryajov can you investigate and test if these changes are necessary? I've already run the examples just fine. |
looking into it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applied my CR :)
* docs: fix js dependencies in webpack example * Update app.js * Update package.json * Update package.json * Update package.json * Update app.js
example won't run unless these modules are installed.