![gal@spitfire.co.il](/assets/img/avatar_default.png)
![GitHub](/assets/img/avatar_default.png)
30 changed files with 171 additions and 91 deletions
After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 1.7 MiB |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash |
||||
|
||||
DIRECTORY=`dirname $0` |
||||
|
||||
function setup_binary() { |
||||
export TEMP_DIR=$(mktemp -d -t fnm) |
||||
cp _build/default/executable/FnmApp.exe $TEMP_DIR/fnm |
||||
export PATH=$TEMP_DIR:$PATH |
||||
export FNM_DIR=$TEMP_DIR/.fnm |
||||
} |
||||
|
||||
setup_binary |
||||
|
||||
RECORDING_PATH=$DIRECTORY/screen_recording |
||||
|
||||
(rm -rf $RECORDING_PATH &> /dev/null || true) |
||||
|
||||
asciinema rec -c $DIRECTORY/recorded_screen_script.sh $RECORDING_PATH |
||||
cat $RECORDING_PATH | sed "s@$TEMP_DIR@~@g" | svg-term --window --out $DIRECTORY/fnm.svg --height=17 --width=70 |
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
#!/bin/zsh |
||||
|
||||
set -e |
||||
|
||||
GAL_PROMPT_PREFIX='\e[34m✡ \e[0m' |
||||
|
||||
function type() { |
||||
printf $GAL_PROMPT_PREFIX |
||||
echo $* | pv -qL $[10+(-2 + RANDOM%5)] |
||||
} |
||||
|
||||
cd ./feature_tests/nvmrc |
||||
|
||||
type 'eval `fnm env`' |
||||
eval `fnm env` |
||||
|
||||
type 'fnm --version' |
||||
fnm --version |
||||
|
||||
type 'cat .nvmrc' |
||||
cat .nvmrc |
||||
|
||||
type 'fnm install' |
||||
fnm install |
||||
|
||||
type 'fnm use' |
||||
fnm use |
||||
|
||||
type 'node -v' |
||||
node -v |
||||
|
||||
sleep 2 |
||||
echo "" |
@ -1,2 +1,2 @@
@@ -1,2 +1,2 @@
|
||||
(lang dune 1.6) |
||||
(name nsw) |
||||
(name fnm) |
||||
|
@ -1,12 +1,12 @@
@@ -1,12 +1,12 @@
|
||||
|
||||
; !!!! This dune file is generated from the package.json file by pesy. If you modify it by hand |
||||
; !!!! your changes will be undone! Instead, edit the package.json and then rerun 'esy pesy' at the project root. |
||||
; !!!! If you want to stop using pesy and manage this file by hand, change pacakge.json's 'esy.build' command to: refmterr dune build -p nsw |
||||
; !!!! If you want to stop using pesy and manage this file by hand, change pacakge.json's 'esy.build' command to: refmterr dune build -p fnm |
||||
(executable |
||||
; The entrypoint module |
||||
(name NswApp) ; From package.json main field |
||||
; The name of the executable (runnable via esy x nsw.exe) |
||||
(public_name nsw.exe) ; From package.json name field |
||||
(libraries core cmdliner lwt lwt.unix lambdasoup console.lib pastel.lib nsw.lib ) ; From package.json require field (array of strings) |
||||
(name FnmApp) ; From package.json main field |
||||
; The name of the executable (runnable via esy x fnm.exe) |
||||
(public_name fnm.exe) ; From package.json name field |
||||
(libraries core cmdliner lwt lwt.unix lambdasoup console.lib pastel.lib fnm.lib ) ; From package.json require field (array of strings) |
||||
(preprocess ( pps lwt_ppx ppx_let )) ; From package.json preprocess field |
||||
) |
@ -1,8 +1,10 @@
@@ -1,8 +1,10 @@
|
||||
eval $(nsw env) |
||||
nsw install v8.11.3 |
||||
nsw use v8.11.3 |
||||
#!/bin/bash |
||||
|
||||
eval $(fnm env) |
||||
fnm install v8.11.3 |
||||
fnm use v8.11.3 |
||||
|
||||
if [ "$(node --version)" != "v8.11.3" ]; then |
||||
echo "Node version is not v8.11.3!" |
||||
exit 1 |
||||
fi |
||||
fi |
||||
|
@ -1,10 +1,10 @@
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash |
||||
|
||||
eval $(nsw env) |
||||
nsw install |
||||
nsw use |
||||
eval $(fnm env) |
||||
fnm install |
||||
fnm use |
||||
|
||||
if [ "$(node --version)" != "v10.9.0" ]; then |
||||
echo "Node version is not v10.9.0!" |
||||
exit 1 |
||||
fi |
||||
fi |
||||
|
@ -1,13 +1,13 @@
@@ -1,13 +1,13 @@
|
||||
let sfwRoot = |
||||
Opt.( |
||||
Sys.getenv_opt("NSW_DIR") |
||||
Sys.getenv_opt("FNM_DIR") |
||||
or { |
||||
let home = |
||||
Sys.getenv_opt("HOME") |
||||
|> Opt.orThrow("There isn't $HOME environment variable set."); |
||||
Filename.concat(home, ".nsw"); |
||||
Filename.concat(home, ".fnm"); |
||||
} |
||||
); |
||||
let nodeVersions = Filename.concat(sfwRoot, "node-versions"); |
||||
let currentVersion = Filename.concat(sfwRoot, "current"); |
||||
let downloads = Filename.concat(sfwRoot, "downloads"); |
||||
let downloads = Filename.concat(sfwRoot, "downloads"); |
||||
|
@ -1,12 +1,12 @@
@@ -1,12 +1,12 @@
|
||||
|
||||
; !!!! This dune file is generated from the package.json file by pesy. If you modify it by hand |
||||
; !!!! your changes will be undone! Instead, edit the package.json and then rerun 'esy pesy' at the project root. |
||||
; !!!! If you want to stop using pesy and manage this file by hand, change pacakge.json's 'esy.build' command to: refmterr dune build -p nsw |
||||
; !!!! If you want to stop using pesy and manage this file by hand, change pacakge.json's 'esy.build' command to: refmterr dune build -p fnm |
||||
(library |
||||
; The namespace that other packages/libraries will access this library through |
||||
(name Nsw) |
||||
(name Fnm) |
||||
; Other libraries list this name in their package.json 'require' field to use this library. |
||||
(public_name nsw.lib) |
||||
(public_name fnm.lib) |
||||
(libraries str core lwt lwt.unix lambdasoup semver ) |
||||
(preprocess ( pps lwt_ppx ppx_let )) ; From package.json preprocess field |
||||
) |
@ -1,12 +1,12 @@
@@ -1,12 +1,12 @@
|
||||
|
||||
; !!!! This dune file is generated from the package.json file by pesy. If you modify it by hand |
||||
; !!!! your changes will be undone! Instead, edit the package.json and then rerun 'esy pesy' at the project root. |
||||
; !!!! If you want to stop using pesy and manage this file by hand, change pacakge.json's 'esy.build' command to: refmterr dune build -p nsw |
||||
; !!!! If you want to stop using pesy and manage this file by hand, change pacakge.json's 'esy.build' command to: refmterr dune build -p fnm |
||||
(executable |
||||
; The entrypoint module |
||||
(name TestNsw) ; From package.json main field |
||||
; The name of the executable (runnable via esy x TestNsw.exe) |
||||
(public_name TestNsw.exe) ; From package.json name field |
||||
(libraries nsw.lib rely.lib ) ; From package.json require field (array of strings) |
||||
(name TestFnm) ; From package.json main field |
||||
; The name of the executable (runnable via esy x TestFnm.exe) |
||||
(public_name TestFnm.exe) ; From package.json name field |
||||
(libraries fnm.lib rely.lib ) ; From package.json require field (array of strings) |
||||
(ocamlopt_flags ( -linkall -g )) ; From package.json ocamloptFlags field |
||||
) |
Loading…
Reference in new issue