mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-13 21:36:46 +00:00
Another mop up commit to add missing changes from the last mop-up.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
#!/bin/bash
|
||||
################################################################################
|
||||
## File: nodejs.sh
|
||||
## Team: CI-Platform
|
||||
## Desc: Installs Node.js LTS and related tooling (Gulp, Bower, Grunt)
|
||||
## Desc: Installs Node.js LTS and related tooling (Gulp, Grunt)
|
||||
################################################################################
|
||||
|
||||
# Source the helpers for use with the script
|
||||
@@ -11,7 +10,7 @@ source $HELPER_SCRIPTS/document.sh
|
||||
# Install LTS Node.js and related build tools
|
||||
curl -sL https://git.io/n-install | bash -s -- -ny -
|
||||
~/n/bin/n lts
|
||||
npm install -g bower grunt gulp n parcel-bundler typescript
|
||||
npm install -g grunt gulp n parcel-bundler typescript
|
||||
npm install -g --save-dev webpack webpack-cli
|
||||
npm install -g npm
|
||||
rm -rf ~/n
|
||||
@@ -26,7 +25,7 @@ apt-get install -y --no-install-recommends yarn
|
||||
|
||||
# Run tests to determine that the software installed as expected
|
||||
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
||||
for cmd in node bower grunt gulp webpack parcel yarn; do
|
||||
for cmd in node grunt gulp webpack parcel yarn; do
|
||||
if ! command -v $cmd; then
|
||||
echo "$cmd was not installed"
|
||||
exit 1
|
||||
@@ -36,7 +35,6 @@ done
|
||||
# Document what was added to the image
|
||||
echo "Lastly, documenting what we added to the metadata file"
|
||||
DocumentInstalledItem "Node.js ($(node --version))"
|
||||
DocumentInstalledItem "Bower ($(bower --version))"
|
||||
DocumentInstalledItem "Grunt ($(grunt --version))"
|
||||
DocumentInstalledItem "Gulp ($(gulp --version))"
|
||||
DocumentInstalledItem "n ($(n --version))"
|
||||
|
||||
Reference in New Issue
Block a user