-
Notifications
You must be signed in to change notification settings - Fork 11
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
Switch away from using npm for metro #2212
Conversation
e65eb0c
to
3ed7b4a
Compare
fccb549
to
a4334d7
Compare
cee7a9d
to
420ab72
Compare
@@ -58,4 +58,6 @@ runs: | |||
shell: bash | |||
run: | | |||
git config --global url."https://github.com/".insteadOf ssh://git@github.com/ | |||
npm install -g husky@latest |
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.
📓 This is necessary to run the command below.
@@ -58,4 +58,6 @@ runs: | |||
shell: bash | |||
run: | | |||
git config --global url."https://github.com/".insteadOf ssh://git@github.com/ | |||
npm install -g husky@latest | |||
npm install --prefix assets --package-lock-only |
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.
📓 This is necessary for install to pick up mbta_metro as a path.
@@ -101,6 +101,7 @@ jobs: | |||
priv | |||
react_renderer/dist/app.js | |||
key: ci-application-cache-${{ github.sha }} | |||
- run: npm install --prefix assets -S -install-links deps/mbta_metro/priv/ |
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.
📓 This is necessary to install mbta_metro from a path, but getting its deps and putting them in node_modules
.
RUN npm i -g husky@latest | ||
|
||
WORKDIR /root/assets | ||
|
||
RUN npm install --package-lock-only | ||
RUN npm ci --ignore-scripts | ||
RUN npm install -S -install-links ../deps/mbta_metro/priv/ | ||
|
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.
📓 This just does all three of those things in the build process.
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.
cool. we should probably create an alias to group these commands at some point
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.
No blockers here!
We don't have an organizational npm account so it will probably be easier and faster in the short-term to not publish metro's JS via npm. That means dotcom has to make some changes to accommodate.