This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: split core, http api server and cli out from ipfs module
Decomposes the main ipfs module into separate core, http api server and cli modules which encapsulate the different parts of ipfs. This allows us to: 1. Omit modules/code/depencies if they aren't going to be used 2. Reduces the amount of tests being run in series I'm hoping this will get us to sub-15 minute builds. Fixes #2678 Fixes #2877
- Loading branch information
1 parent
3ff833d
commit 050e84b
Showing
611 changed files
with
1,339 additions
and
3,031 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
"name": "ipfs-cli", | ||
"version": "0.0.1", | ||
"description": "JavaScript implementation of the IPFS specification", | ||
"keywords": [ | ||
"IPFS" | ||
], | ||
"homepage": "https://github.com/ipfs/js-ipfs/tree/master/packages/ipfs#readme", | ||
"bugs": "https://github.com/ipfs/js-ipfs/issues", | ||
"license": "(Apache-2.0 OR MIT)", | ||
"leadMaintainer": "Alex Potsides <alex@achingbrain.net>", | ||
"files": [ | ||
"src", | ||
"dist" | ||
], | ||
"main": "src/index.js", | ||
"browser": { | ||
"./src/core/runtime/init-assets-nodejs.js": "./src/core/runtime/init-assets-browser.js", | ||
"./src/core/runtime/config-nodejs.js": "./src/core/runtime/config-browser.js", | ||
"./src/core/runtime/dns-nodejs.js": "./src/core/runtime/dns-browser.js", | ||
"./src/core/runtime/libp2p-nodejs.js": "./src/core/runtime/libp2p-browser.js", | ||
"./src/core/runtime/libp2p-pubsub-routers-nodejs.js": "./src/core/runtime/libp2p-pubsub-routers-browser.js", | ||
"./src/core/runtime/preload-nodejs.js": "./src/core/runtime/preload-browser.js", | ||
"./src/core/runtime/repo-nodejs.js": "./src/core/runtime/repo-browser.js", | ||
"./src/core/runtime/ipld-nodejs.js": "./src/core/runtime/ipld-browser.js", | ||
"./test/utils/create-repo-nodejs.js": "./test/utils/create-repo-browser.js", | ||
"ipfs-utils/src/files/glob-source": false | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ipfs/js-ipfs.git" | ||
}, | ||
"scripts": { | ||
"lint": "aegir lint", | ||
"build": "aegir build", | ||
"test": "aegir test -t node", | ||
"coverage": "nyc --reporter=text --reporter=lcov npm run test:node", | ||
"clean": "rm -rf ./dist", | ||
"dep-check": "aegir dep-check" | ||
}, | ||
"dependencies": { | ||
"bignumber.js": "^9.0.0", | ||
"byteman": "^1.3.5", | ||
"cid-tool": "^1.0.0", | ||
"cids": "^1.0.0", | ||
"debug": "^4.1.1", | ||
"dlv": "^1.1.3", | ||
"electron-webrtc": "^0.3.0", | ||
"err-code": "^2.0.3", | ||
"execa": "^4.0.3", | ||
"get-folder-size": "^2.0.1", | ||
"ipfs-core": "^0.0.1", | ||
"ipfs-core-utils": "^0.4.0", | ||
"ipfs-http-client": "^47.0.1", | ||
"ipfs-http-server": "^0.0.1", | ||
"ipfs-repo": "^6.0.3", | ||
"ipfs-utils": "^3.0.0", | ||
"ipld-dag-cbor": "^0.17.0", | ||
"ipld-dag-pb": "^0.20.0", | ||
"it-all": "^1.0.2", | ||
"it-concat": "^1.0.1", | ||
"it-first": "^1.0.2", | ||
"it-glob": "0.0.8", | ||
"it-pipe": "^1.1.0", | ||
"jsondiffpatch": "^0.4.1", | ||
"just-safe-set": "^2.1.0", | ||
"libp2p": "^0.29.0", | ||
"libp2p-crypto": "^0.18.0", | ||
"libp2p-delegated-content-routing": "^0.7.0", | ||
"libp2p-delegated-peer-routing": "^0.7.0", | ||
"libp2p-webrtc-star": "^0.20.1", | ||
"mafmt": "^8.0.0", | ||
"multiaddr": "^8.0.0", | ||
"multiaddr-to-uri": "^6.0.0", | ||
"multibase": "^3.0.0", | ||
"multihashing-async": "^2.0.1", | ||
"parse-duration": "^0.4.4", | ||
"peer-id": "^0.14.1", | ||
"pretty-bytes": "^5.4.1", | ||
"progress": "^2.0.3", | ||
"stream-to-it": "^0.2.2", | ||
"streaming-iterables": "^5.0.2", | ||
"uint8arrays": "^1.1.0", | ||
"yargs": "^16.0.3" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^26.0.0", | ||
"nanoid": "^3.1.12", | ||
"ncp": "^2.0.0", | ||
"rimraf": "^3.0.2", | ||
"sinon": "^9.0.3", | ||
"string-argv": "^0.3.1", | ||
"temp-write": "^4.0.0", | ||
"wrtc": "^0.4.6" | ||
}, | ||
"optionalDependencies": { | ||
"prom-client": "^12.0.0", | ||
"prometheus-gc-stats": "^0.6.0" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ges/ipfs/src/cli/commands/bitswap/stat.js → ...ges/ipfs-cli/src/commands/bitswap/stat.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/ipfs/src/cli/commands/bitswap/unwant.js → ...s/ipfs-cli/src/commands/bitswap/unwant.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ipfs/src/cli/commands/bitswap/wantlist.js → ...ipfs-cli/src/commands/bitswap/wantlist.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/ipfs/src/cli/commands/block/stat.js → packages/ipfs-cli/src/commands/block/stat.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
packages/ipfs/src/cli/commands/object/get.js → packages/ipfs-cli/src/commands/object/get.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ges/ipfs/src/cli/commands/object/links.js → ...ges/ipfs-cli/src/commands/object/links.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/ipfs/src/cli/commands/object/new.js → packages/ipfs-cli/src/commands/object/new.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.