Skip to content

Commit

Permalink
Merge Leptos w/ Tailwind integrations (#3)
Browse files Browse the repository at this point in the history
* feat: add leptos_axum integration
* feat: enable json axum api
* feat: add tailwind css to leptos
* chore: add node & bun to install tailwind node_modules
* chore: fix build and deploy job to only run on main commits

---------

Co-authored-by: Alvin Januar <[email protected]>
  • Loading branch information
Alvin Januar and jumping-dragon committed Aug 4, 2024
1 parent f4bfeba commit 498256d
Show file tree
Hide file tree
Showing 17 changed files with 2,492 additions and 640 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: 'Terraform'
on:
push:
branches: [ "main" ]
pull_request:

permissions:
id-token: write
Expand Down Expand Up @@ -40,20 +39,38 @@ jobs:
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: nightly
targets: "wasm32-unknown-unknown"
components: "rustfmt"

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

- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2

# Setup Nodejs
- name: Use Node v20
uses: actions/setup-node@v1
with:
node-version: 20

# Install & Build repo
- name: Use Bun to install and build
uses: oven-sh/setup-bun@v1
- run: bun install

- name: Setup Cargo Lambda
run: cargo binstall cargo-lambda -y

- name: Setup Cargo Leptos
run: cargo install --locked cargo-leptos

# Build with Cargo Lambda
- name: Build
run: cargo lambda build --release --arm64 --all
run: |
cargo leptos build --release
cargo lambda build --release --features=ssr --no-default-features --arm64 --all
# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
.DS_Store
/infra/.*
/infra/terraform.tfstate*
/.infracost
/.infracost
/node_modules
Loading

0 comments on commit 498256d

Please sign in to comment.