Skip to content

Commit

Permalink
feat: token list as a package (#4)
Browse files Browse the repository at this point in the history
* feat: list verification pipeline v1

* fix: path

* fix: path

* fix: path

* fix: path

* fix: path

* fix: schema file name

* fix: extensions schema

* fix: token schema

* fix: missing logos

* feat: platform list validation

* fix: clean platform list schema

* fix: underlying property

* fix: exclude bgURL from required properties

* feat: build as a package

* feat: token-list as a package ready to use

* fix: author
  • Loading branch information
matstyler authored Aug 23, 2024
1 parent 7e7f1ba commit 1adbfaf
Show file tree
Hide file tree
Showing 11 changed files with 1,227 additions and 368 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Package update
on:
push:
branches:
- 'main'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'

- name: Automated Version Bump
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version-type: 'minor'

- name: Build
run: yarn build

- name: Publish
run: npm ci && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.idea
/node_modules
/dist

# Build files
/dist
22 changes: 22 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"tabWidth": 4,
"semi": false,
"singleQuote": false,
"bracketSpacing": true,
"useTabs": false,
"importOrder": [
"^@*/(.*)$",
"^styles/(.*)$",
"^state/(.*)$",
"^hooks/(.*)$",
"^(data|web3|contracts|utils)/(.*)$",
"^(components|routes)/(.*)$",
"^assets/(.*)$",
"^[./]"
],
"importOrderSeparation": true,
"plugins": [
"@trivago/prettier-plugin-sort-imports",
"prettier-plugin-tailwindcss"
]
}
21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
{
"name": "token-list",
"name": "@spectra/token-list",
"version": "1.0.0",
"description": "",
"main": "index.js",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"src/images"
],
"keywords": [
"spectral",
"spectra",
"token",
"list",
"schema",
"protocol"
],
"author": "",
"author": "Spectra Finance",
"license": "ISC",
"scripts": {
"build": "tsup"
},
"dependencies": {
"react": "^18.3.1",
"wagmi": "1.4.7"
},
"devDependencies": {
"prettier": "3.3.3",
"tsup": "^8.2.4",
"typescript": "^5.5.4"
}
}
Binary file removed src/images/tokens/ausdc.png
Binary file not shown.
Binary file removed src/images/tokens/curve.png
Binary file not shown.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export { default as protocolList } from "./protocols/protocolList.json"
export { default as protocolCustomContent } from "./protocols/protocolCustomContent"
export type { default as ProtocolText } from "./types/ProtocolText"

export { default as spectraTokens } from "./tokens/spectraTokens.json"
export { default as erc4626Wrappers } from "./tokens/erc4626Wrappers.json"
Loading

0 comments on commit 1adbfaf

Please sign in to comment.