Flesh out shims and wrappers
This commit is contained in:
4
cmd
4
cmd
@@ -16,4 +16,6 @@ subcmd="$1"
|
|||||||
|
|
||||||
shift
|
shift
|
||||||
|
|
||||||
exec "$DIR"/cmd.d/"$subcmd" "$@"
|
echo will run "$DIR"/framework/cmd.d/"$subcmd" "$@"
|
||||||
|
|
||||||
|
exec "$DIR"/framework/cmd.d/"$subcmd" "$@"
|
||||||
|
|||||||
7
framework/cmd.d/node
Executable file
7
framework/cmd.d/node
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
"$DIR"/../shims/node "$@"
|
||||||
@@ -4,4 +4,4 @@ set -eu
|
|||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
"$DIR"/../framework/shims/pnpm "$@"
|
"$DIR"/../shims/pnpm "$@"
|
||||||
6
cmd.d/sync → framework/cmd.d/sync
Normal file → Executable file
6
cmd.d/sync → framework/cmd.d/sync
Normal file → Executable file
@@ -14,4 +14,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
cd $DIR/../framework/node
|
cd $DIR/../node
|
||||||
|
|
||||||
|
$DIR/pnpm install
|
||||||
|
|
||||||
|
echo we will download other files here later
|
||||||
4
framework/shims/common
Normal file
4
framework/shims/common
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
ROOT="$DIR/../../"
|
||||||
|
|
||||||
|
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This file belongs to the framework. You are not expected to modify it.
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|||||||
15
framework/shims/npm
Executable file
15
framework/shims/npm
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
source "$DIR"/node.common
|
||||||
|
|
||||||
|
cd $DIR/../.nodejs-config
|
||||||
|
echo in dir $(pwd)
|
||||||
|
npm "$@"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -5,9 +5,8 @@ set -eu
|
|||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
source "$DIR"/node.common
|
source "$DIR"/node.common
|
||||||
|
source "$DIR"/common
|
||||||
|
|
||||||
# "$DIR"/../.nodejs-config/node_modules/.bin/pnpm "$@"
|
cd $ROOT/framework/node
|
||||||
|
|
||||||
echo pnpm file: "$DIR"/../shims/pnpm
|
|
||||||
|
|
||||||
exec "$DIR"/../binaries/pnpm "$@"
|
exec "$DIR"/../binaries/pnpm "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user