Skip to content

Add support for google closure library #207

Merged
NeilFraser merged 2 commits intoRaspberryPiFoundation:masterfrom
Immortalin:master
Nov 14, 2015
Merged

Add support for google closure library #207
NeilFraser merged 2 commits intoRaspberryPiFoundation:masterfrom
Immortalin:master

Conversation

@Immortalin
Copy link
Copy Markdown
Contributor

When the closure library is installed by npm, it is named "google-closure-library", however it is named "closure-library" in build.py. When both blockly and closure are installed by npm, they are in the same folder so theoretically theoretically blockly should be able to build. Formatting and indentation might be a bit off as I edited this using the github editor.

This python search_paths = calcdeps.ExpandDirectories( ["core", os.path.join(os.path.pardir, "closure-library")]) might need further revision to account for the additional naming. Maybe a try statement?

Update with main repository
When the closure library is installed by npm, it is named "google-closure-library", however it is named "closure-library" in build.py. When both blockly and closure are installed by npm, they are in the same folder so theoretically theoretically blockly should be able to build. Formatting and indentation might be a bit off as I edited this using the github editor. 

This ```python
search_paths = calcdeps.ExpandDirectories(
      ["core", os.path.join(os.path.pardir, "closure-library")])
``` might need further revision to account for the additional naming. Maybe a try statement?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For this specific implementation, this check and the printed error are unnecessary, no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@carlosperate true, it is not necessary, you can remove it.

NeilFraser added a commit that referenced this pull request Nov 14, 2015
Add support for google closure library
@NeilFraser NeilFraser merged commit 41610c3 into RaspberryPiFoundation:master Nov 14, 2015
mark-friedman added a commit to thunkable/blockly that referenced this pull request Aug 29, 2017
This re-does RaspberryPiFoundation#207 directly on the Blockly source.
mark-friedman added a commit to thunkable/blockly that referenced this pull request Aug 29, 2017
This re-does RaspberryPiFoundation#207 directly on the Blockly source.
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