![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 @@ |
|||||||
|
#!/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,8 +1,10 @@ |
|||||||
eval $(nsw env) |
#!/bin/bash |
||||||
nsw install v8.11.3 |
|
||||||
nsw use v8.11.3 |
eval $(fnm env) |
||||||
|
fnm install v8.11.3 |
||||||
|
fnm use v8.11.3 |
||||||
|
|
||||||
if [ "$(node --version)" != "v8.11.3" ]; then |
if [ "$(node --version)" != "v8.11.3" ]; then |
||||||
echo "Node version is not v8.11.3!" |
echo "Node version is not v8.11.3!" |
||||||
exit 1 |
exit 1 |
||||||
fi |
fi |
||||||
|
@ -1,10 +1,10 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
eval $(nsw env) |
eval $(fnm env) |
||||||
nsw install |
fnm install |
||||||
nsw use |
fnm use |
||||||
|
|
||||||
if [ "$(node --version)" != "v10.9.0" ]; then |
if [ "$(node --version)" != "v10.9.0" ]; then |
||||||
echo "Node version is not v10.9.0!" |
echo "Node version is not v10.9.0!" |
||||||
exit 1 |
exit 1 |
||||||
fi |
fi |
||||||
|
@ -1,13 +1,13 @@ |
|||||||
let sfwRoot = |
let sfwRoot = |
||||||
Opt.( |
Opt.( |
||||||
Sys.getenv_opt("NSW_DIR") |
Sys.getenv_opt("FNM_DIR") |
||||||
or { |
or { |
||||||
let home = |
let home = |
||||||
Sys.getenv_opt("HOME") |
Sys.getenv_opt("HOME") |
||||||
|> Opt.orThrow("There isn't $HOME environment variable set."); |
|> 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 nodeVersions = Filename.concat(sfwRoot, "node-versions"); |
||||||
let currentVersion = Filename.concat(sfwRoot, "current"); |
let currentVersion = Filename.concat(sfwRoot, "current"); |
||||||
let downloads = Filename.concat(sfwRoot, "downloads"); |
let downloads = Filename.concat(sfwRoot, "downloads"); |
||||||
|
@ -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