Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

Modify build system and closure dependencies #95

Merged
merged 4 commits into from Mar 19, 2016

Conversation

KesterTong
Copy link
Contributor

Slightly refactors the build system, and changes the way closure source files are included.

Before, source files were included in html files manually. Now we generate a file, colab.dep, using the script build_closure_deps.py, which contains the dependency graph of the colab code. By including this file (as a js source file) and importing a single namespace, the closure library will automatically load all the dependencies of that namespace.

This requires re-running build_closure_deps.py when dependencies change, but this is much easier and more reliable than manually including the source files.

Pulls out common functions into new library.
Use the Closure compiler to build a file called colab.dep that contains all the dependencies of the closure code.  By including this file and specifying the namespaces to load, we avoid having to manually include the colab JS source files.
@KesterTong
Copy link
Contributor Author

@minrk could you review this please?

rgbkrk added a commit that referenced this pull request Mar 19, 2016
Modify build system and closure dependencies
@rgbkrk rgbkrk merged commit 1425c6e into jupyter:master Mar 19, 2016
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.

None yet

2 participants