Skip to content

Commit

Permalink
chore: move templates/default to example/starter
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed Sep 1, 2023
1 parent 81d2867 commit 9d690b2
Show file tree
Hide file tree
Showing 37 changed files with 65 additions and 69 deletions.
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"eslint.workingDirectories": [
{ "!cwd": false, "directory": "docs" },
{ "!cwd": false, "pattern": "example/*" },
{ "!cwd": false, "pattern": "packages/*" },
{ "!cwd": false, "pattern": "templates/*" }
{ "!cwd": false, "pattern": "packages/*" }
],
"npm.packageManager": "pnpm",
"editor.formatOnSave": true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function Wallet() {

- Next.js + Chakra UI: https://graz.sh/examples/next ([source code](./example/next/))
- Vite: https://graz.sh/examples/vite ([source code](./example/vite/))
- Next.js Starter: https://graz.sh/examples/starter ([source code](https://github.com/graz-sh/graz/tree/dev/templates/default/))
- Next.js Starter: https://graz.sh/examples/starter ([source code](https://github.com/graz-sh/graz/tree/dev/example/default/))

## Third-party dependencies

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/examples/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sidebar_position: 3
## Next.js Starter

- Website: https://graz.sh/examples/starter
- GitHub: https://github.com/graz-sh/graz/tree/dev/templates/default
- GitHub: https://github.com/graz-sh/graz/tree/dev/example/default

## Vite

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function Wallet() {

- Next.js + Chakra UI: https://graz.sh/examples/next ([source code](https://github.com/graz-sh/graz/tree/dev/example/next))
- Vite: https://graz.sh/examples/vite ([source code](https://github.com/graz-sh/graz/tree/dev/example/vite/))
- Next.js Starter: https://graz.sh/examples/starter ([source code](https://github.com/graz-sh/graz/tree/dev/templates/default/))
- Next.js Starter: https://graz.sh/examples/starter ([source code](https://github.com/graz-sh/graz/tree/dev/example/default/))

## Third-party dependencies

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@project/default",
"name": "@project/starter",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Layout = ({ children }: { children: ReactNode }) => {
{isConnecting || isReconnecting ? <Text>Connecting...</Text> : null}
{!isConnected && !(isConnecting || isReconnecting) ? (
<Box>
<Heading>Welcome to Graz Example</Heading>
<Heading>Welcome to Graz Example Starter</Heading>
<Text>Connect your wallet to interact within the app.</Text>
</Box>
) : (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"workspaces": [
"docs",
"example/*",
"packages/*",
"templates/*"
"packages/*"
],
"scripts": {
"build": "turbo run build --filter=!@project/example-next --filter=!@project/default --filter=!@project/example-vite",
"build": "turbo run build --filter=!@project/example-next --filter=!@project/starter --filter=!@project/example-vite",
"clean": "turbo run clean",
"dev": "turbo run dev --filter=!@project/docs --filter=!create-graz-app --filter=!create-graz-app --filter=!\"graz-adapter-*\" --filter=!@project/example-vite",
"docs": "pnpm --dir docs",
Expand All @@ -20,7 +19,6 @@
"prepare": "husky uninstall",
"release": "turbo run build --filter=graz && pnpm publish --filter graz",
"release-adapter": "turbo run build --filter=\"graz-adapter-*\" && pnpm publish --filter=\"graz-adapter-*\"",
"templates": "pnpm --dir templates/default",
"test": "turbo run test"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-graz-app/create-apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const createApp = async ({
username: "graz-sh",
branch: "dev",
name: "graz",
filePath: "templates/default",
filePath: "example/starter",
};

const root = path.resolve(appPath);
Expand Down
112 changes: 56 additions & 56 deletions pnpm-lock.yaml

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

1 change: 0 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ packages:
- "docs/"
- "example/*"
- "packages/*"
- "templates/*"

0 comments on commit 9d690b2

Please sign in to comment.