Skip to content

Commit 531b3f2

Browse files
committed
chore: wip
1 parent e7632f6 commit 531b3f2

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

config/cloud.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
},
3333

3434
ai: true, // deploys AI endpoints
35-
cli: true, // deploys CLI setup endpoint
35+
cli: true, // deploys CLI setup endpoint (./bootstrap)
3636
docs: true, // deploys documentation
3737
api: true, // deploys API
3838
fileSystem: true, // enables file system

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function create(buddy: CLI) {
1515
components: 'Are you building UI components?',
1616
webComponents: 'Automagically built optimized custom elements/web components?',
1717
vue: 'Automagically built a Vue component library?',
18-
pages: 'How about views/views?',
18+
views: 'How about views?',
1919
functions: 'Are you developing functions/composables?',
2020
api: 'Are you building an API?',
2121
database: 'Do you need a database?',
@@ -29,7 +29,7 @@ export function create(buddy: CLI) {
2929
.option('-c, --components', descriptions.components, { default: true }) // if no, -v and -w would be false
3030
.option('-w, --web-components', descriptions.webComponents, { default: true })
3131
.option('-v, --vue', descriptions.vue, { default: true })
32-
.option('-p, --views', descriptions.pages, { default: true }) // views need an HTTP server
32+
.option('-p, --views', descriptions.views, { default: true }) // i.e. `buddy dev`
3333
.option('-f, --functions', descriptions.functions, { default: true }) // if no, API would be false
3434
.option('-a, --api', descriptions.api, { default: true }) // APIs need an HTTP server & assumes functions is true
3535
.option('-d, --database', descriptions.database, { default: true })
@@ -59,8 +59,6 @@ export function create(buddy: CLI) {
5959
}
6060

6161
log.info(bold('Welcome to the Stacks Framework! ⚛️'))
62-
// console.log(`cd ${link(path, `vscode://file/${path}:1`)} && code .`)
63-
// console.log()
6462
log.info('To learn more, visit https://stacksjs.org')
6563

6664
process.exit(ExitCode.Success)
@@ -91,16 +89,15 @@ function onlineCheck() {
9189

9290
async function download(name: string, path: string, options: CreateOptions) {
9391
log.info('Setting up your stack.')
94-
const result = await runCommand(`giget stacks ${name}`, options)
92+
const result = await runCommand(`bunx giget stacks ${name}`, options)
9593
log.success(`Successfully scaffolded your project at ${cyan(path)}`)
9694

9795
return result
9896
}
9997

10098
async function ensureEnv(path: string, options: CreateOptions) {
10199
log.info('Ensuring your environment is ready...')
102-
// todo: this should check for whether the proper Node version is installed because fnm is not a requirement
103-
await runCommand('tea -SE', { ...options, cwd: path })
100+
await runCommand('pkgx --update ', { ...options, cwd: path })
104101
log.success('Environment is ready')
105102
}
106103

@@ -122,8 +119,9 @@ async function install(path: string, options: CreateOptions) {
122119

123120
await runAction(Action.KeyGenerate, { ...options, cwd: path })
124121

125-
result = await runCommand('git init', { ...options, cwd: path })
122+
// TODO: we should ask quite a few questions here, similar how we do in `buddy new my-project`, so we can generate a custom pkgx.yaml file
126123

124+
result = await runCommand('git init', { ...options, cwd: path }) // do we need this? or does giget do this already?
127125
if (result.isErr()) {
128126
log.error(result.error)
129127
process.exit(ExitCode.FatalError)

0 commit comments

Comments
 (0)