Skip to content

Commit f776e9b

Browse files
committed
chore: wip
chore: wip
1 parent 4de3138 commit f776e9b

File tree

5 files changed

+147
-28
lines changed

5 files changed

+147
-28
lines changed

bun.lockb

328 Bytes
Binary file not shown.
Lines changed: 65 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,90 @@
1-
import type { ViteConfig } from '@stacksjs/types'
21
import { path as p } from '@stacksjs/path'
3-
import { alias } from '@stacksjs/alias'
2+
import { defineConfig } from 'vite'
3+
import Vue from '@vitejs/plugin-vue'
44
import generateSitemap from 'vite-ssg-sitemap'
5-
import { autoImports, components, cssEngine, layouts, pages, uiEngine } from './plugins'
6-
import { defineConfig } from '.'
5+
import { server } from '@stacksjs/server'
6+
import { alias } from '@stacksjs/alias'
7+
import VueMacros from 'unplugin-vue-macros/vite'
8+
import { autoImports } from './plugin/auto-imports'
9+
import { components } from './plugin/components'
10+
import { cssEngine } from './plugin/css-engine'
11+
import { devtools } from './plugin/devtools'
12+
import { i18n } from './plugin/i18n'
13+
import { layouts } from './plugin/layouts'
14+
import { markdown } from './plugin/markdown'
15+
import { pwa } from './plugin/pwa'
16+
import { router } from './plugin/router'
17+
18+
// import { fonts } from './plugin/fonts'
19+
20+
// const isMaintenanceMode = config.app.maintenanceMode
21+
// const maintenancePath = isMaintenanceMode ? '' : './maintenance'
22+
23+
export default defineConfig({
24+
build: {
25+
rollupOptions: {
26+
external: ['path', 'fs', 'net', 'tls', 'stream', 'node:process', 'constants', 'node:dns/promises', 'node:util'],
27+
},
28+
},
729

8-
export const pagesConfig = {
9-
root: p.frameworkPath('views/desktop'),
30+
root: p.frameworkPath('views/web'),
31+
publicDir: p.publicPath(),
1032
envDir: p.projectPath(),
1133
envPrefix: 'FRONTEND_',
12-
publicDir: p.projectPath('public'),
1334

14-
resolve: {
15-
alias,
35+
assetsInclude: [
36+
p.resourcesPath('assets/*'),
37+
p.resourcesPath('assets/**/*'),
38+
],
39+
40+
optimizeDeps: {
41+
exclude: ['bun:test', 'webpack', 'chokidar', 'fsevents', '@intlify/unplugin-vue-i18n', '@stacksjs/ui'],
1642
},
1743

18-
server: {
19-
host: '127.0.0.1',
20-
port: 3333,
44+
server: server({
45+
type: 'frontend',
46+
}),
47+
48+
resolve: {
49+
alias,
2150
},
2251

2352
plugins: [
24-
pages({
25-
routesFolder: p.projectStoragePath('framework/dashboard/src/pages'),
53+
VueMacros({
54+
plugins: {
55+
vue: Vue({
56+
include: /\.(stx|vue|md)($|\?)/,
57+
}),
58+
},
2659
}),
2760

28-
uiEngine(),
29-
components(),
61+
router(),
62+
layouts({
63+
extensions: ['stx', 'vue'],
64+
layoutsDirs: p.layoutsPath('', { relative: true }),
65+
}),
3066
autoImports(),
67+
components(),
3168
cssEngine(),
69+
markdown(),
70+
pwa(),
71+
devtools(),
72+
i18n(),
3273

33-
layouts({
34-
layoutsDirs: p.resourcesPath('layouts'),
35-
}, false),
74+
// https://github.com/feat-agency/vite-plugin-webfont-dl
75+
// fonts(),
76+
// webfontDownload(),
3677
],
3778

3879
// https://github.com/antfu/vite-ssg
3980
ssgOptions: {
4081
script: 'async',
4182
formatting: 'minify',
83+
84+
crittersOptions: {
85+
reduceInlineStyles: false,
86+
},
87+
4288
onFinished() {
4389
generateSitemap()
4490
},
@@ -48,12 +94,4 @@ export const pagesConfig = {
4894
// TODO: workaround until they support native ESM
4995
noExternal: ['workbox-window', /vue-i18n/],
5096
},
51-
} satisfies ViteConfig
52-
53-
export default defineConfig(({ command }) => {
54-
if (command === 'serve')
55-
return pagesConfig
56-
57-
// command === 'build'
58-
return pagesConfig
5997
})
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# zsh-buddy
2+
3+
This package contains the zsh-buddy plugin.
4+
5+
## ☘️ Features
6+
7+
- ...
8+
9+
## 🤖 Usage
10+
11+
...
12+
13+
To view the full documentation, please visit [https://stacksjs.org/ui](https://stacksjs.org/zsh).
14+
15+
## 🧪 Testing
16+
17+
```bash
18+
# wip
19+
```
20+
21+
## 📈 Changelog
22+
23+
Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
24+
25+
## 🚜 Contributing
26+
27+
Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
28+
29+
## 🏝 Community
30+
31+
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
32+
33+
[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
34+
35+
For casual chit-chat with others using this package:
36+
37+
[Join the Stacks Discord Server](https://discord.gg/stacksjs)
38+
39+
## 🙏🏼 Credits
40+
41+
Many thanks to the following core technologies & people who have contributed to this plugin:
42+
43+
- [Jess Archer](https://github.com/jessarcher/zsh-artisan/blob/master/artisan.plugin.zsh)
44+
- [Chris Breuer](https://github.com/chrisbbreuer)
45+
- [All Contributors](../../contributors)
46+
47+
## 📄 License
48+
49+
The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
50+
51+
Made with 💙
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "zsh-buddy",
3+
"type": "module",
4+
"version": "0.58.28",
5+
"description": "A better Stacks zsh experience.",
6+
"author": "Chris Breuer",
7+
"license": "MIT",
8+
"funding": "https://github.com/sponsors/chrisbbreuer",
9+
"homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/ui#readme",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/stacksjs/stacks.git",
13+
"directory": "./storage/framework/core/ui"
14+
},
15+
"bugs": {
16+
"url": "https://github.com/stacksjs/stacks/issues"
17+
},
18+
"keywords": [
19+
"ohmyzsh",
20+
"zsh",
21+
"stacks"
22+
],
23+
"contributors": [
24+
"Chris Breuer <chris@stacksjs.org>"
25+
],
26+
"files": [
27+
"buddy.plugin.zsh"
28+
]
29+
}
30+

storage/framework/views/desktop/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import VueHighlightJS from 'vue3-highlightjs'
44
import { routes } from 'vue-router/auto/routes'
55
import '@unocss/reset/tailwind.css'
66
import 'highlight.js/styles/atom-one-light.css'
7-
import './styles/main.css'
7+
import '../../../../../resources/assets/styles/main.css'
88
import { createPinia } from 'pinia'
99
import App from './App.stx'
1010
import 'unocss'

0 commit comments

Comments
 (0)