-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace npm with yarn for faster frontend build.
- Loading branch information
Showing
9 changed files
with
404 additions
and
790 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 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 |
---|---|---|
|
@@ -17,11 +17,11 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: npm install, build, and test | ||
- name: yarn install, build, and test | ||
run: | | ||
cd components/frontend | ||
npm ci | ||
npm run --ignore-scripts build --if-present | ||
yarn install --ignore-scripts | ||
yarn run --ignore-scripts build | ||
ci/unittest.sh | ||
ci/quality.sh | ||
env: | ||
|
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 |
---|---|---|
|
@@ -9,10 +9,9 @@ COPY public /home/frontend/public | |
COPY src /home/frontend/src | ||
COPY healthcheck.js /home/frontend | ||
COPY .env /home/frontend | ||
RUN npm install --ignore-scripts -g [email protected] && \ | ||
npm install --ignore-scripts && \ | ||
npm install --ignore-scripts -g [email protected] && \ | ||
npm run --ignore-scripts build && \ | ||
RUN yarn install --ignore-scripts && \ | ||
yarn global add --ignore-scripts [email protected] && \ | ||
yarn run --ignore-scripts build && \ | ||
adduser frontend --disabled-password | ||
USER frontend | ||
|
||
|
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
PATH="$PATH:../../ci" | ||
source unittest-base.sh | ||
|
||
run npm test | ||
run yarn run test |
Oops, something went wrong.