Skip to content

Commit cea883b

Browse files
committed
chore: wip
1 parent 1858572 commit cea883b

File tree

11 files changed

+51
-32
lines changed

11 files changed

+51
-32
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Stacks Changelog
22

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+
316
## v0.64.2...v0.64.3
417

518
[compare changes](https://github.com/stacksjs/stacks/compare/v0.64.2...v0.64.3)

resources/views/dashboard/components/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ useHead({
160160
</td>
161161

162162
<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
164164
</td>
165165

166166
<td class="whitespace-nowrap px-3 py-4 text-right text-sm text-gray-500">
@@ -186,7 +186,7 @@ useHead({
186186
</td>
187187

188188
<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
190190
</td>
191191

192192
<td class="whitespace-nowrap px-3 py-4 text-right text-sm text-gray-500">
@@ -212,7 +212,7 @@ useHead({
212212
</td>
213213

214214
<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
216216
</td>
217217

218218
<td class="whitespace-nowrap px-3 py-4 text-right text-sm text-gray-500">

storage/framework/core/actions/src/helpers/lib-entries.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ export function generateEntryPointData(type: LibraryType): string {
104104

105105
for (const component of library.vueComponents.tags.map((tag) => tag.name)) {
106106
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'`)
109109
}
110110

111111
// join the array into a string with each element being on a new line
@@ -129,11 +129,11 @@ export function generateEntryPointData(type: LibraryType): string {
129129

130130
for (const component of library.webComponents.tags.map((tag) => tag.name)) {
131131
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'`)
133133
declarations.push(`const ${component[1]}CustomElement = defineCustomElement(${component[1]})`)
134134
definitions.push(`customElements.define('${kebabCase(component[1] as string)}', ${component[1]}CustomElement)`)
135135
} else {
136-
imports.push(`import ${component} from '${componentsPath(component)}.stx'`)
136+
imports.push(`import ${component} from '${componentsPath(component)}.vue'`)
137137
declarations.push(`const ${component}CustomElement = defineCustomElement(${component})`)
138138
definitions.push(`customElements.define('${kebabCase(component)}', ${component}CustomElement)`)
139139
}

storage/framework/core/actions/src/make.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default new Action({
6868
export async function createComponent(options: MakeOptions) {
6969
const name = options.name
7070
await writeTextFile({
71-
path: p.userComponentsPath(`${name}.stx`),
71+
path: p.userComponentsPath(`${name}.vue`),
7272
data: `<script setup lang="ts">
7373
console.log('Hello World component created')
7474
</script>
@@ -141,7 +141,7 @@ export async function makePage(options: MakeOptions) {
141141
export async function createPage(options: MakeOptions) {
142142
const name = options.name
143143
await writeTextFile({
144-
path: p.userViewsPath(`${name}.stx`),
144+
path: p.userViewsPath(`${name}.vue`),
145145
data: `<script setup lang="ts">
146146
console.log('Hello World page created')
147147
</script>

storage/framework/core/build/web-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import library from '~/config/library'
77
export default {
88
cwd: process.cwd(),
99
componentsRoot: componentsPath(),
10-
components: '**/[a-zA-Z]*.stx',
10+
components: '**/[a-zA-Z]*.vue',
1111
outFile: frameworkPath('web-types.json'),
1212
packageName: library.name || 'stacks',
1313
packageVersion: await frameworkVersion(),

storage/framework/core/vite-config/src/components.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@ export function vueComponentsBuildOptions(): ViteBuildOptions {
4949
lib: {
5050
entry: p.libraryEntryPath('vue-components'),
5151
name: c.library.vueComponents?.name,
52-
formats: ['cjs', 'es'],
52+
formats: ['es'],
5353
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'
5755

5856
return 'index.?.js'
5957
},

storage/framework/core/vite-config/src/functions.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import type { UserConfig } from 'vite'
44
import { defineConfig } from 'vite'
55
import type { ViteBuildOptions } from '.'
66

7-
// import { autoImports } from '.'
8-
97
export const functionsConfig: UserConfig = {
108
root: functionsPath(),
119
envDir: projectPath(),
@@ -32,12 +30,10 @@ export function functionsBuildOptions(): ViteBuildOptions {
3230
entry: libraryEntryPath('functions'),
3331
name: 'test-name',
3432
// name: library.functions?.name,
35-
formats: ['cjs', 'es'],
33+
formats: ['es'],
3634
fileName: (format: string) => {
3735
if (format === 'es') return 'index.mjs'
3836

39-
if (format === 'cjs') return 'index.cjs'
40-
4137
return 'index.?.js'
4238
},
4339
},

storage/framework/core/web-types.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
"name": "Counter",
1212
"description": "",
1313
"source": {
14-
"module": "../components/Buttons/Counter.stx"
14+
"module": "../components/Buttons/Counter.vue"
1515
}
1616
},
1717
{
1818
"name": "Demo",
1919
"description": "",
2020
"source": {
21-
"module": "../components/Demo.stx"
21+
"module": "../components/Demo.vue"
2222
}
2323
},
2424
{
@@ -43,22 +43,22 @@
4343
}
4444
],
4545
"source": {
46-
"module": "../components/HelloWorld.stx",
46+
"module": "../components/HelloWorld.vue",
4747
"symbol": "default"
4848
}
4949
},
5050
{
5151
"name": "Logo",
5252
"description": "",
5353
"source": {
54-
"module": "../components/Logo.stx"
54+
"module": "../components/Logo.vue"
5555
}
5656
},
5757
{
5858
"name": "ToggleDark",
5959
"description": "",
6060
"source": {
61-
"module": "../components/Buttons/ToggleDark.stx"
61+
"module": "../components/Buttons/ToggleDark.vue"
6262
}
6363
}
6464
]

storage/framework/libs/components/vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
"types": "dist/index.d.ts",
3535
"files": ["README.md", "dist", "src"],
3636
"scripts": {
37-
"dev": "bunx --bun vite -c ../../../core/vite-config/src/components.ts",
37+
"dev": "bunx vite -c ../../../core/vite-config/src/components.ts",
3838
"build": "bunx --bun vite build -c ../../../core/vite-config/src/components.ts",
3939
"prepublishOnly": "bun run build"
4040
},
4141
"devDependencies": {
42-
"stacks": "workspace:*"
42+
"stacks": "latest"
4343
}
4444
}

storage/framework/libs/components/web/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"typescript",
2323
"javascript"
2424
],
25-
"contributors": ["Chris Breuer <chris@stacksjs.org>"],
25+
"contributors": [
26+
"Chris Breuer <chris@stacksjs.org>"
27+
],
2628
"exports": {
2729
".": {
2830
"types": "./dist/index.d.ts",
@@ -33,12 +35,16 @@
3335
"main": "dist/index.cjs",
3436
"module": "dist/index.js",
3537
"types": "dist/index.d.ts",
36-
"files": ["README.md", "dist", "src"],
38+
"files": [
39+
"README.md",
40+
"dist",
41+
"src"
42+
],
3743
"scripts": {
3844
"build": "vite build -c ../build/web-components.ts",
3945
"prepublishOnly": "bun run build"
4046
},
4147
"devDependencies": {
42-
"stacks": "workspace:*"
48+
"stacks": "latest"
4349
}
4450
}

0 commit comments

Comments
 (0)