This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Repository navigation
Offline support - #5
Merged
Merged
Conversation
Member
Author
|
I've added a tool to d3-bootloader that provides this support when you install d3-bootloader globally. |
Member
Author
|
Update: The preferred way to use this is now: npx @financial-times/d3-bootloader... In any project directory. This will:
This all should be added to the README. |
tlfrd
reviewed
Dec 11, 2018
| @@ -0,0 +1,44 @@ | |||
| /** | |||
Member
Author
There was a problem hiding this comment.
@tlfrd It's set as bin.offline in package.json so users can either install @financial-times/d3-bootloader globally or run npx @financial-times/d3-bootloader and it will:
- Download all dependencies for offline use to the local directory
- Rewrite the d3-bootloader script tag to use the offline version.
aendra-rininsland
pushed a commit
to ft-interactive/visual-vocabulary-templates
that referenced
this pull request
Dec 12, 2018
tlfrd
reviewed
Dec 12, 2018
joannaskao
reviewed
Dec 19, 2018
| console.info("Using `latest` release dependencies."); | ||
| } | ||
|
|
||
| const downloadUrl = `https://api.github.com/repos/ft-interactive/d3-bootloader/tarball/${version}`; |
There was a problem hiding this comment.
Does downloadUrl get used anywhere?
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a first pass at offering offline support.
The idea with Visual Vocabulary Templates is you copy the "offline" folder into your project and change the line in index.html from:
to