Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update gift card to use svelte, lucid evolution, and weld #1008

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions examples/gift_card/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@ artifacts/
build/
# Aiken's default documentation export
docs/
# generated by deno fresh
.vscode/

node_modules

# Output
.output
.vercel
/.svelte-kit
/build

# OS
.DS_Store
Thumbs.db

# Env
.env
.env.*
!.env.example
!.env.test

# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions examples/gift_card/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
4 changes: 4 additions & 0 deletions examples/gift_card/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Package Managers
package-lock.json
pnpm-lock.yaml
yarn.lock
14 changes: 14 additions & 0 deletions examples/gift_card/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"useTabs": false,
"singleQuote": true,
"trailingComma": "none",
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}
43 changes: 28 additions & 15 deletions examples/gift_card/README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,38 @@
# fresh project
# sv

## Usage
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).

Start the project:
## Creating a project

If you're seeing this, you've probably already done this step. Congrats!

```bash
# create a new project in the current directory
npx sv create

# create a new project in my-app
npx sv create my-app
```
deno task start

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```

This will watch the project directory and restart as necessary.
## Building

## What's This?
To create a production version of your app:

This is an example of a gift card. With these contracts you can lock anything
and have it be unlockable only with a simultaneously minted NFT. This minted NFT
holds the power to unlock the assets and is considered the "gift card".
```bash
npm run build
```

## Tech
You can preview the production build with `npm run preview`.

- [Aiken](https://aiken-lang.org)
- [Demeter](https://demeter.run)
- [Deno](https://deno.land)
- [fresh](https://fresh.deno.dev)
- [lucid](https://github.com/spacebudz/lucid)
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
2 changes: 1 addition & 1 deletion examples/gift_card/aiken.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ requirements = []
source = "github"

[etags]
"aiken-lang/stdlib@v2" = [{ secs_since_epoch = 1725207295, nanos_since_epoch = 895782000 }, "d79382d2b6ecb3aee9b0755c31d8a5bbafe88a7b3706d7fb8a52fd4d05818501"]
"aiken-lang/stdlib@v2" = [{ secs_since_epoch = 1732568276, nanos_since_epoch = 702142000 }, "33dce3a6dbfc58a92cc372c4e15d802f079f4958af941386d18980eb98439bb4"]
28 changes: 0 additions & 28 deletions examples/gift_card/blueprint.ts

This file was deleted.

12 changes: 0 additions & 12 deletions examples/gift_card/components/Button.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions examples/gift_card/components/Input.tsx

This file was deleted.

39 changes: 0 additions & 39 deletions examples/gift_card/deno.json

This file was deleted.

Loading
Loading