Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move toolkit environment setting to a command #67

Merged
merged 2 commits into from
Jan 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions toolkit.nu
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
export-env {
$env.NUPM_HOME = ($env.FILE_PWD | path join _nupm_dev)
$env.NUPM_CACHE = ($env.FILE_PWD | path join _nupm_dev cache)
$env.NUPM_TEMP = ($env.FILE_PWD | path join _nupm_dev tmp)
export def --env set-nupm-env [] {
$env.NUPM_HOME = ('./_nupm_dev' | path expand)
$env.NUPM_CACHE = ('./_nupm_dev/cache' | path expand)
$env.NUPM_TEMP = ('./_nupm_dev/tmp' | path expand)

$env.PATH ++= [($env.FILE_PWD | path join _nupm_dev scripts)]
$env.NU_LIB_DIRS ++= [($env.FILE_PWD | path join _nupm_dev modules)]
$env.PATH ++= [('./_nupm_dev/scripts' | path expand)]
$env.NU_LIB_DIRS ++= [('./_nupm_dev/modules' | path expand)]

print-nupm-env
}

export def print-nupm-env [] {
print $'NUPM_HOME: ($env.NUPM_HOME)'
kubouch marked this conversation as resolved.
Show resolved Hide resolved
print $'NUPM_CACHE: ($env.NUPM_CACHE)'
print $'NUPM_TEMP: ($env.NUPM_TEMP)'
Expand Down
Loading