vscode: shrink derivation size

Prune out compile-time dependencies.
This commit is contained in:
mucaho 2016-04-04 02:49:58 +01:00
parent a703bd49a9
commit 0c195db5dd
1 changed files with 6 additions and 2 deletions

View File

@ -42,8 +42,8 @@ in
'';
buildPhase = ''
# INSTALL COMPILE- & RUN-TIME DEPENDENCIES
echo "INSTALL COMPILE- & RUN-TIME DEPENDENCIES"
# BUILD COMPILE- & RUN-TIME DEPENDENCIES
echo "BUILD COMPILE- & RUN-TIME DEPENDENCIES"
mkdir -p ./tmp
HOME=./tmp ./scripts/npm.sh install
@ -60,6 +60,10 @@ in
'';
installPhase = ''
# PRUNE COMPILE-TIME DEPENDENCIES
echo "PRUNE COMPILE-TIME DEPENDENCIES"
npm prune --production
# COPY FILES NEEDED FOR RUNNING APPLICATION TO OUT DIRECTORY
echo "COPY FILES NEEDED FOR RUNNING APPLICATION TO OUT DIRECTORY"
mkdir -p "$out"