-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
171 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ node_modules/ | |
_build | ||
_release | ||
_esy/ | ||
nsw.install | ||
fnm.install | ||
.DS_Store | ||
*.install | ||
.tmp | ||
docs/screen_recording |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
(lang dune 1.6) | ||
(name nsw) | ||
(name fnm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"checksum": "bc7707f147bdaf3b3f87430bb4b3f0cd", | ||
"root": "nsw@link:./package.json", | ||
"root": "fnm@link:./package.json", | ||
"node": { | ||
"[email protected]@d41d8cd9": { | ||
"id": "[email protected]@d41d8cd9", | ||
|
@@ -47,9 +47,9 @@ | |
"dependencies": [], | ||
"devDependencies": [] | ||
}, | ||
"nsw@link:./package.json": { | ||
"id": "nsw@link:./package.json", | ||
"name": "nsw", | ||
"fnm@link:./package.json": { | ||
"id": "fnm@link:./package.json", | ||
"name": "fnm", | ||
"version": "link:./package.json", | ||
"source": { "type": "link", "path": ".", "manifest": "package.json" }, | ||
"overrides": [], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
open Nsw; | ||
open Fnm; | ||
|
||
let run = () => { | ||
Console.log( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
open Nsw; | ||
open Fnm; | ||
|
||
let colorizeVersions = (~current, ~versions) => { | ||
let strings = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
open Nsw; | ||
open Fnm; | ||
|
||
let run = () => | ||
Versions.Local.( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
open Nsw; | ||
open Fnm; | ||
|
||
let run = () => { | ||
Console.log("Looking for some node versions upstream..."); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
open Nsw; | ||
open Fnm; | ||
|
||
let lwtIgnore = lwt => Lwt.catch(() => lwt, _ => Lwt.return()); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10.9.0 | ||
10.9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.