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

gift card start switching to blaze and svelte #1008

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
21 changes: 21 additions & 0 deletions examples/gift_card/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,24 @@ 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
6 changes: 6 additions & 0 deletions examples/gift_card/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Package Managers
package-lock.json
pnpm-lock.yaml
yarn.lock
build/
validators/
14 changes: 14 additions & 0 deletions examples/gift_card/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"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
# create-svelte

## Usage
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).

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
npm create svelte@latest

# create a new project in my-app
npm create svelte@latest 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://kit.svelte.dev/docs/adapters) for your target environment.
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