Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Aug 29, 2024
1 parent 57606c2 commit e1f8d10
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 1 addition & 3 deletions storage/framework/core/path/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1213,9 +1213,7 @@ export function typesPath(path?: string) {
export function uiPath(path?: string, options?: { relative?: boolean }) {
const absolutePath = corePath(`ui/${path || ''}`)

if (options?.relative) {
return relative(process.cwd(), absolutePath)
}
if (options?.relative) return relative(process.cwd(), absolutePath)

return absolutePath
}
Expand Down
16 changes: 8 additions & 8 deletions storage/framework/core/vite-config/src/components.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { alias } from '@stacksjs/alias'
import { config as c } from '@stacksjs/config'
import { path as p } from '@stacksjs/path'
import { libraryEntryPath, libsPath, projectPath, publicPath, resourcesPath } from '@stacksjs/path'
import { server } from '@stacksjs/server'
import type { ViteConfig } from '@stacksjs/types'
import { autoImports, components, cssEngine, devtools, inspect, uiEngine } from '@stacksjs/vite-plugin'
import { defineConfig } from 'vite'
import type { ViteBuildOptions } from '.'

const config = {
root: p.libsPath('components/vue'),
envDir: p.projectPath(),
root: libsPath('components/vue'),
envDir: projectPath(),
envPrefix: 'FRONTEND_',
publicDir: p.publicPath(),
publicDir: publicPath(),
base: '/libs/',

assetsInclude: [p.publicPath('**/*'), p.resourcesPath('assets/*'), p.resourcesPath('assets/**/*')],
assetsInclude: [publicPath('**/*'), resourcesPath('assets/*'), resourcesPath('assets/**/*')],

server: server({
type: 'library',
Expand Down Expand Up @@ -44,10 +44,10 @@ const config = {

export function vueComponentsBuildOptions(): ViteBuildOptions {
return {
outDir: p.libsPath('components/vue/dist'),
outDir: libsPath('components/vue/dist'),
emptyOutDir: true,
lib: {
entry: p.libraryEntryPath('vue-components'),
entry: libraryEntryPath('vue-components'),
name: c.library.vueComponents?.name,
formats: ['es'],
fileName: (format: string) => {
Expand All @@ -59,7 +59,7 @@ export function vueComponentsBuildOptions(): ViteBuildOptions {

rollupOptions: {
external: ['vue', '@stacksjs/path'],
input: p.libraryEntryPath('vue-components'),
input: libraryEntryPath('vue-components'),
output: {
globals: {
vue: 'Vue',
Expand Down

0 comments on commit e1f8d10

Please sign in to comment.