Skip to content

Commit b9fb8aa

Browse files
chore: wip
1 parent be431f1 commit b9fb8aa

File tree

15 files changed

+317
-1
lines changed

15 files changed

+317
-1
lines changed

.stacks/core/vite/src/music.ts

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import type { ViteConfig } from '@stacksjs/types'
2+
import { path as p } from '@stacksjs/path'
3+
import { alias } from '@stacksjs/alias'
4+
import generateSitemap from 'vite-ssg-sitemap'
5+
6+
import UnoCSS from 'unocss/vite'
7+
import { layouts, pages, uiEngine } from './stacks'
8+
import { defineConfig } from './'
9+
10+
export const pagesConfig = {
11+
root: p.projectStoragePath('framework/desktop/music'),
12+
envDir: p.projectPath(),
13+
envPrefix: 'FRONTEND_',
14+
publicDir: p.projectPath('public'),
15+
16+
resolve: {
17+
alias,
18+
},
19+
20+
server: {
21+
host: '127.0.0.1',
22+
port: 3333,
23+
},
24+
25+
plugins: [
26+
uiEngine(),
27+
pages({
28+
dirs: p.frameworkPath('stacks/music/src/pages'),
29+
}),
30+
UnoCSS({
31+
configFile: p.corePath('vite/src/uno.config.ts'),
32+
}),
33+
layouts({
34+
layoutsDirs: p.frameworkPath('stacks/music/src/layouts'),
35+
}),
36+
],
37+
38+
// https://github.com/antfu/vite-ssg
39+
ssgOptions: {
40+
script: 'async',
41+
formatting: 'minify',
42+
onFinished() { generateSitemap() },
43+
},
44+
45+
ssr: {
46+
// TODO: workaround until they support native ESM
47+
noExternal: ['workbox-window', /vue-i18n/],
48+
},
49+
} satisfies ViteConfig
50+
51+
export default defineConfig(({ command }) => {
52+
if (command === 'serve')
53+
return pagesConfig
54+
55+
// command === 'build'
56+
return pagesConfig
57+
})

.stacks/stacks/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"repository": {
1111
"type": "git",
1212
"url": "git+https://github.com/stacksjs/stacks.git",
13-
"directory": "./.stacks/core/dashboard"
13+
"directory": "./.stacks/stacks/dashboard"
1414
},
1515
"bugs": {
1616
"url": "https://github.com/stacksjs/stacks/issues"

.stacks/stacks/music/package.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "@stacksjs/music",
3+
"type": "module",
4+
"version": "0.51.0",
5+
"description": "Stacks Music",
6+
"author": "Chris Breuer",
7+
"license": "MIT",
8+
"funding": "https://github.com/sponsors/chrisbbreuer",
9+
"homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/dashboard#readme",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/stacksjs/stacks.git",
13+
"directory": "./.stacks/stacks/music"
14+
},
15+
"bugs": {
16+
"url": "https://github.com/stacksjs/stacks/issues"
17+
},
18+
"keywords": [
19+
"dashboard",
20+
"reporting",
21+
"analytics",
22+
"logs",
23+
"debugging",
24+
"requests",
25+
"stacks"
26+
],
27+
"module": "dist/index.js",
28+
"types": "dist/index.d.ts",
29+
"contributors": [
30+
"Chris Breuer <chris@ow3.org>"
31+
],
32+
"files": [
33+
"README.md",
34+
"dist"
35+
],
36+
"scripts": {
37+
"build": "bun --bun build.ts",
38+
"build:app": "bun --bun vite build ../../../storage/framework/desktop/music -c ../../core/vite/src/music.ts",
39+
"dev": "bun --bun vite serve ../../../storage/framework/desktop/music -c ../../core/vite/src/music.ts",
40+
"dev:app": "tauri dev",
41+
"prepublishOnly": "bun --bun run build",
42+
"typecheck": "bun --bun tsc --noEmit"
43+
},
44+
"devDependencies": {
45+
"@stacksjs/development": "workspace:*"
46+
}
47+
}
48+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div>
3+
sample component
4+
</div>
5+
</template>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<template>
2+
<RouterView />
3+
</template>
4+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
<script setup lang="ts">
3+
import SampleComponent from '../components/SampleComponent.vue'
4+
</script>
5+
6+
<template>
7+
<div>
8+
<SampleComponent />
9+
hello world music
10+
</div>
11+
</template>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
<script setup lang="ts">
3+
import SampleComponent from '../components/SampleComponent.vue'
4+
</script>
5+
6+
<template>
7+
<div>
8+
<SampleComponent />
9+
hello world music
10+
</div>
11+
</template>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* music css is here */

bun.lockb

-99.6 KB
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
node_modules
10+
dist
11+
dist-ssr
12+
*.local
13+
14+
# Editor directories and files
15+
.vscode/
16+
!.vscode/extensions.json
17+
.idea
18+
.DS_Store
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

0 commit comments

Comments
 (0)