Skip to content

Commit

Permalink
feat: v2 (starknet-io#122)
Browse files Browse the repository at this point in the history
* feat: v2

* fix: branch names

* docs: readme usage

* fix: review fixes no1

* fix: review fixes no2

* fix: review no3

* fix: added all known wallet window keys explicitly

* fix: review

* fix: automatic build on prepare

* feat: export window object and update starknet.js

* feat: remove default wallet value and let dapp handle connect status

* feat: allow dapp to disable discovery if wallet was connected

* fix: example

* feat: add a11y handler

* fix: alwaysShowDiscovery

* fix: types

* fix: starknet peer dependency

* fix: remove any

* chore: remove `alwaysShowDiscovery` prop

should be handled on a separate PR

* chore: remove default-wallet test leftovers

Co-authored-by: Abraham Makovetsky <[email protected]>
  • Loading branch information
janek26 and avimak authored Nov 30, 2022
1 parent e3a86e1 commit 3129ff3
Show file tree
Hide file tree
Showing 72 changed files with 6,956 additions and 6,026 deletions.
11 changes: 11 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changesets

Hello and welcome! This folder has been automatically generated by
`@changesets/cli`, a build tool that works with multi-package repos, or
single-package repos to help you version and publish your code. You can find the
full documentation for it
[in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this
project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [["get-starknet-core", "get-starknet"]],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
38 changes: 19 additions & 19 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"extends": [
"@commitlint/config-conventional"
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"body-max-line-length": [
0,
"always",
100
],
"rules": {
"body-max-line-length": [
0,
"always",
100
],
"footer-max-line-length": [
0,
"always",
100
],
"footer-leading-blank": [
0,
"always",
100
]
}
"footer-max-line-length": [
0,
"always",
100
],
"footer-leading-blank": [
0,
"always",
100
]
}
}
38 changes: 0 additions & 38 deletions .eslintrc

This file was deleted.

12 changes: 0 additions & 12 deletions .github/dependabot.yml

This file was deleted.

44 changes: 28 additions & 16 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
name: Build
name: PR
on:
pull_request:
branches:
- master
- develop
pull_request:
branches:
- develop
- master

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "14"
- run: yarn install --frozen-lockfile
- run: yarn build
version:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: pnpm/[email protected]
with:
version: 7
- name: setup node.js
uses: actions/setup-node@v2
with:
node-version: 14
cache: "pnpm"
- name: install dependencies
run: pnpm install
- name: run tests
run: pnpm test
- name: check formatting
run: pnpm format:check
60 changes: 37 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
name: Semantic Release
name: Release
on:
push:
branches:
- master
push:
branches:
- master

jobs:
release:
name: Release
permissions:
contents: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "14"
- run: yarn install --frozen-lockfile
- run: yarn build
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
run: npx semantic-release
version:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: checkout code repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: pnpm/[email protected]
with:
version: 7
- name: setup node.js
uses: actions/setup-node@v2
with:
node-version: 14
cache: "pnpm"
- name: install dependencies
run: pnpm install
- name: run tests
run: pnpm test
- name: copy readme to every package
run: echo "./packages/core/ ./packages/ui/" | xargs -n 1 cp Readme.md
- name: create and publish versions
uses: changesets/action@v1
with:
version: pnpm run version
commit: "chore: update versions"
title: "chore: update versions"
publish: pnpm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 3129ff3

Please sign in to comment.