Gal Schlezinger
6 years ago
committed by
GitHub
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 @@ |
|||||||
|
#!/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 @@ |
|||||||
|
#!/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 @@ |
|||||||
(lang dune 1.6) |
(lang dune 1.6) |
||||||
(name nsw) |
(name fnm) |
||||||
|
@ -1,12 +1,12 @@ |
|||||||
|
|
||||||
; !!!! This dune file is generated from the package.json file by pesy. If you modify it by hand |
; !!!! 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. |
; !!!! 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 |
(executable |
||||||
; The entrypoint module |
; The entrypoint module |
||||||
(name NswApp) ; From package.json main field |
(name FnmApp) ; From package.json main field |
||||||
; The name of the executable (runnable via esy x nsw.exe) |
; The name of the executable (runnable via esy x fnm.exe) |
||||||
(public_name nsw.exe) ; From package.json name field |
(public_name fnm.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) |
(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 |
(preprocess ( pps lwt_ppx ppx_let )) ; From package.json preprocess field |
||||||
) |
) |
@ -1,12 +1,12 @@ |
|||||||
|
|
||||||
; !!!! This dune file is generated from the package.json file by pesy. If you modify it by hand |
; !!!! 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. |
; !!!! 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 |
(library |
||||||
; The namespace that other packages/libraries will access this library through |
; 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. |
; 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 ) |
(libraries str core lwt lwt.unix lambdasoup semver ) |
||||||
(preprocess ( pps lwt_ppx ppx_let )) ; From package.json preprocess field |
(preprocess ( pps lwt_ppx ppx_let )) ; From package.json preprocess field |
||||||
) |
) |
@ -1,12 +1,12 @@ |
|||||||
|
|
||||||
; !!!! This dune file is generated from the package.json file by pesy. If you modify it by hand |
; !!!! 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. |
; !!!! 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 |
(executable |
||||||
; The entrypoint module |
; The entrypoint module |
||||||
(name TestNsw) ; From package.json main field |
(name TestFnm) ; From package.json main field |
||||||
; The name of the executable (runnable via esy x TestNsw.exe) |
; The name of the executable (runnable via esy x TestFnm.exe) |
||||||
(public_name TestNsw.exe) ; From package.json name field |
(public_name TestFnm.exe) ; From package.json name field |
||||||
(libraries nsw.lib rely.lib ) ; From package.json require field (array of strings) |
(libraries fnm.lib rely.lib ) ; From package.json require field (array of strings) |
||||||
(ocamlopt_flags ( -linkall -g )) ; From package.json ocamloptFlags field |
(ocamlopt_flags ( -linkall -g )) ; From package.json ocamloptFlags field |
||||||
) |
) |
Loading…
Reference in new issue