Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Create Llama
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
Create Llama
Commits
68d81fe2
Commit
68d81fe2
authored
1 year ago
by
Marcus Schiesser
Browse files
Options
Downloads
Patches
Plain Diff
remove bun
parent
9ff8f622
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+0
-6
0 additions, 6 deletions
README.md
helpers/get-pkg-manager.ts
+1
-5
1 addition, 5 deletions
helpers/get-pkg-manager.ts
index.ts
+0
-11
0 additions, 11 deletions
index.ts
with
1 addition
and
22 deletions
README.md
+
0
−
6
View file @
68d81fe2
...
@@ -13,8 +13,6 @@ npx create-llama@latest
...
@@ -13,8 +13,6 @@ npx create-llama@latest
yarn create llama-app
yarn create llama-app
# or
# or
pnpm create llama-app
pnpm create llama-app
# or
bunx create-llama
```
```
You will be asked for the name of your project, and then which framework you want to use
You will be asked for the name of your project, and then which framework you want to use
...
@@ -50,9 +48,5 @@ Options:
...
@@ -50,9 +48,5 @@ Options:
Explicitly tell the CLI to bootstrap the app using Yarn
Explicitly tell the CLI to bootstrap the app using Yarn
--use-bun
Explicitly tell the CLI to bootstrap the app using Bun
```
```
This diff is collapsed.
Click to expand it.
helpers/get-pkg-manager.ts
+
1
−
5
View file @
68d81fe2
export
type
PackageManager
=
"
npm
"
|
"
pnpm
"
|
"
yarn
"
|
"
bun
"
;
export
type
PackageManager
=
"
npm
"
|
"
pnpm
"
|
"
yarn
"
;
export
function
getPkgManager
():
PackageManager
{
export
function
getPkgManager
():
PackageManager
{
const
userAgent
=
process
.
env
.
npm_config_user_agent
||
""
;
const
userAgent
=
process
.
env
.
npm_config_user_agent
||
""
;
...
@@ -11,9 +11,5 @@ export function getPkgManager(): PackageManager {
...
@@ -11,9 +11,5 @@ export function getPkgManager(): PackageManager {
return
"
pnpm
"
;
return
"
pnpm
"
;
}
}
if
(
userAgent
.
startsWith
(
"
bun
"
))
{
return
"
bun
"
;
}
return
"
npm
"
;
return
"
npm
"
;
}
}
This diff is collapsed.
Click to expand it.
index.ts
+
0
−
11
View file @
68d81fe2
...
@@ -65,13 +65,6 @@ const program = new Commander.Command(packageJson.name)
...
@@ -65,13 +65,6 @@ const program = new Commander.Command(packageJson.name)
`
`
Explicitly tell the CLI to bootstrap the application using Yarn
Explicitly tell the CLI to bootstrap the application using Yarn
`
,
)
.
option
(
"
--use-bun
"
,
`
Explicitly tell the CLI to bootstrap the application using Bun
`
,
`
,
)
)
.
option
(
.
option
(
...
@@ -90,8 +83,6 @@ const packageManager = !!program.useNpm
...
@@ -90,8 +83,6 @@ const packageManager = !!program.useNpm
?
"
pnpm
"
?
"
pnpm
"
:
!!
program
.
useYarn
:
!!
program
.
useYarn
?
"
yarn
"
?
"
yarn
"
:
!!
program
.
useBun
?
"
bun
"
:
getPkgManager
();
:
getPkgManager
();
async
function
run
():
Promise
<
void
>
{
async
function
run
():
Promise
<
void
>
{
...
@@ -361,8 +352,6 @@ async function notifyUpdate(): Promise<void> {
...
@@ -361,8 +352,6 @@ async function notifyUpdate(): Promise<void> {
?
"
yarn global add create-llama
"
?
"
yarn global add create-llama
"
:
packageManager
===
"
pnpm
"
:
packageManager
===
"
pnpm
"
?
"
pnpm add -g create-llama
"
?
"
pnpm add -g create-llama
"
:
packageManager
===
"
bun
"
?
"
bun add -g create-llama
"
:
"
npm i -g create-llama
"
;
:
"
npm i -g create-llama
"
;
console
.
log
(
console
.
log
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment