Skip to content

Commit

Permalink
fix: install dependencies before nebula build
Browse files Browse the repository at this point in the history
  • Loading branch information
prnk28 committed Oct 8, 2024
1 parent 2772e56 commit b19d5d0
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-hway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
name: Deploy Sonr.ID on Cloudflare
steps:
- uses: actions/checkout@v4
- name: Install devbox
uses: jetify-com/[email protected]
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ build-motr: gen-templ gen-pkl

build-nebula:
@echo "(nebula) Building nebula"
cd pkg/nebula && bun run build
cd pkg/nebula && bun install && bun run build


###############################################################################
Expand Down
3 changes: 3 additions & 0 deletions devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"TEMPL_EXPERIMENT": "rawgo"
},
"shell": {
"init_hook": [
"cd web && bun install"
],
"scripts": {
"build:docker": [
"make local-image"
Expand Down
Binary file modified pkg/nebula/bun.lockb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
package state

func UseNavigatorCredentials() {
templ.NewOnceHandle().Once()
}

templ NavigatorCredentialsCreate() {
<script>
function createCredential() {
navigator.credentials.create({
publicKey: {
rp: {
name: "Sonr",
id: "sonr.id",
},
user: {
id: new Uint8Array(0),
Expand All @@ -32,11 +36,13 @@ templ NavigatorCredentialsCreate() {
.catch((error) => {
console.error("Error:", error);
});
}
</script>
}

templ NavigatorCredentialsGet() {
<script>
function getCredential() {
navigator.credentials.get({
publicKey: {
challenge: new Uint8Array(0),
Expand All @@ -51,6 +57,7 @@ templ NavigatorCredentialsGet() {
.catch((error) => {
console.error("Error:", error);
});
}
</script>
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
13 changes: 4 additions & 9 deletions pkg/nebula/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@
"build": "bun run fetch:deps && bun run build:css",
"watch": "bunx tailwindcss -i ./global/styles/globals.css -o ./assets/css/styles.css --watch"
},
"devDependencies": {
"dependencies": {
"node-fetch": "^3.3.2",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.15",
"alpinejs": "^3.14.1",
"htmx.org": "^1.9.12",
"sonr-es": "^0.5.3",
"tailwindcss": "^3.3.0",
"tailwindcss-motion": "^0.3.0-beta",
"typescript": "^4.9.0"
},
"dependencies": {
"node-fetch": "^3.3.2",
"sonr-es": "^0.5.3"
"tailwindcss-motion": "^0.3.0-beta"
}
}
Binary file added web/bun.lockb
Binary file not shown.

0 comments on commit b19d5d0

Please sign in to comment.