use npm dependencies management for ipfs, web3 and orbit, and remove them from js/ folder.

This commit is contained in:
Antonio Tenorio Fornés 2017-06-13 13:06:32 +02:00
parent 46e18e34c5
commit 6f93d7e824
6 changed files with 5 additions and 77951 deletions

61
js/ipfs-api.min.js vendored

File diff suppressed because one or more lines are too long

61676
js/ipfs.js

File diff suppressed because one or more lines are too long

60
js/orbit.min.js vendored

File diff suppressed because one or more lines are too long

16151
js/web3.js

File diff suppressed because it is too large Load Diff

View File

@ -233,15 +233,15 @@ Config.prototype.loadFiles = function(files) {
if (file === 'embark.js') {
if (self.blockchainConfig.enabled || self.communicationConfig.provider === 'whisper' || self.communicationConfig.available_providers.indexOf('whisper') >= 0) {
readFiles.push({filename: 'web3.js', content: fs.readFileSync(fs.embarkPath("js/web3.js")).toString(), path: fs.embarkPath("js/web3.js")});
readFiles.push({filename: 'web3.js', content: fs.readFileSync(fs.embarkPath("node_modules/web3/dist/web3.min.js")).toString(), path: fs.embarkPath("node_modules/web3/dist/web3.min.js")});
}
if (self.storageConfig.enabled && (self.storageConfig.provider === 'ipfs' || self.storageConfig.available_providers.indexOf('ipfs') >= 0)) {
readFiles.push({filename: 'ipfs.js', content: fs.readFileSync(fs.embarkPath("js/ipfs.js")).toString(), path: fs.embarkPath("js/ipfs.js")});
readFiles.push({filename: 'ipfs.js', content: fs.readFileSync(fs.embarkPath("node_modules/ipfs-api/dist/index.min.js")).toString(), path: fs.embarkPath("node_modules/ipfs-api/dist/index.min.js")});
}
if (self.communicationConfig.enabled && (self.communicationConfig.provider === 'orbit' || self.communicationConfig.available_providers.indexOf('orbit') >= 0)) {
readFiles.push({filename: 'orbit.js', content: fs.readFileSync(fs.embarkPath("js/orbit.min.js")).toString(), path: fs.embarkPath("js/orbit.min.js")});
readFiles.push({filename: 'orbit.js', content: fs.readFileSync(fs.embarkPath("node_modules/orbit-db/dist/orbitdb.min.js")).toString(), path: fs.embarkPath("node_modules/orbit-db/dist/orbitdb.min.js")});
}
readFiles.push({filename: 'embark.js', content: fs.readFileSync(fs.embarkPath("js/build/embark.bundle.js")).toString(), path: fs.embarkPath("js/build/embark.bundle.js")});

View File

@ -26,7 +26,9 @@
"finalhandler": "^0.5.0",
"fs-extra": "^2.0.0",
"globule": "^1.1.0",
"ipfs-api": "^14.0.3",
"merge": "^1.2.0",
"orbit-db": "^0.17.3",
"promptly": "^2.1.0",
"serve-static": "^1.11.1",
"shelljs": "^0.5.0",