Skip to content

Commit

Permalink
Merge pull request #484 from pankgeorg/master
Browse files Browse the repository at this point in the history
Use Artifacts
  • Loading branch information
pfitzseb authored Feb 28, 2022
2 parents 91156f8 + e062a40 commit 8427e9e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Artifacts.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[web]
git-tree-sha1 = "050430be38d442e70243cb830455185b9fd0f5bd"

[[web.download]]
sha256 = "00debe8457bc840c81e204c482bada9098446aa12f5009c82b5c3b8b0281cebd"
url = "https://github.com/pankgeorg/WebIO.jl/files/8111257/bundle.tar.gz"
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ This is a non-comprehensive list of projects using WebIO.
+ [MeshCat.jl](https://github.com/rdeits/MeshCat.jl) - WebGL-based 3D visualizer in Julia
+ [PlotlyJS.jl](https://github.com/sglyon/PlotlyJS.jl) - Julia library for plotting with plotly.js
+ [Julia Tetris](http://juliatetris.com)

Web Artifacts
[bundle.tar.gz](https://github.com/pankgeorg/WebIO.jl/files/8111257/bundle.tar.gz)
15 changes: 11 additions & 4 deletions deps/bundlepaths.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Pkg.TOML
using Pkg.Artifacts

# Fix the NPM version for now
# Now that we're not distributing Jupyter stuff via NPM, I'd rather just check
Expand Down Expand Up @@ -50,8 +51,14 @@ function download_js_bundles()
end

mkpath(BUNDLES_PATH)
download_bundle("core", CORE_BUNDLE_PATH, CORE_BUNDLE_URL)
download_bundle("generic-http", GENERIC_HTTP_BUNDLE_PATH, GENERIC_HTTP_BUNDLE_URL)
download_bundle("mux", MUX_BUNDLE_PATH, MUX_BUNDLE_URL)
download_bundle("blink", BLINK_BUNDLE_PATH, BLINK_BUNDLE_URL)
bundle_artifact_path = artifact"web"
for asset in readdir(bundle_artifact_path)
@debug("Copying", bundle_artifact_path, asset, BUNDLES_PATH)
cp(joinpath(bundle_artifact_path, asset), joinpath(BUNDLES_PATH, asset); force = true)
end
# These commands are probably still useful if you want to create the artifact.
# download_bundle("core", CORE_BUNDLE_PATH, CORE_BUNDLE_URL)
# download_bundle("generic-http", GENERIC_HTTP_BUNDLE_PATH, GENERIC_HTTP_BUNDLE_URL)
# download_bundle("mux", MUX_BUNDLE_PATH, MUX_BUNDLE_URL)
# download_bundle("blink", BLINK_BUNDLE_PATH, BLINK_BUNDLE_URL)
end

0 comments on commit 8427e9e

Please sign in to comment.