Skip to content

Commit 7ecb3e0

Browse files
committed
chore: wip
chore: wip chore: wip chore: wip chore: wip chore: wip chore: wip chore: wip chore: wip
1 parent e746efc commit 7ecb3e0

File tree

19 files changed

+227
-29
lines changed

19 files changed

+227
-29
lines changed

bootstrap

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,35 @@ fi
2525

2626
# Get the directory of the current script and go up 3 directories
2727
PROJECT_ROOT="$(cd "$(dirname "$0")" && pwd)"
28+
CLI_PATH="$PROJECT_ROOT/storage/framework/core/buddy/src/cli.ts"
29+
SCRIPT_PATH="$PROJECT_ROOT/storage/framework/scripts/pkgx-install"
30+
LOG_PATH="$PROJECT_ROOT/storage/logs/console.log"
31+
32+
if [[ $* == *--verbose* ]]; then
33+
echo "Project root: $PROJECT_ROOT"
34+
echo "CLI path: $CLI_PATH"
35+
echo "Script path: $SCRIPT_PATH"
36+
echo "Log path: $LOG_PATH"
37+
fi
2838

2939
cd $PROJECT_ROOT
3040
# Run the pkgx-install script
3141
if [[ $* == *--verbose* ]]; then
32-
"./storage/framework/scripts/pkgx-install"
42+
"$SCRIPT_PATH"
3343
# bun --bun ./storage/framework/core/buddy/src/cli.ts setup --verbose
3444
else
35-
"./storage/framework/scripts/pkgx-install" > /dev/null 2>&1
45+
"$SCRIPT_PATH" > /dev/null 2>&1
3646
# bun --bun ./storage/framework/core/buddy/src/cli.ts setup
3747
fi
3848

3949
# Create a named pipe
4050
mkfifo /tmp/mypipe
4151

4252
# Run the command, send output to both the console and the pipe
43-
bun --bun ./storage/framework/core/buddy/src/cli.ts setup | tee /tmp/mypipe &
53+
bun --bun $CLI_PATH setup | tee /tmp/mypipe &
4454

4555
# Read from the pipe, add timestamps, and append to the file
46-
while IFS= read -r line; do echo "$(date '+[%Y-%m-%d %H:%M:%S]') $line"; done < /tmp/mypipe >> storage/logs/console.log
56+
while IFS= read -r line; do echo "$(date '+[%Y-%m-%d %H:%M:%S]') $line"; done < /tmp/mypipe >> $LOG_PATH
4757

4858
# Remove the named pipe
4959
rm /tmp/mypipe

bun.lockb

46.2 KB
Binary file not shown.

