Skip to content

Commit 0113ef2

Browse files
committed
chore: wip
chore: wip chore: wip chore: wip chore: wip chore: wip chore: wip chore: wip
1 parent bfc9b15 commit 0113ef2

File tree

24 files changed

+135
-68
lines changed

24 files changed

+135
-68
lines changed

bun.lockb

31.9 KB
Binary file not shown.

config/docs.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { SocialLinkIcon } from '@stacksjs/types'
12
import type { DocsConfig } from '@stacksjs/types'
23

34
const nav = [
@@ -265,9 +266,9 @@ export default {
265266
},
266267

267268
socialLinks: [
268-
{ icon: 'twitter', link: 'https://twitter.com/stacksjs' },
269-
{ icon: 'github', link: 'https://github.com/stacksjs/stacks' },
270-
{ icon: 'discord', link: 'https://discord.gg/stacksjs' },
269+
{ icon: SocialLinkIcon.Twitter, link: 'https://twitter.com/stacksjs' },
270+
{ icon: SocialLinkIcon.GitHub, link: 'https://github.com/stacksjs/stacks' },
271+
{ icon: SocialLinkIcon.Discord, link: 'https://discord.gg/stacksjs' },
271272
],
272273

273274
// algolia: services.algolia,

storage/framework/docs/.vitepress/config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { defineConfig } from 'vitepress'
22
import { alias } from '@stacksjs/alias'
33
import { path as p } from '@stacksjs/path'
44
import { server } from '@stacksjs/server'
5+
import { transformerTwoslash } from 'vitepress-plugin-twoslash'
56
import userConfig from '../../../../config/docs'
67
import { analyticsHead, faviconHead } from './head'
78

@@ -51,5 +52,11 @@ export default defineConfig({
5152
...analyticsHead,
5253
],
5354

55+
markdown: {
56+
codeTransformers: [
57+
transformerTwoslash(),
58+
],
59+
},
60+
5461
...userConfig,
5562
})

storage/framework/docs/.vitepress/theme/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ import type { Theme } from 'vitepress'
44
import DefaultTheme from 'vitepress/theme'
55
import '../../../../../resources/assets/styles/docs.css'
66

7+
// import TwoSlashFloatingVue from 'vitepress-plugin-twoslash/client'
8+
79
export default {
810
extends: DefaultTheme,
11+
912
Layout: () => {
1013
return h(DefaultTheme.Layout, null, {
1114
// https://vitepress.dev/guide/extending-default-theme#layout-slots
1215
})
1316
},
14-
// enhanceApp({ app, router, siteData }) {
15-
// // ...
17+
18+
// enhanceApp({ app }: EnhanceAppContext) {
19+
// app.use(TwoSlashFloatingVue)
1620
// },
1721
} satisfies Theme

storage/framework/ide/dictionary.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ opensearch
184184
opensearchservice
185185
openweb
186186
openweblabs
187+
orta
187188
outdir
188189
outfile
189190
outro
@@ -259,6 +260,7 @@ treeshaking
259260
triggerable
260261
tsdoc
261262
tsup
263+
twoslash
262264
typecheck
263265
typesense
264266
unconfig

storage/framework/ide/vscode/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/stacksjs/stacks.git",
13-
"directory": "./stacks/vscode"
13+
"directory": "./storage/framework/ide/vscode"
1414
},
1515
"bugs": {
1616
"url": "https://github.com/stacksjs/stacks/issues"
@@ -56,7 +56,8 @@
5656
"mikestead.dotenv",
5757
"pflannery.vscode-versionlens",
5858
"foxundermoon.shell-format",
59-
"mylesmurphy.prettify-ts"
59+
"mylesmurphy.prettify-ts",
60+
"Orta.vscode-twoslash-queries"
6061
],
6162
"devDependencies": {
6263
"@vscode/vsce": "^2.22.0"

storage/framework/stacks/src/actions/src/bump.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import { runCommand } from '@stacksjs/cli'
22
import { path as p } from '@stacksjs/path'
33

44
await runCommand(
5-
'bunx bumpp ./stacks/package.json ./stacks/src/**/package.json ./ide/vscode/package.json --execute "buddy changelog --quiet" --all',
6-
{ cwd: p.frameworkStoragePath(), stdin: 'inherit' },
5+
'bunx bumpp ./package.json ./src/**/package.json ../ide/vscode/package.json --execute "bud changelog --quiet" --all',
6+
{ cwd: p.frameworkStoragePath('stacks'), stdin: 'inherit' },
77
)
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
import { runCommand } from '@stacksjs/cli'
1+
import { execSync, runCommand } from '@stacksjs/cli'
22
import { projectPath } from '@stacksjs/path'
33

4-
await runCommand(`bunx changelogen --output CHANGELOG.md --from $(git describe --abbrev=0 --tags HEAD^) --to $(git describe)`, {
4+
const fromRevision = await execSync('git describe --abbrev=0 --tags HEAD^')
5+
// console.log('fromRevision', fromRevision)
6+
const toRevision = await execSync('git describe')
7+
// console.log('toRevision', toRevision)
8+
9+
await runCommand(`bunx changelogen --output CHANGELOG.md --from ${fromRevision} --to ${toRevision}`, {
510
cwd: projectPath(),
6-
verbose: true,
711
})
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import { runCommands } from '@stacksjs/cli'
1+
import { log, runCommands } from '@stacksjs/cli'
22
import { projectPath } from '@stacksjs/path'
33
import { NpmScript } from '@stacksjs/enums'
44

5+
log.info('Ensuring code style...')
56
await runCommands([NpmScript.LintFix], { cwd: projectPath() })
7+
log.success('Linted')

storage/framework/stacks/src/bud

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bun
2+
import('./buddy/src/cli')

0 commit comments

Comments
 (0)