Skip to content

Commit

Permalink
feat: start switching to blaze and svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
rvcas committed Sep 3, 2024
1 parent f8be81b commit b692132
Show file tree
Hide file tree
Showing 39 changed files with 10,184 additions and 1,423 deletions.
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

0 comments on commit b692132

Please sign in to comment.