Skip to content

Commit 7311b1a

Browse files
committed
chore: wip
1 parent a529a46 commit 7311b1a

File tree

10 files changed

+52
-58
lines changed

10 files changed

+52
-58
lines changed

.stacks/core/actions/src/dev/docs.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ import { runCommand } from '@stacksjs/cli'
22
import { frameworkPath } from '@stacksjs/path'
33
import { NpmScript } from '@stacksjs/types'
44

5-
await runCommand(NpmScript.DevDocs, { cwd: frameworkPath(), verbose: true })
5+
await runCommand(NpmScript.DevDocs, {
6+
cwd: frameworkPath('docs'),
7+
verbose: true,
8+
})

.stacks/core/actions/src/generate/index.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import process from 'node:process'
22
import { log } from '@stacksjs/logging'
33
import { Action, NpmScript } from '@stacksjs/types'
44
import { type GeneratorOptions } from '@stacksjs/types'
5-
import { dumpYaml, runNpmScript } from '@stacksjs/utils'
6-
import { files } from '@stacksjs/storage'
5+
import { runNpmScript } from '@stacksjs/utils'
6+
// import { files } from '@stacksjs/storage'
77
import { projectPath } from '@stacksjs/path'
88
import { runAction } from '../helpers'
9-
import dependencies from '~/config/deps'
109

