Skip to content

Commit 469a078

Browse files
authored
Merge pull request #4 from underctrl-io/monorepo
setup turborepo
2 parents 51fbe2f + 83d55ae commit 469a078

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+5556
-992
lines changed

.github/workflows/lint.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
name: 🔍 Lint
1111
runs-on: ubuntu-latest
1212
steps:
13+
- uses: pnpm/action-setup@v2
14+
with:
15+
version: 8
16+
1317
- name: 📚 Checkout
1418
uses: actions/checkout@v3
1519

@@ -20,7 +24,7 @@ jobs:
2024
registry-url: https://registry.npmjs.org
2125

2226
- name: 🍳 Prepare
23-
run: npm install
27+
run: pnpm install
2428

2529
- name: ✨ Lint
26-
run: npm run lint
30+
run: pnpm lint

.github/workflows/publish.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ jobs:
99
name: 🚀 Publish
1010
runs-on: ubuntu-latest
1111
steps:
12+
- uses: pnpm/action-setup@v2
13+
with:
14+
version: 8
15+
1216
- name: 📚 Checkout
1317
uses: actions/checkout@v3
1418

@@ -19,11 +23,9 @@ jobs:
1923
registry-url: https://registry.npmjs.org
2024

2125
- name: 🍳 Prepare
22-
run: |
23-
npm install
24-
npm run build
26+
run: pnpm install
2527

2628
- name: 🚚 Publish
27-
run: npm publish
29+
run: pnpm run publish
2830
env:
2931
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/node_modules
2-
/dist
1+
node_modules
2+
dist
33
.DS_Store
4-
.vscode
4+
.vscode
5+
.turbo

.prettierignore

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
/node_modules
2-
/dist
1+
node_modules
2+
3+
dist
4+
.astro
5+
36
.DS_Store
47
.vscode
8+
59
README.md
6-
yarn.lock
10+
pnpm-lock.yaml
11+
12+
npm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
pnpm-debug.log*
16+
17+
.env
18+
.env.production

apps/docs/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# build output
2+
dist/
3+
4+
# generated types
5+
.astro/
6+
7+
# dependencies
8+
node_modules/
9+
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store

apps/docs/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# CommandKit Docs
2+
3+
The official docs for CommandKit

apps/docs/astro.config.mjs

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { defineConfig } from 'astro/config';
2+
import starlight from '@astrojs/starlight';
3+
4+
// https://astro.build/config
5+
export default defineConfig({
6+
site: 'https://commandkit.underctrl.io',
7+
integrations: [
8+
starlight({
9+
title: '',
10+
favicon: '/favicon.png',
11+
logo: {
12+
dark: './src/assets/nav_logo.png',
13+
light: './src/assets/nav_logo_light.png',
14+
},
15+
editLink: {
16+
baseUrl: 'https://github.com/underctrl-io/commandkit-docs/edit/master/',
17+
},
18+
customCss: ['./src/styles/landing.css', './src/styles/custom.css'],
19+
lastUpdated: true,
20+
social: {
21+
github: 'https://github.com/underctrl-io/commandkit',
22+
discord: 'https://discord.underctrl.io',
23+
youtube: 'https://youtube.com/@UnderCtrl',
24+
},
25+
sidebar: [
26+
{ label: 'Overview', link: '/overview' },
27+
{
28+
label: 'Guides',
29+
items: [
30+
{ label: 'Installation', link: '/guides/installation' },
31+
{ label: 'CommandKit Setup', link: '/guides/commandkit-setup' },
32+
{ label: 'Commands Setup', link: '/guides/command-file-setup' },
33+
{ label: 'Events Setup', link: '/guides/event-file-setup' },
34+
{ label: 'Validations Setup', link: '/guides/validation-file-setup' },
35+
{
36+
label: 'Migrate from DJS-Commander',
37+
link: '/guides/migrating-from-djs-commander',
38+
},
39+
],
40+
},
41+
],
42+
}),
43+
],
44+
45+
// Process images with sharp: https://docs.astro.build/en/guides/assets/#using-sharp
46+
image: { service: { entrypoint: 'astro/assets/services/sharp' } },
47+
});

apps/docs/package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "docs",
3+
"type": "module",
4+
"version": "0.0.10",
5+
"private": true,
6+
"license": "MIT",
7+
"scripts": {
8+
"dev": "astro dev",
9+
"start": "astro dev",
10+
"build": "astro build",
11+
"preview": "astro preview",
12+
"astro": "astro"
13+
},
14+
"dependencies": {
15+
"@astrojs/starlight": "^0.7.2",
16+
"astro": "^2.10.8",
17+
"sharp": "^0.32.1"
18+
}
19+
}

apps/docs/public/favicon.png

8.13 KB
Loading

apps/docs/src/assets/logo.png

57.5 KB
Loading

0 commit comments

Comments
 (0)