Skip to content

Commit

Permalink
🎨 KitQL x Nextra 3 (#361)
Browse files Browse the repository at this point in the history
* aa

* npm2yarn

* prettify

* ✨ UPDATE: typo

---------

Co-authored-by: jycouet <[email protected]>
  • Loading branch information
dimaMachina and jycouet authored Oct 12, 2023
1 parent 0c93fa2 commit 91d7126
Show file tree
Hide file tree
Showing 15 changed files with 1,544 additions and 848 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<br />

# âš¡How to start?
# âš¡How to start ?

Demo Init 👇
<p><a target="_blank"
Expand Down
4 changes: 2 additions & 2 deletions packages/handles/scripts/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ delete pkg.publishConfig;
delete pkg.bob;
delete pkg.scripts;

// It's not allowed to have an emtpy scripts object
// It's not allowed to have an empty scripts object
pkg.scripts = {
"test": "echo hello!"
test: 'echo hello!'
};

// write it to your output directory
Expand Down
2,291 changes: 1,492 additions & 799 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions website/next-sitemap.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
module.exports = {
siteUrl: 'https://www.kitql.dev/',
generateIndexSitemap: false,
exclude: ['*/_meta'],
}
20 changes: 10 additions & 10 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
]
},
"dependencies": {
"@theguild/components": "4.5.11",
"next": "13.4.2",
"next-sitemap": "4.0.9",
"react": "18.2.0",
"react-dom": "18.2.0"
"@theguild/components": "^6.0.1",
"next": "^13.5.4",
"next-sitemap": "^4.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@theguild/algolia": "1.1.7",
"@theguild/tailwind-config": "0.2.1",
"@types/node": "18.16.8",
"@types/react": "18.2.6",
"tailwindcss": "3.3.2"
"@theguild/algolia": "1.1.9",
"@theguild/tailwind-config": "0.3.0",
"@types/node": "20.8.4",
"@types/react": "18.2.28",
"tailwindcss": "3.3.3"
}
}
14 changes: 0 additions & 14 deletions website/src/pages/_meta.json

This file was deleted.

14 changes: 14 additions & 0 deletions website/src/pages/_meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default {
index: {
title: 'Home',
type: 'page',
display: 'hidden',
theme: {
layout: 'raw',
},
},
docs: {
title: 'Docs',
type: 'page',
},
}
7 changes: 0 additions & 7 deletions website/src/pages/docs/_meta.json

This file was deleted.

7 changes: 7 additions & 0 deletions website/src/pages/docs/_meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
index: 'Introduction',
'all-in': 'Getting Started',
demos: 'Demos',
setup: 'Setup',
extra: 'Extra',
}
10 changes: 6 additions & 4 deletions website/src/pages/docs/all-in.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { PackageCmd } from '@theguild/components'

# âš¡Let's go All-In!

KitQL is primarily a list of tools/projects working together. You can opt-in or out of each any
Expand All @@ -16,11 +14,15 @@ Create a new SvelteKit project.
npm create svelte my-graphql-app
```

We recommend typescript, eslint, playwright, ... so answer `yes` to everything 🙃!
We recommend TypeScript, ESLint, playwright, ... so answer `yes` to everything 🙃!

## Install `KitQL`

<PackageCmd packages={['@kitql/all-in', 'houdini', '[email protected]']} />
```sh npm2yarn
npm i @kitql/all-in
npm i houdini
npm i [email protected]
```

Then depending on your needs, you can configure packages individually.

Expand Down
3 changes: 0 additions & 3 deletions website/src/pages/docs/demos/_meta.json

This file was deleted.

3 changes: 3 additions & 0 deletions website/src/pages/docs/demos/_meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
'01_demo-init': 'Demo Init',
}
6 changes: 3 additions & 3 deletions website/src/pages/docs/setup/03_vite-plugin-watch-and-run.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { PackageCmd } from '@theguild/components'

# âš¡How to - vite-plugin-watch-and-run

## Installation
Expand All @@ -8,7 +6,9 @@ If you have `@kitql/all-in` you don't need to install this manually.

If you want to install it stand alone, please do

<PackageCmd packages={['-D vite-plugin-watch-and-run']} />
```sh npm2yarn
npm i -D vite-plugin-watch-and-run
```

## Configuration

Expand Down
5 changes: 0 additions & 5 deletions website/src/pages/docs/setup/_meta.json

This file was deleted.

5 changes: 5 additions & 0 deletions website/src/pages/docs/setup/_meta.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
'02_server': 'GraphQL Server - KitQL',
'01_houdini': 'GraphQL Client - Houdini',
'03_vite-plugin-watch-and-run': 'Vite Plugin - Watch-and-Run',
}

1 comment on commit 91d7126

@vercel
Copy link

@vercel vercel bot commented on 91d7126 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kitql – ./

www.kitql.dev
kitql-jycouet.vercel.app
kitql.vercel.app
kitql-git-main-jycouet.vercel.app
kitql.dev

Please sign in to comment.