1110
export async function invoke(options?: GeneratorOptions) {
1211
if (options?.types)
@@ -131,16 +130,11 @@ export function generateMigrations() {
131130
}
132131

133132
export function generateTeaConfig() {
134-
// define your dependencies
135-
const deps = dependencies
136-
137-
// convert the object to yaml
138-
const yamlStr = dumpYaml({ deps })
139133

140134
// write the yaml string to a file in your project root
141-
files.put(projectPath('./tea.yaml'), yamlStr)
135+
// files.put(projectPath('./tea.yaml'), yamlStr)
142136

143-
log.success('Successfully generated `./tea.yaml` based on your `./config/deps` file')
137+
log.success('Successfully generated `./tea.yaml` based on your configs')
144138
}
145139

146140
export async function generateSeeder() {

.stacks/core/config/src/defaults.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import binary from '~/config/binary'
44
import cache from '~/config/cache'
55
import cdn from '~/config/cdn'
66
import database from '~/config/database'
7-
import dependencies from '~/config/deps'
87
import dns from '~/config/dns'
98
import docs from '~/config/docs'
109
import email from '~/config/email'
@@ -26,7 +25,6 @@ const defaults: ResolvedStacksOptions = {
2625
cache,
2726
cdn,
2827
database,
29-
dependencies,
3028
dns,
3129
docs,
3230
email,
@@ -50,7 +48,6 @@ export {
5048
cache,
5149
cdn,
5250
database,
53-
dependencies,
5451
dns,
5552
docs,
5653
email,

.stacks/core/eslint-plugin-stacks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"exports": {
99
".": {
1010
"bun": "./src/index.ts",
11-
"import": "./dist/index.js",
11+
"import": "./dist/index.mjs",
1212
"require": "./dist/index.cjs"
1313
}
1414
},

.stacks/core/eslint-plugin-stacksjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/eslint-plugin-stacksjs",
77
"exports": {
88
".": {
9-
"import": "./dist/index.js",
9+
"import": "./dist/index.mjs",
1010
"require": "./dist/index.cjs"
1111
}
1212
},

.stacks/core/types/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export enum NpmScript {
158158
BuildStacks = 'build:stacks',
159159
Clean = 'rimraf bun.lockb node_modules/ .stacks/**/dist',
160160
Dev = 'dev',
161-
DevDocs = 'bunx vitepress dev ./docs/src',
161+
DevDocs = 'bunx vitepress dev',
162162
DevDesktop = 'dev:desktop',
163163
DevPages = 'dev:pages',
164164
DevFunctions = 'dev:functions',

.stacks/docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/.vitepress

config/docs.ts

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,43 +11,45 @@ const nav = [
1111
{ text: 'Blog', link: 'https://updates.ow3.org' },
1212
]
1313

14-
const sidebarGuide = [
15-
{
16-
text: 'Introduction',
17-
collapsible: true,
18-
items: [
19-
{ text: 'What is Stacks?', link: '/guide/what-is-stacks' },
20-
{ text: 'Getting Started', link: '/guide/getting-started' },
21-
{ text: 'Configuration', link: '/guide/config' },
22-
],
23-
},
14+
const sidebar = {
15+
'/guide/': [
16+
{
17+
text: 'Introduction',
18+
collapsible: true,
19+
items: [
20+
{ text: 'What is Stacks?', link: '/guide/what-is-stacks' },
21+
{ text: 'Getting Started', link: '/guide/getting-started' },
22+
{ text: 'Configuration', link: '/guide/config' },
23+
],
24+
},
2425

25-
{
26-
text: 'Digging Deeper',
27-
collapsible: true,
28-
items: [
29-
{ text: 'How To?', link: '/guide/stacks' },
30-
{ text: 'Workflows / CI', link: '/guide/ci' },
31-
{ text: 'VS Code', link: '/guide/vs-code' },
32-
{ text: 'Apps', link: '/guide/apps' },
33-
{ text: 'Examples', link: '/guide/examples' },
34-
{ text: 'Packages', link: '/guide/packages' },
35-
{ text: 'Testing', link: '/guide/testing' },
36-
{ text: 'Single File Components', link: '/guide/sfcs' },
37-
],
38-
},
26+
{
27+
text: 'Digging Deeper',
28+
collapsible: true,
29+
items: [
30+
{ text: 'How To?', link: '/guide/stacks' },
31+
{ text: 'Workflows / CI', link: '/guide/ci' },
32+
{ text: 'VS Code', link: '/guide/vs-code' },
33+
{ text: 'Apps', link: '/guide/apps' },
34+
{ text: 'Examples', link: '/guide/examples' },
35+
{ text: 'Packages', link: '/guide/packages' },
36+
{ text: 'Testing', link: '/guide/testing' },
37+
{ text: 'Single File Components', link: '/guide/sfcs' },
38+
],
39+
},
3940

40-
{
41-
text: 'Starters',
42-
collapsible: true,
43-
items: [
44-
{ text: 'Vue Starter', link: '/starter/vue' },
45-
{ text: 'Web Component Starter', link: '/starter/web-components' },
46-
{ text: 'Composable Starter', link: '/starter/web-components' },
47-
{ text: 'TypeScript Starter', link: '/starter/web-components' },
48-
],
49-
},
50-
]
41+
{
42+
text: 'Starters',
43+
collapsible: true,
44+
items: [
45+
{ text: 'Vue Starter', link: '/starter/vue' },
46+
{ text: 'Web Component Starter', link: '/starter/web-components' },
47+
{ text: 'Composable Starter', link: '/starter/web-components' },
48+
{ text: 'TypeScript Starter', link: '/starter/web-components' },
49+
],
50+
},
51+
],
52+
}
5153

5254
/**
5355
* **Documentation Options**
@@ -75,10 +77,7 @@ export default {
7577

7678
themeConfig: {
7779
nav,
78-
79-
sidebar: {
80-
'/guide/': sidebarGuide,
81-
},
80+
sidebar,
8281

8382
editLink: {
8483
pattern: 'https://github.com/stacksjs/stacks/edit/main/docs/docs/:path',

resources/components/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is where you create your components.
77
88
## 💡 Get Started
99

10-
It's easy to get started. The only prerequisite is a basic understanding HTML, sprinkled with *minimal* JavaScript. In other words, there is virtually no learning curve.
10+
It's easy to get started. The only prerequisite is a basic understanding of HTML, sprinkled with *minimal* JavaScript. In other words, there is virtually no learning curve.
1111

1212
```bash
1313
# you may use this GitHub template or the following command:

resources/types/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# The Types Folder
22

3-
Any type you export in this namespace, will automatically be available without import throughout your application.
3+
Any type you export in this namespace will automatically be available without import throughout your application.

0 commit comments

Comments
 (0)