Skip to content

Commit

Permalink
chore: configurable, add kebab, remove dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Mar 2, 2024
1 parent 7b3c409 commit b86112f
Show file tree
Hide file tree
Showing 37 changed files with 215 additions and 367 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ jobs:
run: |
yarn
yarn build
# env: # Set environment variables for the build
# SUPABASE_URL: "https://wfzpewmlyiozupulbuur.supabase.co"
# SUPABASE_ANON_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6IndmenBld21seWlvenVwdWxidXVyIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTU2NzQzMzksImV4cCI6MjAxMTI1MDMzOX0.SKIL3Q0NOBaMehH0ekFspwgcu3afp3Dl9EDzPqs1nKs"

- name: Deploy to Cloudflare
uses: ubiquity/cloudflare-deploy-action@main
with:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/kebab-case.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Enforce kebab-case

on:
push:
pull_request:

jobs:
check-filenames:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Check For Non Kebab-Cased TypeScript Files
run: .github/workflows/scripts/kebab-case.sh
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ node_modules
.pnp.cjs
.pnp.loader.mjs
.env
static/dist
dist

2 changes: 1 addition & 1 deletion build/esbuild-build.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import esbuild from "esbuild";
import chainlist from "../lib/chainlist/constants/extraRpcs";

const typescriptEntries = ["rpc-handler.ts", "constants.ts", "handler.ts", "services/RPCService.ts", "services/StorageService.ts"];
const typescriptEntries = ["rpc-handler.ts", "constants.ts", "handler.ts", "services/rpc-service.ts", "services/storage-service.ts"];
export const entries = [...typescriptEntries];
const extraRpcs: Record<string, string[]> = {};
// this flattens all the rpcs into a single object, with key names that match the networkIds. The arrays are just of URLs per network ID.
Expand Down
24 changes: 0 additions & 24 deletions dist/cjs/constants.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/cjs/constants.js

This file was deleted.

16 changes: 0 additions & 16 deletions dist/cjs/handler.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/cjs/handler.js

This file was deleted.

3 changes: 0 additions & 3 deletions dist/cjs/index.d.ts

This file was deleted.

20 changes: 0 additions & 20 deletions dist/cjs/rpc-handler.d.ts

This file was deleted.

47 changes: 0 additions & 47 deletions dist/cjs/rpc-handler.js

This file was deleted.

24 changes: 0 additions & 24 deletions dist/cjs/services/RPCService.d.ts

This file was deleted.

30 changes: 0 additions & 30 deletions dist/cjs/services/RPCService.js

This file was deleted.

6 changes: 0 additions & 6 deletions dist/cjs/services/StorageService.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/cjs/services/StorageService.js

This file was deleted.

24 changes: 0 additions & 24 deletions dist/esm/constants.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/esm/constants.js

This file was deleted.

16 changes: 0 additions & 16 deletions dist/esm/handler.d.ts

This file was deleted.

Empty file removed dist/esm/handler.js
Empty file.
3 changes: 0 additions & 3 deletions dist/esm/index.d.ts

This file was deleted.

20 changes: 0 additions & 20 deletions dist/esm/rpc-handler.d.ts

This file was deleted.

18 changes: 0 additions & 18 deletions dist/esm/rpc-handler.js

This file was deleted.

24 changes: 0 additions & 24 deletions dist/esm/services/RPCService.d.ts

This file was deleted.

Loading

0 comments on commit b86112f

Please sign in to comment.