generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create submodule * update ci * updates * update readme * Update README.md Co-authored-by: Diane Huxley <[email protected]> * Update README.md Co-authored-by: Diane Huxley <[email protected]> * Update README.md Co-authored-by: Diane Huxley <[email protected]> --------- Co-authored-by: Diane Huxley <[email protected]>
- Loading branch information
1 parent
474cc47
commit 25f1d03
Showing
16 changed files
with
49 additions
and
638 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "web5-spec"] | ||
path = web5-spec | ||
url = https://github.com/TBD54566975/web5-spec |
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 |
---|---|---|
|
@@ -48,6 +48,23 @@ Interested in contributing instantly? You can make your updates directly without | |
|
||
[![Button to click and edit code in CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/github/TBD54566975/web5-js/main) | ||
|
||
|
||
## Prerequisites | ||
|
||
### Cloning | ||
This repository uses git submodules. To clone this repo with submodules | ||
```sh | ||
git clone --recurse-submodules [email protected]:TBD54566975/web5-js.git | ||
``` | ||
Or to add submodules after cloning | ||
```sh | ||
git submodule update --init | ||
``` | ||
We recommend this config which will only checkout the files relevant to web5-js | ||
```sh | ||
git -C web5-spec sparse-checkout set test-vectors | ||
``` | ||
|
||
## Installation | ||
|
||
_NPM_ | ||
|
@@ -477,6 +494,24 @@ The `create` method under the `did` object enables generation of DIDs for a supp | |
const myDid = await Web5.did.create("ion"); | ||
``` | ||
|
||
## Working with the `web5-spec` submodule | ||
|
||
### Pulling | ||
You may need to update the `web5-spec` submodule after pulling. | ||
```sh | ||
git pull | ||
git submodule update | ||
``` | ||
|
||
### Pushing | ||
If you have made changes to the `web5-spec` submodule, you should push your changes to the `web5-spec` remote as well as pushing changes to `web5-js`. | ||
```sh | ||
cd web5-spec | ||
git push | ||
cd .. | ||
git push | ||
``` | ||
|
||
## Project Resources | ||
|
||
| Resource | Description | | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.