Skip to content

Commit ee79441

Browse files
authored
Merge pull request #1 from argentlabs/feat/first-impl
Feat/first impl
2 parents 96c67de + 802c929 commit ee79441

36 files changed

+2606
-16
lines changed

.github/pull_request_template.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
### Issue / feature description
2+
3+
`Quick description of the issue or the feature that is implemented in the pr ie: add new transitions between screens`
4+
5+
### Changes
6+
7+
`quick list regarding the related changes within the pr`
8+
9+
ie:
10+
11+
- add new transaction transformer
12+
- add new ui
13+
14+
### Checklist
15+
16+
- [ ] Rebased to the last commit of the target branch (or merged)
17+
- [ ] Code self-reviewed
18+
- [ ] Code self-tested
19+
- [ ] Tests updated (if needed)
20+
- [ ] All tests are passing locally
21+
22+
Please keep your pull request as small as possible. If you need to make multiple changes, please create separate pull requests for each change. Create a draft pull request if you need early feedback. This will mark the pull request as a work in progress and prevent it from being reviewed or merged until you are ready.
23+
24+
Please move drafts to the ready for review (regular PR) when you are ready to start the review process and other developers will pick it up from there.

.github/workflows/pull-request.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and run tests
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- uses: pnpm/action-setup@v4
19+
name: Install pnpm
20+
with:
21+
# version: 9
22+
run_install: false
23+
24+
- name: Get pnpm store directory
25+
shell: bash
26+
run: |
27+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
28+
29+
- uses: actions/cache@v4
30+
name: Setup pnpm cache
31+
with:
32+
path: ${{ env.STORE_PATH }}
33+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
34+
restore-keys: |
35+
${{ runner.os }}-pnpm-store-
36+
37+
- name: Install dependencies
38+
run: pnpm install
39+
- name: Build demo-dapp-starknet
40+
run: pnpm run build

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ yarn-debug.log*
3030
yarn-error.log*
3131

3232
# env files (can opt-in for commiting if needed)
33-
.env*
33+
.env
34+
.env*.local
3435

3536
# vercel
3637
.vercel
@@ -41,4 +42,6 @@ next-env.d.ts
4142

4243

4344
.playwright-*
44-
playwright-report*
45+
playwright-report*
46+
47+
.eslintcache

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm lint-staged

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ["@commitlint/config-conventional"],
3+
}

package.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,46 @@
22
"name": "demo-dapp-starknet",
33
"version": "0.1.0",
44
"private": true,
5+
"packageManager": "[email protected]",
6+
"engines": {
7+
"node": "20.x"
8+
},
59
"scripts": {
610
"dev": "next dev",
711
"build": "next build",
812
"start": "next start",
913
"lint": "next lint",
1014
"test": "playwright test",
1115
"test:headed": "playwright test --headed",
12-
"test:ui": "playwright test --ui"
16+
"test:ui": "playwright test --ui",
17+
"prepare": "husky"
1318
},
1419
"dependencies": {
15-
"@starknet-react/chains": "^3.0.6",
16-
"@starknet-react/core": "^3.4.1",
20+
"@starknet-react/chains": "^3.1.0",
21+
"@starknet-react/core": "^3.5.0",
1722
"next": "15.0.2",
1823
"react": "19.0.0-rc-02c0e824-20241028",
1924
"react-dom": "19.0.0-rc-02c0e824-20241028",
2025
"starknet": "^6.11.0",
2126
"starknetkit": "^2.3.3"
2227
},
2328
"devDependencies": {
29+
"@commitlint/cli": "^19.5.0",
30+
"@commitlint/config-conventional": "^19.5.0",
2431
"@playwright/test": "^1.48.2",
2532
"@starknet-io/types-js": "^0.7.7",
2633
"@types/node": "^20",
2734
"@types/react": "^18",
2835
"@types/react-dom": "^18",
2936
"eslint": "^8",
3037
"eslint-config-next": "15.0.2",
38+
"husky": "^9.1.6",
39+
"lint-staged": "^15.2.10",
3140
"prettier": "^3.3.3",
3241
"typescript": "^5"
42+
},
43+
"lint-staged": {
44+
"*.{js,jsx,ts,tsx,css,md,yml,json}": "prettier --write",
45+
"*.{ts,tsx}": "eslint --cache --ext .ts,.tsx"
3346
}
3447
}

0 commit comments

Comments
 (0)