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
5fec80ce
Commit
5fec80ce
authored
1 year ago
by
Marcus Schiesser
Browse files
Options
Downloads
Patches
Plain Diff
fix: use CJS for create-llama
parent
7364f71a
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
e2e/tsconfig.json
+0
-11
0 additions, 11 deletions
e2e/tsconfig.json
e2e/utils.ts
+4
-8
4 additions, 8 deletions
e2e/utils.ts
package.json
+0
-1
0 additions, 1 deletion
package.json
tsconfig.json
+4
-6
4 additions, 6 deletions
tsconfig.json
with
8 additions
and
26 deletions
e2e/tsconfig.json
deleted
100644 → 0
+
0
−
11
View file @
7364f71a
{
"extends"
:
"../tsconfig.json"
,
"compilerOptions"
:
{
"module"
:
"ESNext"
,
"target"
:
"ESNext"
,
"verbatimModuleSyntax"
:
true
},
"include"
:
[
"./**/*.ts"
]
}
This diff is collapsed.
Click to expand it.
e2e/utils.ts
+
4
−
8
View file @
5fec80ce
import
{
ChildProcess
,
exec
,
execSync
}
from
"
child_process
"
;
import
crypto
from
"
node:crypto
"
;
import
{
mkdir
}
from
"
node:fs/promises
"
;
import
{
fileURLToP
ath
}
from
"
node:url
"
;
import
*
as
p
ath
from
"
path
"
;
import
waitPort
from
"
wait-port
"
;
export
type
AppType
=
"
--frontend
"
|
"
--no-frontend
"
|
""
;
...
...
@@ -13,7 +13,7 @@ export async function runApp(
appType
:
AppType
,
port
:
number
,
):
Promise
<
ChildProcess
[]
>
{
const
cps
=
[];
const
cps
:
ChildProcess
[]
=
[];
try
{
switch
(
appType
)
{
...
...
@@ -71,9 +71,7 @@ export function runCreateLlama(
templateUI
:
string
,
appType
:
AppType
,
)
{
const
createLlama
=
fileURLToPath
(
new
URL
(
"
../dist/index.js
"
,
import
.
meta
.
url
),
);
const
createLlama
=
path
.
join
(
__dirname
,
"
..
"
,
"
dist
"
,
"
index.js
"
);
const
name
=
[
templateType
,
...
...
@@ -110,9 +108,7 @@ export function runCreateLlama(
return
name
;
}
export
async
function
createTestDir
()
{
const
cwd
=
fileURLToPath
(
new
URL
(
`.cache/
${
crypto
.
randomUUID
()}
`
,
import
.
meta
.
url
),
);
const
cwd
=
path
.
join
(
__dirname
,
"
.cache
"
,
crypto
.
randomUUID
());
await
mkdir
(
cwd
,
{
recursive
:
true
});
return
cwd
;
}
This diff is collapsed.
Click to expand it.
package.json
+
0
−
1
View file @
5fec80ce
{
"name"
:
"create-llama"
,
"version"
:
"0.0.11"
,
"type"
:
"module"
,
"keywords"
:
[
"rag"
,
"llamaindex"
,
...
...
This diff is collapsed.
Click to expand it.
tsconfig.json
+
4
−
6
View file @
5fec80ce
...
...
@@ -7,10 +7,8 @@
"esModuleInterop"
:
true
,
"skipLibCheck"
:
false
},
"exclude"
:
[
"templates"
,
"dist"
],
"references"
:
[
{
"path"
:
"./e2e/tsconfig.json"
}
"exclude"
:
[
"templates"
,
"dist"
]
}
}
\ No newline at end of file
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