Flesh out shims and wrappers
This commit is contained in:
9
framework/cmd.d/list
Executable file
9
framework/cmd.d/list
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
cd "$DIR"
|
||||
|
||||
ls .
|
||||
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 "$@"
|
||||
7
framework/cmd.d/pnpm
Executable file
7
framework/cmd.d/pnpm
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
"$DIR"/../shims/pnpm "$@"
|
||||
21
framework/cmd.d/sync
Executable file
21
framework/cmd.d/sync
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# figure out the platform we're on
|
||||
|
||||
# source ../framework/versions
|
||||
# [eventually: check for it in user's cache dir
|
||||
# download $nodejs_version
|
||||
# verify its checksum against $nodejs_checksum
|
||||
|
||||
|
||||
|
||||
|
||||
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
|
||||
|
||||
# This file belongs to the framework. You are not expected to modify it.
|
||||
|
||||
set -eu
|
||||
|
||||
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 )"
|
||||
|
||||
source "$DIR"/node.common
|
||||
source "$DIR"/common
|
||||
|
||||
# "$DIR"/../.nodejs-config/node_modules/.bin/pnpm "$@"
|
||||
|
||||
echo pnpm file: "$DIR"/../shims/pnpm
|
||||
cd $ROOT/framework/node
|
||||
|
||||
exec "$DIR"/../binaries/pnpm "$@"
|
||||
|
||||
Reference in New Issue
Block a user