Skip to content

Commit 9acc19c

Browse files
committed
chore: wip
1 parent e8b5aef commit 9acc19c

File tree

6 files changed

+48
-52
lines changed

6 files changed

+48
-52
lines changed

.stacks/core/router/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { type Route, type RouteCallback, type RouteGroupOptions } from '@stacksjs/types'
1+
import type { Route, RouteCallback, RouteGroupOptions } from '@stacksjs/types'
22
import { handleRequest } from './server'
33
import { projectPath } from '@stacksjs/path'
4-
import { readTextFile } from '@stacksjs/storage'
4+
55
export class Router {
66
private routes: Route[] = []
77

@@ -90,4 +90,4 @@ export class Router {
9090
}
9191
}
9292

93-
export const route: Router = new Router() satisfies Router
93+
export const route = new Router()

.stacks/core/vite/src/plugin/docs.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ export function docsEngine() {
1515
const host = domainParts.join('.')
1616
const docsUrl = `https://${host}`
1717

18-
console.log('docssssUrl', docsUrl)
19-
2018
return {
2119
name: 'stacks-plugin',
2220
configureServer(server: DevServer) {

config/docs.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { path as p } from '@stacksjs/path'
21
import type { DocsConfig } from '@stacksjs/types'
32

43
const nav = [
@@ -28,7 +27,9 @@ const sidebar = {
2827
items: [
2928
{ text: 'APIs', link: '/guide/apis' },
3029
{ text: 'Apps', link: '/guide/apps' },
30+
{ text: 'Buddy', link: '/guide/buddy' },
3131
{ text: 'CI / CD', link: '/guide/ci' },
32+
{ text: 'Composability', link: '/guide/composability' },
3233
{ text: 'Cloud', link: '/guide/cloud' },
3334
{ text: 'Libraries', link: '/guide/libraries' },
3435
{ text: 'Testing', link: '/guide/testing' },
@@ -45,9 +46,6 @@ const sidebar = {
4546
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
4647
*/
4748
export default {
48-
srcDir: p.projectPath('docs'),
49-
outDir: p.projectStoragePath('app/docs'),
50-
cacheDir: p.projectStoragePath('app/cache/docs'),
5149
lang: 'en-US',
5250
title: 'Stacks',
5351
description: 'Rapid application, cloud & library framework.',

docs/api.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

docs/guide/buddy.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# The Buddy CLI
2+
3+
```bash
4+
# buddy make:component HelloWorld # bootstraps HelloWorld.vue component
5+
# buddy make:function hello-world # bootstraps hello-world.ts function
6+
# buddy make:stack hello-world # bootstraps component & function
7+
8+
# buddy install # installs all deps
9+
# buddy update # updates the stack to the latest version
10+
# buddy clean # cleans all deps & dist folders
11+
# buddy fresh # cleans & reinstalls all deps
12+
13+
# buddy dev # stubs everything & and starts smart dev server
14+
# buddy dev:components # stubs components
15+
# buddy dev:web-components # stubs components
16+
# buddy dev:docs # starts docs dev server & opens docs in browser
17+
18+
# buddy build # runs typecheck & builds the project
19+
# buddy build:components # builds component library
20+
# buddy build:functions # builds function library
21+
# buddy build:web-components # builds web components/custom elements library
22+
# buddy build:docs # builds the docs
23+
24+
# buddy deploy:functions # zero-config: Netlify, Vercel, AWS, Cloudflare (and more)
25+
# buddy deploy:docs # zero-config: Netlify & Vercel
26+
27+
# buddy commit # Be a good commitizen. GUI for git commits.
28+
# buddy release # GUI for releasing the libraries & triggers npm releases
29+
# buddy changelog # automatically generates changelog
30+
31+
# buddy lint # lints the codebase
32+
# buddy lint:fix # auto-fixes lint errors
33+
# buddy test:types # runs typecheck
34+
# buddy types:fix # wip
35+
36+
# buddy test # runs whole test suite
37+
# buddy test:e2e # runs e2e tests
38+
# buddy test:unit # runs unit tests
39+
# buddy test:coverage # runs test coverage
40+
41+
# buddy example # run an example script (follow prompts)
42+
```

docs/composability-first-design.md renamed to docs/guide/composability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
What is the Composability-First Design pattern? Also known as "Atomic-First Design," read along for an explanation and to learn more about how these design principles to improve your development experience (DX).
44

5-
![Atomic UI & FX Design](./images/diagram.png)
5+
![Atomic UI & FX Design](../images/diagram.png)
66

77
## The Why
88

0 commit comments

Comments
 (0)