Skip to content

Commit

Permalink
refactor config, export as library
Browse files Browse the repository at this point in the history
  • Loading branch information
artursapek committed Mar 12, 2024
1 parent f06c070 commit 1e0276f
Show file tree
Hide file tree
Showing 112 changed files with 2,403 additions and 2,473 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: Build

on:
pull_request:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:
- run: npm run lint:ci
- run: |
IFS='@' read -a strarr <<< $(git describe --tags)
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" wormhole-connect-loader/package.json
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" wormhole-connect/package.json
npm run build
cd wormhole-connect-loader
cp README.md wormhole-connect/
cp wormhole-connect.png wormhole-connect/
cd wormhole-connect
npm publish --tag $(echo $([ ${strarr[0]} == "production" ] && echo "latest" || echo ${strarr[0]})) --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
30 changes: 29 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## Contributing

Contributions are welcome! To work on wormhole-connect locally you'll want to use `npm link` to make the changes to the SDK immediately available.

### Setup

1) Install

Run `npm i` at the root of the repo

2) Build

Run `npm run build` at the root fo the repo

3) Start

Start wormhole-connect UI and view in browser at localhost:3000
```bash
# in /wormhole-connect
npm run start # testnet
```

Start builder UI and view in browser at localhost:3000
```bash
# in /builder
npm run start
```

## Add a token

### Fill out token config
Expand Down Expand Up @@ -52,4 +80,4 @@ Copy the outputted list and paste it into `src/consts/wallet.ts` as the value of

1. Make a GitHub release
2. Tag it `production@0.1.3`
3. Trigger the 'publish' GitHub action and fill in the tag when prompted, which will publish to NPM
3. Trigger the 'publish' GitHub action and fill in the tag when prompted, which will publish to NPM
Loading

0 comments on commit 1e0276f

Please sign in to comment.