Skip to content

Conversation

@samelhusseini
Copy link
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

Fixes #4567

Proposed Changes

Include playground deps from node_modules in the set of files deployed to appengine.

Reason for Changes

Fix deployed playgrounds.

Test Coverage

Tested on:

Documentation

Additional Information

}

/**
* Copies playground deps into deploy directory.
Copy link
Contributor

@moniika moniika Jan 16, 2021

Choose a reason for hiding this comment

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

This copy differs from the other copyStaticSrc and copyAppengineSrc since it copies uncommited local files. I think it's worth mentioning in the JsDoc about that (and perhaps mention that npm install needs to have been run).

If possible, I'd like for us to check that there is node_modules directory somewhere in this step because otherwise it will just silently "fail" if someone was to have cleaned their node modules before running.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, all good points. If the goal is to not have it depend on the current state of the repo, perhaps we can directly acquire the files we're interested in from unpkg.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also I noticed that the script reads from the local package.json to determine the version, rather than the one in HEAD. Should that also be switched over?

Copy link
Contributor

Choose a reason for hiding this comment

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

The current deploy demo script uses files in HEAD, rather than local files because it was a direct translation of the steps we have done in the past. I want to note that we could consider changing it.
Assuming we're not:

  • unpkg: +1 to using unpkg, assuming it's not too complicated (not necessary for this PR, but we could file an issue to add later)
  • package.json: good catch. I think it probably would be better to use the version in HEAD

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the interest of not letting this sit, I'm going to throw this in, and update the associated but with the remaining tasks.

@samelhusseini samelhusseini merged commit 628d453 into develop Jan 27, 2021
@samelhusseini samelhusseini deleted the appengine_playground_deps branch January 27, 2021 19:36
@cpcallen cpcallen mentioned this pull request Jul 1, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants