Skip to content

Commit 35063b9

Browse files
committed
chore: wip
1 parent c78db18 commit 35063b9

File tree

8 files changed

+79
-47
lines changed

8 files changed

+79
-47
lines changed

bun.lockb

24 Bytes
Binary file not shown.
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
await Bun.build({
2-
entrypoints: ['./src/index.ts'],
1+
import { intro, outro } from '../build/src'
2+
3+
const { startTime } = await intro({
4+
dir: import.meta.dir,
5+
})
36

7+
const result = await Bun.build({
8+
entrypoints: ['./src/index.ts'],
49
outdir: './dist',
510
format: 'esm',
611
target: 'bun',
712
sourcemap: 'linked',
813
minify: true,
9-
1014
external: ['@stacksjs/utils'],
1115
})
16+
17+
await outro({
18+
dir: import.meta.dir,
19+
startTime,
20+
result,
21+
})

storage/framework/core/auth/build.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
import { intro, outro } from '../build/src'
2+
3+
const { startTime } = await intro({
4+
dir: import.meta.dir,
5+
})
6+
17
const result = await Bun.build({
28
entrypoints: ['./src/index.ts'],
39
outdir: './dist',
@@ -7,4 +13,8 @@ const result = await Bun.build({
713
minify: true,
814
})
915

10-
if (!result.success) console.log(result)
16+
await outro({
17+
dir: import.meta.dir,
18+
startTime,
19+
result,
20+
})

storage/framework/core/buddy/build.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
await Bun.build({
1+
import { intro, outro } from '../build/src'
2+
3+
const { startTime } = await intro({
4+
dir: import.meta.dir,
5+
})
6+
7+
const result = await Bun.build({
28
entrypoints: ['./src/index.ts', './src/cli.ts'],
39

410
outdir: './dist',
@@ -26,3 +32,9 @@ await Bun.build({
2632
'bun',
2733
],
2834
})
35+
36+
await outro({
37+
dir: import.meta.dir,
38+
startTime,
39+
result,
40+
})
Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
1-
export * from './links'
1+
import generateGoogle from './generators/google'
2+
import generateIcs from './generators/ics'
3+
import generateOutlook from './generators/weboutlook'
4+
import generateYahoo from './generators/yahoo'
5+
import type { CalendarLink } from './types'
6+
7+
const link: CalendarLink = {
8+
from: new Date('2022-12-12 01:00:00'),
9+
to: new Date('2022-12-12 05:00:00'),
10+
allDay: false,
11+
address: 'Playa Vista, Los Angeles, CA, USA',
12+
title: 'test appointment',
13+
description: 'test description',
14+
timezone: 'EDT',
15+
}
16+
17+
// functions that mutate state and trigger updates
18+
function exportCalendarGoogle(): string {
19+
return generateGoogle(link)
20+
}
21+
22+
// functions that mutate state and trigger updates
23+
function exportCalendarIcs(): string {
24+
return generateIcs(link)
25+
}
26+
27+
// functions that mutate state and trigger updates
28+
function exportCalendarOutlook(): string {
29+
return generateOutlook(link)
30+
}
31+
32+
// functions that mutate state and trigger updates
33+
function exportCalendarYahoo(): string {
34+
return generateYahoo(link)
35+
}
36+
37+
export { exportCalendarIcs, exportCalendarGoogle, exportCalendarOutlook, exportCalendarYahoo }

storage/framework/core/calendar/src/links.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

storage/framework/core/cli/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@
6161
"@stacksjs/types": "workspace:*",
6262
"@stacksjs/utils": "workspace:*",
6363
"@stacksjs/validation": "workspace:*",
64-
"@types/prompts": "^2.4.9",
6564
"cac": "^6.7.14",
65+
"consola": "^3.2.3",
6666
"kolorist": "1.8.0",
6767
"ora": "^8.1.0",
6868
"prompts": "^2.4.2"
6969
},
7070
"devDependencies": {
71-
"@stacksjs/development": "workspace:*"
71+
"@stacksjs/development": "workspace:*",
72+
"@types/prompts": "^2.4.9"
7273
}
7374
}

storage/framework/core/logging/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
"@stacksjs/cli": "workspace:*",
3939
"@stacksjs/config": "workspace:*",
4040
"@stacksjs/error-handling": "workspace:*",
41+
"@stacksjs/path": "workspace:*",
4142
"@stacksjs/storage": "workspace:*",
42-
"@stacksjs/validation": "workspace:*",
43-
"consola": "^3.2.3"
43+
"@stacksjs/validation": "workspace:*"
4444
},
4545
"devDependencies": {
4646
"typescript": "^5.5.4"

0 commit comments

Comments
 (0)