Skip to content

Commit

Permalink
Merge pull request #66 from fonsp/patch-1
Browse files Browse the repository at this point in the history
Use jsdelivr instead of unpkg
  • Loading branch information
pfitzseb authored Mar 16, 2021
2 parents d3e3cd7 + 6adff60 commit 48ca384
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ version = readchomp(joinpath(@__DIR__, "..", "ag-grid.version"))
isdir(joinpath(@__DIR__, "ag-grid-$(version)")) || mkdir(joinpath(@__DIR__, "ag-grid-$(version)"))

ag_grid_base = joinpath(@__DIR__, "ag-grid-$(version)", "ag-grid.js")
isfile(ag_grid_base) || download("https://unpkg.com/ag-grid-community@$(version)/dist/ag-grid-community.min.noStyle.js", ag_grid_base)
isfile(ag_grid_base) || download("https://cdn.jsdelivr.net/npm/ag-grid-community@$(version)/dist/ag-grid-community.min.noStyle.js", ag_grid_base)

ag_grid_base_style = joinpath(@__DIR__, "ag-grid-$(version)", "ag-grid.css")
isfile(ag_grid_base_style) || download("https://unpkg.com/ag-grid-community@$(version)/dist/styles/ag-grid.css", ag_grid_base_style)
isfile(ag_grid_base_style) || download("https://cdn.jsdelivr.net/npm/ag-grid-community@$(version)/dist/styles/ag-grid.css", ag_grid_base_style)

ag_grid_light = joinpath(@__DIR__, "ag-grid-$(version)", "ag-grid-light.css")
isfile(ag_grid_light) || download("https://unpkg.com/ag-grid-community@$(version)/dist/styles/ag-theme-balham.css", ag_grid_light)
isfile(ag_grid_light) || download("https://cdn.jsdelivr.net/npm/ag-grid-community@$(version)/dist/styles/ag-theme-balham.css", ag_grid_light)

ag_grid_dark = joinpath(@__DIR__, "ag-grid-$(version)", "ag-grid-dark.css")
isfile(ag_grid_dark) || download("https://unpkg.com/ag-grid-community@$(version)/dist/styles/ag-theme-balham-dark.css", ag_grid_dark)
isfile(ag_grid_dark) || download("https://cdn.jsdelivr.net/npm/ag-grid-community@$(version)/dist/styles/ag-theme-balham-dark.css", ag_grid_dark)

0 comments on commit 48ca384

Please sign in to comment.