Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The web application adds asset links to pages with the help of an assets environment (an instance of `h.assets.Environment`). The environment knows how to map bundle names such as "site_js" to a series of URLs for inclusion -- it does this by reading two files: - `assets.ini`, which maps bundle names to a list of individual asset filenames. - `manifest.json`, which maps individual asset filenames to URL paths (for the purposes of busting browser caches). Up until now both client and site assets have been built in the same step, and have written out a single `manifest.json`. Now, with the client installed with npm, there are two manifest files: one for the client and one for the site assets. This commit splits the rest of the asset handling into two to match this division. Client asset bundles are now defined in h/assets_client.ini, and the client assets have a separate environment instance which reads the manifest from the installed `hypothesis` package in `node_modules/`. We can remove this additional assets environment and configuration once two things have happened: 1. Responsibility for generating `app.html` and `embed.js` have moved into the client build. 2. The remaining site pages which depend on the client CSS (AKA `app_css`) have been moved to site CSS.
- Loading branch information
1 parent
35e962d
commit e06157c
Showing
15 changed files
with
75 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[bundles] | ||
# The H client application | ||
app_js = | ||
scripts/raven.bundle.js | ||
scripts/angular.bundle.js | ||
scripts/katex.bundle.js | ||
scripts/showdown.bundle.js | ||
scripts/polyfills.bundle.js | ||
scripts/unorm.bundle.js | ||
scripts/app.bundle.js | ||
|
||
app_css = | ||
styles/angular-csp.css | ||
styles/angular-toastr.css | ||
styles/icomoon.css | ||
styles/katex.min.css | ||
styles/app.css | ||
|
||
|
||
# The inject bundle is intended to be loaded into pages for bootstrapping the | ||
# application. It sets up RPC channels for cross-domain communication between | ||
# frames participating in annotation by using the annotator bridge plugin. | ||
inject_js = | ||
scripts/polyfills.bundle.js | ||
scripts/jquery.bundle.js | ||
scripts/injector.bundle.js | ||
|
||
inject_css = | ||
styles/icomoon.css | ||
styles/inject.css | ||
styles/pdfjs-overrides.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters