File tree Expand file tree Collapse file tree 11 files changed +51
-32
lines changed
resources/views/dashboard/components Expand file tree Collapse file tree 11 files changed +51
-32
lines changed Original file line number Diff line number Diff line change 1
1
# Stacks Changelog
2
2
3
+ ## v0.64.3...v0.64.4
4
+
5
+ [ compare changes] ( https://github.com/stacksjs/stacks/compare/v0.64.3...v0.64.4 )
6
+
7
+ ### 🏡 Chore
8
+
9
+ - Wip ([ 9809f04f4] ( https://github.com/stacksjs/stacks/commit/9809f04f4 ) )
10
+ - Release v0.64.4 ([ 1858572b9] ( https://github.com/stacksjs/stacks/commit/1858572b9 ) )
11
+
12
+ ### ❤️ Contributors
13
+
14
+ - Chris < chrisbreuer93@gmail.com >
15
+
3
16
## v0.64.2...v0.64.3
4
17
5
18
[ compare changes] ( https://github.com/stacksjs/stacks/compare/v0.64.2...v0.64.3 )
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ useHead({
160
160
</td >
161
161
162
162
<td class =" whitespace-nowrap px-3 py-4 text-sm text-gray-500 font-mono" >
163
- ./resources/components/component-a.stx
163
+ ./resources/components/component-a.vue
164
164
</td >
165
165
166
166
<td class =" whitespace-nowrap px-3 py-4 text-right text-sm text-gray-500" >
@@ -186,7 +186,7 @@ useHead({
186
186
</td >
187
187
188
188
<td class =" whitespace-nowrap px-3 py-4 text-sm text-gray-500 font-mono" >
189
- ./resources/components/component-b.stx
189
+ ./resources/components/component-b.vue
190
190
</td >
191
191
192
192
<td class =" whitespace-nowrap px-3 py-4 text-right text-sm text-gray-500" >
@@ -212,7 +212,7 @@ useHead({
212
212
</td >
213
213
214
214
<td class =" whitespace-nowrap px-3 py-4 text-sm text-gray-500 font-mono" >
215
- ./resources/components/component-c.stx
215
+ ./resources/components/component-c.vue
216
216
</td >
217
217
218
218
<td class =" whitespace-nowrap px-3 py-4 text-right text-sm text-gray-500" >
Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ export function generateEntryPointData(type: LibraryType): string {
104
104
105
105
for ( const component of library . vueComponents . tags . map ( ( tag ) => tag . name ) ) {
106
106
if ( Array . isArray ( component ) )
107
- arr . push ( `export { default as ${ component [ 1 ] } } from '${ componentsPath ( component [ 0 ] ) } .stx '` )
108
- else arr . push ( `export { default as ${ component } } from '${ componentsPath ( component ) } .stx '` )
107
+ arr . push ( `export { default as ${ component [ 1 ] } } from '${ componentsPath ( component [ 0 ] ) } .vue '` )
108
+ else arr . push ( `export { default as ${ component } } from '${ componentsPath ( component ) } .vue '` )
109
109
}
110
110
111
111
// join the array into a string with each element being on a new line
@@ -129,11 +129,11 @@ export function generateEntryPointData(type: LibraryType): string {
129
129
130
130
for ( const component of library . webComponents . tags . map ( ( tag ) => tag . name ) ) {
131
131
if ( Array . isArray ( component ) ) {
132
- imports . push ( `import ${ component [ 1 ] } from '${ componentsPath ( component [ 0 ] ) } .stx '` )
132
+ imports . push ( `import ${ component [ 1 ] } from '${ componentsPath ( component [ 0 ] ) } .vue '` )
133
133
declarations . push ( `const ${ component [ 1 ] } CustomElement = defineCustomElement(${ component [ 1 ] } )` )
134
134
definitions . push ( `customElements.define('${ kebabCase ( component [ 1 ] as string ) } ', ${ component [ 1 ] } CustomElement)` )
135
135
} else {
136
- imports . push ( `import ${ component } from '${ componentsPath ( component ) } .stx '` )
136
+ imports . push ( `import ${ component } from '${ componentsPath ( component ) } .vue '` )
137
137
declarations . push ( `const ${ component } CustomElement = defineCustomElement(${ component } )` )
138
138
definitions . push ( `customElements.define('${ kebabCase ( component ) } ', ${ component } CustomElement)` )
139
139
}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default new Action({
68
68
export async function createComponent ( options : MakeOptions ) {
69
69
const name = options . name
70
70
await writeTextFile ( {
71
- path : p . userComponentsPath ( `${ name } .stx ` ) ,
71
+ path : p . userComponentsPath ( `${ name } .vue ` ) ,
72
72
data : `<script setup lang="ts">
73
73
console.log('Hello World component created')
74
74
</script>
@@ -141,7 +141,7 @@ export async function makePage(options: MakeOptions) {
141
141
export async function createPage ( options : MakeOptions ) {
142
142
const name = options . name
143
143
await writeTextFile ( {
144
- path : p . userViewsPath ( `${ name } .stx ` ) ,
144
+ path : p . userViewsPath ( `${ name } .vue ` ) ,
145
145
data : `<script setup lang="ts">
146
146
console.log('Hello World page created')
147
147
</script>
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import library from '~/config/library'
7
7
export default {
8
8
cwd : process . cwd ( ) ,
9
9
componentsRoot : componentsPath ( ) ,
10
- components : '**/[a-zA-Z]*.stx ' ,
10
+ components : '**/[a-zA-Z]*.vue ' ,
11
11
outFile : frameworkPath ( 'web-types.json' ) ,
12
12
packageName : library . name || 'stacks' ,
13
13
packageVersion : await frameworkVersion ( ) ,
Original file line number Diff line number Diff line change @@ -49,11 +49,9 @@ export function vueComponentsBuildOptions(): ViteBuildOptions {
49
49
lib : {
50
50
entry : p . libraryEntryPath ( 'vue-components' ) ,
51
51
name : c . library . vueComponents ?. name ,
52
- formats : [ 'cjs' , ' es'] ,
52
+ formats : [ 'es' ] ,
53
53
fileName : ( format : string ) => {
54
- if ( format === 'es' ) return 'index.mjs'
55
-
56
- if ( format === 'cjs' ) return 'index.cjs'
54
+ if ( format === 'es' ) return 'index.js'
57
55
58
56
return 'index.?.js'
59
57
} ,
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import type { UserConfig } from 'vite'
4
4
import { defineConfig } from 'vite'
5
5
import type { ViteBuildOptions } from '.'
6
6
7
- // import { autoImports } from '.'
8
-
9
7
export const functionsConfig : UserConfig = {
10
8
root : functionsPath ( ) ,
11
9
envDir : projectPath ( ) ,
@@ -32,12 +30,10 @@ export function functionsBuildOptions(): ViteBuildOptions {
32
30
entry : libraryEntryPath ( 'functions' ) ,
33
31
name : 'test-name' ,
34
32
// name: library.functions?.name,
35
- formats : [ 'cjs' , ' es'] ,
33
+ formats : [ 'es' ] ,
36
34
fileName : ( format : string ) => {
37
35
if ( format === 'es' ) return 'index.mjs'
38
36
39
- if ( format === 'cjs' ) return 'index.cjs'
40
-
41
37
return 'index.?.js'
42
38
} ,
43
39
} ,
Original file line number Diff line number Diff line change 11
11
"name" : " Counter" ,
12
12
"description" : " " ,
13
13
"source" : {
14
- "module" : " ../components/Buttons/Counter.stx "
14
+ "module" : " ../components/Buttons/Counter.vue "
15
15
}
16
16
},
17
17
{
18
18
"name" : " Demo" ,
19
19
"description" : " " ,
20
20
"source" : {
21
- "module" : " ../components/Demo.stx "
21
+ "module" : " ../components/Demo.vue "
22
22
}
23
23
},
24
24
{
43
43
}
44
44
],
45
45
"source" : {
46
- "module" : " ../components/HelloWorld.stx " ,
46
+ "module" : " ../components/HelloWorld.vue " ,
47
47
"symbol" : " default"
48
48
}
49
49
},
50
50
{
51
51
"name" : " Logo" ,
52
52
"description" : " " ,
53
53
"source" : {
54
- "module" : " ../components/Logo.stx "
54
+ "module" : " ../components/Logo.vue "
55
55
}
56
56
},
57
57
{
58
58
"name" : " ToggleDark" ,
59
59
"description" : " " ,
60
60
"source" : {
61
- "module" : " ../components/Buttons/ToggleDark.stx "
61
+ "module" : " ../components/Buttons/ToggleDark.vue "
62
62
}
63
63
}
64
64
]
Original file line number Diff line number Diff line change 34
34
"types" : " dist/index.d.ts" ,
35
35
"files" : [" README.md" , " dist" , " src" ],
36
36
"scripts" : {
37
- "dev" : " bunx --bun vite -c ../../../core/vite-config/src/components.ts" ,
37
+ "dev" : " bunx vite -c ../../../core/vite-config/src/components.ts" ,
38
38
"build" : " bunx --bun vite build -c ../../../core/vite-config/src/components.ts" ,
39
39
"prepublishOnly" : " bun run build"
40
40
},
41
41
"devDependencies" : {
42
- "stacks" : " workspace:* "
42
+ "stacks" : " latest "
43
43
}
44
44
}
Original file line number Diff line number Diff line change 22
22
" typescript" ,
23
23
" javascript"
24
24
],
25
- "contributors" : [" Chris Breuer <chris@stacksjs.org>" ],
25
+ "contributors" : [
26
+ " Chris Breuer <chris@stacksjs.org>"
27
+ ],
26
28
"exports" : {
27
29
"." : {
28
30
"types" : " ./dist/index.d.ts" ,
33
35
"main" : " dist/index.cjs" ,
34
36
"module" : " dist/index.js" ,
35
37
"types" : " dist/index.d.ts" ,
36
- "files" : [" README.md" , " dist" , " src" ],
38
+ "files" : [
39
+ " README.md" ,
40
+ " dist" ,
41
+ " src"
42
+ ],
37
43
"scripts" : {
38
44
"build" : " vite build -c ../build/web-components.ts" ,
39
45
"prepublishOnly" : " bun run build"
40
46
},
41
47
"devDependencies" : {
42
- "stacks" : " workspace:* "
48
+ "stacks" : " latest "
43
49
}
44
50
}
You can’t perform that action at this time.
0 commit comments