Skip to content

Commit

Permalink
feat: migrate to leptos (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanBorai authored Dec 13, 2024
1 parent 2b4ed1d commit 9631432
Show file tree
Hide file tree
Showing 163 changed files with 1,677 additions and 4,648 deletions.
1 change: 0 additions & 1 deletion .env.sample

This file was deleted.

24 changes: 0 additions & 24 deletions .eslintrc.cjs

This file was deleted.

41 changes: 22 additions & 19 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,43 @@
name: Deploy Staging

on:
push:
branches:
- main

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: 'main'
- name: Checkout Source Code
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2

- name: Setup Cargo Binstall
uses: cargo-bins/cargo-binstall@main

- name: Install Dependencies
run: bun i
- name: Install Rust Binaries
run: |
cargo binstall -y --force trunk
- name: Build Check
env:
NODE_ENV: production
run: bun run build
- name: Build
working-directory: ./crates/www
run: trunk build --release

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1.0.0
- name: Deploy Client
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
projectName: 'estebanborai-staging-dotcom'
directory: ./.svelte-kit/cloudflare
command: pages deploy ./dist --project-name=${{ secrets.CLOUDFLARE_PAGES_STAGING_PROJECT_NAME }}
workingDirectory: ./crates/www
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
15 changes: 6 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.sample
.pnpm-debug.log
# Directories
build
dist
node_modules
target

# Files
.DS_Store
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

4 changes: 0 additions & 4 deletions .typesafe-i18n.json

This file was deleted.

Loading

0 comments on commit 9631432

Please sign in to comment.