Skip to content

Commit

Permalink
migrated to Deno
Browse files Browse the repository at this point in the history
  • Loading branch information
KishiTheMechanic committed Oct 13, 2024
1 parent 5fe2ee7 commit b93081f
Show file tree
Hide file tree
Showing 29 changed files with 8,691 additions and 12,938 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,21 @@ jobs:
with:
fetch-depth: 2

- uses: pnpm/action-setup@v3
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
version: 9

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
deno-version: v2.x

- name: Install dependencies
run: pnpm install
run: deno install

- name: Create .env.local file
run: |
echo "NEXT_PUBLIC_SOLANA_ENDPOINT=${{ secrets.NEXT_PUBLIC_SOLANA_ENDPOINT }}" > .env.local
echo "NEXT_PUBLIC_SOLANA_PRICE_ENDPOINT=${{ secrets.NEXT_PUBLIC_SOLANA_PRICE_ENDPOINT }}" >> .env.local
- name: Deploy to Cloudflare
run: pnpm run deploy
run: deno task deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"prettier-plugin-tailwindcss"
],
"pluginSearchDirs": false,
"printWidth": 80
"printWidth": 80,
"trailingComma": "none"
}
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Demo: https://solana-dapp.skeeter.dev/

## Features

- Edge-Native
- Static Site Generation
- i18n Native
- Next.js App Router
Expand All @@ -42,14 +43,12 @@ Demo: https://solana-dapp.skeeter.dev/

## Built with

- [Deno](https://deno.com/)
- [Next.js](https://nextjs.org/)
- [Cloudflare Pages](https://pages.cloudflare.com/)
- [Wrangler](https://developers.cloudflare.com/workers/wrangler/)
- [TypeScript](https://www.typescriptlang.org/)
- [Tailwind CSS](https://tailwindcss.com/)
- [ESLint](https://eslint.org/)
- [Prettier](https://prettier.io/)
- [pnpm](https://pnpm.io/)
- [next-intl](https://next-intl-docs.vercel.app/)
- [React Compiler](https://react.dev/learn/react-compiler)
- [shadcn/ui](https://ui.shadcn.com/)
Expand All @@ -63,8 +62,8 @@ Demo: https://solana-dapp.skeeter.dev/
First, run the development server:

```bash
pnpm i
pnpm dev
deno i
deno task dev
```

Open [http://localhost:4242](http://localhost:4242) with your browser to see the result.
Expand Down Expand Up @@ -101,17 +100,12 @@ For example:

You can add the high-quality UI components from [shadcn/ui](https://ui.shadcn.com/)

```bash
// shortcut method for shadcn/ui
pnpm add:ui button
```

You can also use [v0](https://v0.dev/) which is a UI generator with shadcn/ui from simple text prompts and images.

<a href="https://v0.dev/">
<img src="https://storage.skeet.dev/v0.jpg" alt="v0" />
</a>

You can also use [v0](https://v0.dev/) which is a UI generator with shadcn/ui from simple text prompts and images.

## References

- [Next.js App Routing](https://nextjs.org/docs/app/building-your-application/routing)
Expand Down
1 change: 1 addition & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading

0 comments on commit b93081f

Please sign in to comment.