config/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ const sidebar = {
282282
export default {
283283
lang: 'en-US',
284284
title: 'Stacks',
285-
description: 'Rapid application, cloud & library framework.',
285+
description: 'Rapid application, cloud & library development framework.',
286286
lastUpdated: true,
287287

288288
themeConfig: {

docs/_data/team.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,29 @@ export const core = [
1313
sponsor: 'https://github.com/sponsors/chrisbbreuer',
1414
},
1515
{
16-
avatar: 'https://www.github.com/brianzzzasd.png',
17-
name: 'Brian',
16+
avatar: 'https://avatars.githubusercontent.com/u/977413',
17+
name: 'Dorell James',
1818
title: 'A collaborative being',
1919
org: 'Stacks',
2020
orgLink: 'https://stacksjs.org/',
2121
desc: 'Core team member of Stacks.',
2222
links: [
23-
{ icon: 'github', link: 'https://github.com/brianzzzasd' },
24-
{ icon: 'twitter', link: 'https://twitter.com/brianzzzasd' },
23+
{ icon: 'github', link: 'https://github.com/dorelljames' },
24+
{ icon: 'twitter', link: 'https://twitter.com/dorelljames' },
2525
],
26-
sponsor: 'https://github.com/sponsors/brianzzzasd',
26+
sponsor: 'https://github.com/sponsors/dorelljames',
27+
},
28+
{
29+
avatar: 'https://avatars.githubusercontent.com/u/29087513',
30+
name: 'Glenn Michael',
31+
title: 'A collaborative being',
32+
org: 'Stacks',
33+
orgLink: 'https://stacksjs.org/',
34+
desc: 'Core team member of Stacks.',
35+
links: [
36+
{ icon: 'github', link: 'https://github.com/glennmichael123' },
37+
],
38+
sponsor: 'https://github.com/sponsors/dorelljames',
2739
},
2840
]
2941

docs/team.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: page
33
title: Meet the Team
4-
description: The development of Stacks is guided by an international team.
4+
description: A team of incredible people.
55
---
66

77
<script setup>
@@ -18,8 +18,7 @@ import { core, emeriti } from './_data/team'
1818
<VPTeamPageTitle>
1919
<template #title>Meet the Team</template>
2020
<template #lead>
21-
The development of Stacks is guided by an international team, some of whom
22-
have chosen to be featured below.
21+
A team of incredible talent & ambition.
2322
</template>
2423
</VPTeamPageTitle>
2524
<VPTeamMembers :members="core" />

public/aws.webp

-5.41 KB
Binary file not shown.

public/logo.png

6.19 KB
Loading

storage/framework/core/buddy/src/commands/setup.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import process from 'node:process'
22
import { path as p } from '@stacksjs/path'
33
import { handleError } from '@stacksjs/error-handling'
4+
import { storage } from '@stacksjs/storage'
45
import { log, runCommand } from '@stacksjs/cli'
56
import { ExitCode } from '@stacksjs/types'
67
import type { CLI, CliOptions } from '@stacksjs/types'
@@ -68,16 +69,21 @@ async function initializeProject(options: CliOptions): Promise<void> {
6869
log.success('Installed node_modules')
6970
log.info('Ensuring .env exists...')
7071

71-
const envResult = await runCommand('cp .env.example .env', {
72-
cwd: options.cwd || p.projectPath(),
73-
})
72+
// if storage.exists('.env') {
73+
if (storage.doesNotExist(p.projectPath('.env'))) {
74+
const envResult = await runCommand('cp .env.example .env', {
75+
cwd: options.cwd || p.projectPath(),
76+
})
7477

75-
if (envResult.isErr()) {
76-
handleError(envResult.error)
77-
process.exit(ExitCode.FatalError)
78+
if (envResult.isErr()) {
79+
handleError(envResult.error)
80+
process.exit(ExitCode.FatalError)
81+
}
82+
83+
log.success('.env created')
7884
}
85+
else { log.success('.env existed') }
7986

80-
log.success('.env exists')
8187
log.info('Generating application key...')
8288

8389
const keyResult = await runCommand('buddy key:generate', {

storage/framework/core/cloud/src/cloud/lambda/cli-setup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mkfifo /tmp/mypipe
4040
bun --bun ./storage/framework/core/buddy/src/cli.ts setup | tee /tmp/mypipe &
4141
4242
# Read from the pipe, add timestamps, and append to the file
43-
while IFS= read -r line; do echo "$(date '+[%Y-%m-%d %H:%M:%S]') $line"; done < /tmp/mypipe >> storage/logs/console.log
43+
while IFS= read -r line; do echo "$(date '+[%Y-%m-%d %H:%M:%S]') $line"; done < /tmp/mypipe >> ./storage/logs/console.log
4444
4545
# Remove the named pipe
4646
rm /tmp/mypipe

storage/framework/core/docs/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { log, runCommand } from '@stacksjs/cli'
22

3-
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external vitepress --external @stacksjs/config --external @stacksjs/alias --external @stacksjs/path --external @stacksjs/vite --external @stacksjs/server --external @stacksjs/env --external @stacksjs/cli --target bun', {
3+
const result = await runCommand('bun build ./src/index.ts --outdir dist --format esm --external vitepress --external @stacksjs/config --external @stacksjs/alias --external @stacksjs/path --external @stacksjs/vite --external @stacksjs/server --external @stacksjs/env --external @stacksjs/cli --external @vite-pwa/vitepress --target bun', {
44
cwd: import.meta.dir,
55
})
66

0 commit comments

Comments
 (0)