Skip to content

Commit

Permalink
feat: some base ui for stake
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask committed May 15, 2024
1 parent 5edf646 commit 2acbe02
Show file tree
Hide file tree
Showing 36 changed files with 1,274 additions and 120 deletions.
9 changes: 1 addition & 8 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@ module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['react-refresh', 'prettier'],
rules: {
'prettier/prettier': [
'error',
{
tabWidth: 2,
semi: false,
singleQuote: true,
}
],
'prettier/prettier': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Prettier

on:
push:
branhces:
- '**'
- '!main'
- '!released'

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Authenticate NPM
uses: DimensionDev/github-token-action@latest
with:
registry: true

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18.9.0'

- uses: pnpm/action-setup@v2
- name: Install dependencies
run: pnpm install

- name: Check code style with Prettier
run: npx prettier . -w

- name: Check for changes in src/*
id: check-changes
run: echo "::set-output name=changes::$(git diff --name-only -- 'src/*')"

- name: Commit changes if any
uses: EndBug/add-and-commit@v9
with:
message: 'chore: prettier'

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?

.vim
24 changes: 24 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Ignore entire directories
node_modules/
dist/
build/

# Ignore specific files
*.min.js
*.min.css

# Ignore locales
*.po

# Ignore all files of a specific type in a specific directory
public/*

# Ignore specific files in a directory
src/specialFile.js

# Ignore files based on wildcard patterns
**/vendor/**/*.js

# Ignore git submodule
pnpm-lock.yaml

5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
10 changes: 8 additions & 2 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"version": "0.1",
"language": "en",
"words": [],
"words": [
"immer",
"Merkle",
"sepolia",
"urlcat",
"zustand"
],
"ignoreWords": [
"Lingui",
"lingui",
Expand Down Expand Up @@ -36,4 +42,4 @@
"src/routeTree.gen.ts"
],
"overrides": []
}
}
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@
"cspell": "^8.8.1",
"dayjs": "^1.11.11",
"framer-motion": "^11.1.9",
"immer": "^10.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"urlcat": "^3.1.0",
"viem": "^2.9.16",
"vite-plugin-svgr": "^4.2.0",
"wagmi": "^2.5.19",
"zod": "^3.23.8"
"zod": "^3.23.8",
"zustand": "^4.5.2"
},
"devDependencies": {
"@lingui/cli": "^4.10.1",
Expand All @@ -58,5 +61,10 @@
"typescript": "^5.2.2",
"vite": "^5.2.0",
"vitest": "^1.6.0"
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
28 changes: 28 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff --git a/package.json b/package.json
index 6c09937ee7c032c4cbdf8cae86d3ec7603b8a826..4962dcc915e8de8d2c115c7fc7f432d1127c9f31 100644
--- a/package.json
+++ b/package.json
@@ -1,21 +1,15 @@
{
"name": "urlcat",
"version": "3.1.0",
+ "type": "module",
"description": "A library for concatenating URL's.",
"repository": {
"type": "git",
"url": "https://github.com/balazsbotond/urlcat.git"
},
- "main": "dist/index.js",
+ "main": "dist/index.mjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
- "exports": {
- ".": {
- "import": "./dist/index.mjs",
- "require": "./dist/index.js"
- },
- "./package.json": "./package.json"
- },
"files": [
"dist"
],
Loading

0 comments on commit 2acbe02

Please sign in to comment.