-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: force yarn in netlify via netlify.toml
- Used to guess yarn based on yarn.lock existence Signed-off-by: Peter Lyons <pete@reactioncommerce.com>
- Loading branch information
1 parent
49fe946
commit 2dd4d4f
Showing
3 changed files
with
37 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Please Use Google Shell Style: https://google.github.io/styleguide/shell.xml | ||
|
||
# ---- Start unofficial bash strict mode boilerplate | ||
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ | ||
set -o errexit # always exit on error | ||
set -o errtrace # trap errors in functions as well | ||
set -o pipefail # don't ignore exit codes when piping output | ||
set -o posix # more strict failures in subshells | ||
# set -x # enable debugging | ||
|
||
IFS=$'\n\t' | ||
# ---- End unofficial bash strict mode boilerplate | ||
|
||
cd "$(dirname "${BASH_SOURCE[0]}")/.." | ||
export PATH="${PWD}/node_modules/.bin:${PATH}" | ||
declare -a args=( | ||
--ignore-scripts | ||
--no-lockfile | ||
--no-progress | ||
--non-interactive | ||
--silent | ||
) | ||
yarn "${args[@]}" | ||
cd package | ||
yarn "${args[@]}" | ||
yarn build |
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,7 @@ | ||
[build] | ||
environment = { YARN_VERSION = "1.16.0" } | ||
command = "./bin/build.sh" | ||
|
||
[dev] | ||
command = "yarn styleguide:build" # Command to start your dev server | ||
port = 3999 |
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