generated from ddev/ddev-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is to match current approach of ddev to installing n, as it happens on the start.sh script
- Loading branch information
Showing
5 changed files
with
39 additions
and
12 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 was deleted.
Oops, something went wrong.
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,13 @@ | ||
#!/usr/bin/env bash | ||
#ddev-generated | ||
|
||
# We install it as a web-entrypoint.d shell because that's after n installs the | ||
# configured version | ||
|
||
version=$(node -v | awk -F'[v.]' '{print $2}'); \ | ||
if [ $version -lt 18 ]; then \ | ||
n install lts -d; \ | ||
n exec lts npm install -g markdown-toc prettier; \ | ||
else \ | ||
npm install -g markdown-toc prettier; \ | ||
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
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,13 @@ | ||
#!/usr/bin/env bash | ||
#ddev-generated | ||
|
||
# We install it as a web-entrypoint.d shell because that's after n installs the | ||
# configured version | ||
|
||
version=$(node -v | awk -F'[v.]' '{print $2}'); \ | ||
if [ $version -lt 18 ]; then \ | ||
n install lts -d; \ | ||
n exec lts npm install -g markdown-toc prettier; \ | ||
else \ | ||
npm install -g markdown-toc prettier; \ | ||
fi |