Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Separate into core/react/standalone, switch to bridge & more #156

Merged
merged 28 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 15 additions & 100 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,117 +1,32 @@
name: CI

on:
- pull_request
push:
branches: ['main']
pull_request:

jobs:
lint:
name: Source code formatting & spellcheck
runs-on: ubuntu-20.04
build:
name: Lint & Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Check formatting with Prettier
working-directory: ./idkit
run: yarn format:check

- name: Spellcheck
run: yarn spellcheck

typecheck:
name: Typecheck & linting
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Lint with ESLint
working-directory: ./idkit
run: yarn lint

- name: Check Typescript
working-directory: ./idkit
run: |
yarn typecheck

test:
name: Test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"

- name: Install dependencies
working-directory: ./idkit
run: yarn --frozen-lockfile

- name: Run tests
working-directory: ./idkit
run: yarn test

test-build:
name: Test production build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Set up Node 18
uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2.4.0
with:
node-version: 18
cache: "yarn"

- name: Install dependencies
working-directory: ./idkit
run: yarn --frozen-lockfile

- name: Build
working-directory: ./idkit
run: |
yarn build

test-next-build:
name: Test Next.js build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
version: 8

- name: Set up Node 18
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: 18
cache: "yarn"

- name: Install dependencies
run: yarn --frozen-lockfile
run: pnpm install

- name: Build
working-directory: ./idkit
run: |
yarn build
- name: Lint
run: pnpm lint

- name: Build Next.JS app
working-directory: ./example-nextjs
run: |
yarn build
- name: Typecheck & Build
run: pnpm build
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: New release

# FIXME: Needs refactoring with the new monorepo
on:
push:
branches:
- main
- workflow_dispatch
# push:
# branches:
# - main

jobs:
release:
Expand Down
19 changes: 11 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
node_modules
.DS_Store

# editors
/.vscode/*
!/.vscode/extensions.json
/.idea
/.history
build
.turbo
.DS_Store
.rollup.cache
node_modules

# editors
/.vscode/*
!/.vscode/extensions.json
/.idea
/.history
5 changes: 3 additions & 2 deletions idkit/.prettierignore → .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build/**
node_modules/**
.turbo/**
CHANGELOG.md
pnpm-lock.yaml
CHANGELOG.md
node_modules/**
File renamed without changes.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const { open, setOpen } = useIDKit({
signal: "my_signal",
handleVerify: verifyProof,
actionId: "get_this_from_the_dev_portal",
walletConnectProjectId: "get_this_from_walletconnect_portal",
});
```

Expand Down
24 changes: 0 additions & 24 deletions example-nextjs/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions example-nextjs/pages/_app.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions example-nextjs/pages/index.tsx

This file was deleted.

Binary file removed example-nextjs/public/favicon.ico
Binary file not shown.
4 changes: 0 additions & 4 deletions example-nextjs/public/vercel.svg

This file was deleted.

129 changes: 0 additions & 129 deletions example-nextjs/styles/Home.module.css

This file was deleted.

Loading
Loading