Skip to content

Commit 0a4a676

Browse files
committed
test
1 parent 0174f6a commit 0a4a676

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
os: [
25-
macos-13, # x64
26-
macos-14, # ARM
27-
ubuntu-latest, # x64
28-
buildjet-2vcpu-ubuntu-2204-arm, # ARM
25+
# macos-13, # x64
26+
# macos-14, # ARM
27+
# ubuntu-latest, # x64
28+
# buildjet-2vcpu-ubuntu-2204-arm, # ARM
2929
windows-latest,
3030
]
3131

src/NewProject.res

+6
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,25 @@ let createProject = async (~templateName, ~projectName, ~versions) => {
5555
let templatePath = CraPaths.getTemplatePath(~templateName)
5656
let projectPath = Path.join2(Process.cwd(), projectName)
5757

58+
Console.log("test")
59+
5860
let s = P.spinner()
5961

6062
s->P.Spinner.start("Creating project...")
6163

6264
await Fs.Promises.cp(templatePath, projectPath, ~options={recursive: true})
6365
Process.chdir(projectPath)
6466

67+
Console.log("files")
6568
await Fs.Promises.rename("_gitignore", ".gitignore")
6669
await updatePackageJson(~projectName)
6770
await updateRescriptJson(~projectName, ~versions)
6871

72+
Console.log("install versions")
6973
await RescriptVersions.installVersions(versions)
74+
Console.log("git init")
7075
let _ = await Promisified.ChildProcess.exec("git init")
76+
Console.log("git init done")
7177

7278
s->P.Spinner.stop("Project created.")
7379
}

src/RescriptVersions.res

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ let installVersions = async ({rescriptVersion, rescriptCoreVersion}) => {
6868
let packages = [`rescript@${rescriptVersion}`, `@rescript/core@${rescriptCoreVersion}`]
6969
let command = `${packageManager} add ${packages->Array.join(" ")}`
7070

71+
Console.log2("packageManager", packageManager)
7172
let _ = await Node.Promisified.ChildProcess.exec(command)
7273
}
7374

0 commit comments

Comments
 (0)