mirror of
https://github.com/fluencelabs/dweb-transports
synced 2025-03-15 18:30:49 +00:00
Reorganize files around simpler pattern
This commit is contained in:
parent
915d091ff5
commit
a77a13d857
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
node_modules
|
node_modules
|
||||||
|
dweb_transports_bundle.js
|
||||||
|
9
index.js
Normal file
9
index.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// Order is significant as should search earlier ones first
|
||||||
|
// put IPFS before Webtorrent for showcasing, as Webtorrent works in some cases IPFS doesnt so that way we exercise both
|
||||||
|
const DwebTransports = require("./Transports.js");
|
||||||
|
require("./TransportHTTP.js"); // Can access via window.DwebTransports._transportclasses["HTTP"]
|
||||||
|
require("./TransportIPFS.js");
|
||||||
|
require("./TransportYJS.js");
|
||||||
|
require("./TransportWEBTORRENT.js");
|
||||||
|
window.DwebTransports = DwebTransports;
|
||||||
|
exports = module.exports = DwebTransports;
|
35
package.json
35
package.json
@ -1,7 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "dweb-transports",
|
"author": {
|
||||||
"version": "0.0.1",
|
"name": "Mitra Ardron",
|
||||||
"description": "Internet Archive Decentralized Web Transports Library",
|
"email": "mitra@archive.org",
|
||||||
|
"url": "http://www.mitra.biz"
|
||||||
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/mitra42/dweb-transports/issues"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cids": "latest",
|
"cids": "latest",
|
||||||
"ipfs": "latest",
|
"ipfs": "latest",
|
||||||
@ -18,21 +23,25 @@
|
|||||||
"y-ipfs-connector": "latest",
|
"y-ipfs-connector": "latest",
|
||||||
"y-indexeddb": "latest"
|
"y-indexeddb": "latest"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"description": "Internet Archive Decentralized Web Transports Library",
|
||||||
"license": "AGPL-3.0",
|
|
||||||
"author": {
|
|
||||||
"name": "Mitra Ardron",
|
|
||||||
"email": "mitra@archive.org",
|
|
||||||
"url": "http://www.mitra.biz"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browserify": "^14.5.0",
|
"browserify": "^14.5.0",
|
||||||
"watchify": "^3.11.0"
|
"watchify": "^3.11.0"
|
||||||
},
|
},
|
||||||
|
"homepage": "https://github.com/mitra42/dweb-transports#readme",
|
||||||
|
"keywords": [],
|
||||||
|
"license": "AGPL-3.0",
|
||||||
|
"main": "index.js",
|
||||||
|
"name": "dweb-transports",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git://github.com/mitra42/dweb-transports.git"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"bundle": "cd src; browserify ./dweb-transports_all.js > ../dist/dweb_transports_bundle.js",
|
"bundle": "browserify ./index.js > ./dist/dweb_transports_bundle.js",
|
||||||
"watch": "watchify src/dweb-transports_all.js -o dist/dweb_transports_bundle.js --verbose",
|
"watch": "watchify ./index.js -o dist/dweb_transports_bundle.js --verbose",
|
||||||
"test": "cd src; node ./test.js",
|
"test": "cd src; node ./test.js",
|
||||||
"help": "echo 'test (test it)'; echo 'bundle (packs into ../examples)'; echo 'watch: continually bundles whenever files change'"
|
"help": "echo 'test (test it)'; echo 'bundle (packs into ../examples)'; echo 'watch: continually bundles whenever files change'"
|
||||||
}
|
},
|
||||||
|
"version": "0.0.1"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user