Skip to content

Commit 31ad6a2

Browse files
authored
Initial commit
0 parents  commit 31ad6a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+7646
-0
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.yml]
11+
indent_style = space

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.eslintrc.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"project": "tsconfig.json"
5+
},
6+
"env": {
7+
"es6": true
8+
},
9+
"plugins": ["@typescript-eslint", "functional"],
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:@typescript-eslint/eslint-recommended",
13+
"plugin:@typescript-eslint/recommended",
14+
"plugin:functional/all",
15+
"prettier"
16+
],
17+
"overrides": [
18+
{
19+
"files": ["**/*.ts"],
20+
"rules": {
21+
"functional/prefer-immutable-types": "off",
22+
"functional/functional-parameters": "off"
23+
}
24+
},
25+
{
26+
"files": ["**/*.test.ts"],
27+
"rules": {
28+
"functional/no-conditional-statements": "off",
29+
"functional/functional-parameters": "off",
30+
"functional/no-return-void": "off",
31+
"@typescript-eslint/prefer-readonly-parameter-types": "off",
32+
"@typescript-eslint/no-explicit-any": "off"
33+
}
34+
},
35+
{
36+
"files": ["rollup.config.js"],
37+
"rules": {
38+
"functional/prefer-immutable-types": "off",
39+
"functional/no-conditional-statements": "off"
40+
}
41+
}
42+
]
43+
}

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [18.x]
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
20+
- name: install deps
21+
run: yarn
22+
23+
- name: lint
24+
run: yarn lint
25+
26+
- name: build
27+
run: yarn build
28+
29+
- name: test
30+
run: yarn test

.gitignore

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
24+
# nyc test coverage
25+
.nyc_output
26+
27+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
28+
.grunt
29+
30+
# Bower dependency directory (https://bower.io/)
31+
bower_components
32+
33+
# node-waf configuration
34+
.lock-wscript
35+
36+
# Compiled binary addons (https://nodejs.org/api/addons.html)
37+
build/Release
38+
39+
# Dependency directories
40+
node_modules/
41+
jspm_packages/
42+
43+
# TypeScript v1 declaration files
44+
typings/
45+
46+
# Optional npm cache directory
47+
.npm
48+
49+
# Optional eslint cache
50+
.eslintcache
51+
52+
# Optional REPL history
53+
.node_repl_history
54+
55+
# Output of 'npm pack'
56+
*.tgz
57+
58+
# Yarn Integrity file
59+
.yarn-integrity
60+
61+
# dotenv environment variables file
62+
.env
63+
.env.test
64+
65+
# parcel-bundler cache (https://parceljs.org/)
66+
.cache
67+
68+
# next.js build output
69+
.next
70+
71+
# nuxt.js build output
72+
.nuxt
73+
74+
# vuepress build output
75+
.vuepress/dist
76+
77+
# Serverless directories
78+
.serverless/
79+
80+
# FuseBox cache
81+
.fusebox/
82+
83+
# DynamoDB Local files
84+
.dynamodb/
85+
86+
# Rollup output
87+
dist
88+
89+
# Azure Functions artifacts
90+
bin
91+
obj
92+
appsettings.json
93+
local.settings.json
94+
95+
# use yarn as a package manager
96+
package-lock.json

.husky/.gitignore

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

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.prettierrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"useTabs": true,
5+
"plugins": ["prettier-plugin-astro", "prettier-plugin-svelte"]
6+
}

.preview/config.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { encode } from '@devprotocol/clubs-core'
2+
3+
export default () =>
4+
encode({
5+
name: 'Debug',
6+
twitterHandle: '@debug',
7+
description: '',
8+
url: '',
9+
propertyAddress: '',
10+
chainId: 137,
11+
rpcUrl: 'https://polygon-rpc.com/',
12+
adminRolePoints: 50,
13+
plugins: [
14+
{
15+
id: 'example-theme',
16+
options: [],
17+
},
18+
{
19+
id: 'unique-and-descriptive-name-here',
20+
options: [
21+
{ key: 'slug', value: 'stokens' },
22+
{ key: 'rpc', value: 'https://polygon-rpc.com/' },
23+
{ key: 'maxpage', value: 30 },
24+
],
25+
},
26+
],
27+
})

0 commit comments

Comments
 (0)