-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VACMS-16288 use generated assets for next preview server #16340
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
44779da
add symlink to generated files for next build preview server
tjheffner fa4e1f2
test a theory
tjheffner 1becb4e
quiet storybook logs
tjheffner 41e6b47
dont pre-build next now that we are running dev. in theory
tjheffner 3865804
make directory before symlink
tjheffner 8ec1529
test a different theory
tjheffner a2354da
adjust perms
tjheffner 06bac1c
use right node version, create dir for symlink
tjheffner bb2d31d
move symlink creation after next install
tjheffner b6eb3e3
adjust symlink logic
tjheffner d3edb8d
one symlink please
tjheffner 1d6fc5b
one symlink please
tjheffner a28b8d7
Merge branch 'main' into VACMS-16288-next-preview-assets
tjheffner d316449
try a different directory
tjheffner 915ac6d
clone into correct new dir
tjheffner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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
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,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
export NVM_DIR="$HOME/.nvm" | ||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | ||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | ||
source ~/.bashrc | ||
|
||
# Installs & builds vets-website dependencies for next-build preview. | ||
#if [ ! -d docroot/vendor/va-gov/vets-website ]; then | ||
if [ ! -d vets-website ]; then | ||
git clone --single-branch --depth 1 https://github.com/department-of-veterans-affairs/vets-website.git vets-website | ||
else | ||
echo "Repo vets-website already cloned." | ||
fi | ||
|
||
#cd docroot/vendor/va-gov/vets-website | ||
cd vets-website | ||
|
||
nvm install 14.15.1 | ||
nvm use 14.15.1 | ||
npm install -g yarn | ||
|
||
echo "Node $(node -v)" | ||
echo "NPM $(npm -v)" | ||
echo "Yarn $(yarn -v)" | ||
|
||
export NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt | ||
yarn install | ||
yarn build |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noting that attempting to symlink to the vets-website installed inside vendor seemed to have issues either creating the symlink or building vets-website later as part of content-build.
Installing & symlinking to a different directory entirely had no issues, the assets are immediately present for the next-build server.