Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

chore: Split build task into separate tasks for dist/demo #2453

Merged
merged 3 commits into from
Mar 26, 2018

Conversation

kfranqueiro
Copy link
Contributor

As of #2437, npm run build now builds 2 sets of files at once: demo css/js, and dist css/js. These used to be split via the MDC_ENV variable (see https://github.com/material-components/material-components-web/pull/2325/files#r176188331).

The problem with this is now npm run build builds a lot more than it used to, and this causes our cp-pkgs script to fail due to the presence of files not matching the pattern it expects; this is something that we would've quickly tripped over upon next release if it weren't found now.

In retrospect, Andy and I agree it's odd that we had npm run build building two almost completely different sets of files based on an environment variable; therefore this PR splits them out. Building the demos is only ever used for catalog deployment upon release, so I updated the command listed in our release docs accordingly. npm run build will now proceed to act as it did before for building dist files.

@codecov-io
Copy link

codecov-io commented Mar 22, 2018

Codecov Report

Merging #2453 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2453   +/-   ##
=======================================
  Coverage   98.91%   98.91%           
=======================================
  Files         104      104           
  Lines        4234     4234           
  Branches      534      534           
=======================================
  Hits         4188     4188           
  Misses         46       46

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47807b9...b2a4324. Read the comment docs.

@@ -82,6 +82,6 @@ This will ensure the commits *and* tags are pushed to the remote git repository.

### Deploy Catalog Server

`MDC_ENV=development npm run build && gcloud app deploy`
`MDC_ENV=development npm run build:demos && gcloud app deploy`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to update the "Appengine development server" command in CONTRIBUTING.md

Copy link
Contributor

@acdvorak acdvorak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the comment about CONTRIBUTING.md, this LGTM - thanks Ken!

@kfranqueiro kfranqueiro merged commit ab40203 into master Mar 26, 2018
@kfranqueiro kfranqueiro deleted the chore/split-build branch March 26, 2018 22:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants