Skip to content

Commit 77b30fb

Browse files
committed
use fixed ag-grid version
1 parent 63af68d commit 77b30fb

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

ag-grid.version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.1.0

deps/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ag-grid
1+
ag-grid*
22
build.log

deps/build.jl

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
isdir(joinpath(@__DIR__, "ag-grid")) || mkdir(joinpath(@__DIR__, "ag-grid"))
1+
version = readchomp(joinpath(@__DIR__, "..", "ag-grid.version"))
22

3-
ag_grid_base = joinpath(@__DIR__, "ag-grid", "ag-grid.js")
4-
isfile(ag_grid_base) || download("https://unpkg.com/ag-grid-community/dist/ag-grid-community.min.noStyle.js", ag_grid_base)
3+
isdir(joinpath(@__DIR__, "ag-grid-$(version)")) || mkdir(joinpath(@__DIR__, "ag-grid-$(version)"))
54

6-
ag_grid_base_style = joinpath(@__DIR__, "ag-grid", "ag-grid.css")
7-
isfile(ag_grid_base_style) || download("https://unpkg.com/ag-grid-community/dist/styles/ag-grid.css", ag_grid_base_style)
5+
ag_grid_base = joinpath(@__DIR__, "ag-grid-$(version)", "ag-grid.js")
6+
isfile(ag_grid_base) || download("https://unpkg.com/ag-grid-community@$(version)/dist/ag-grid-community.min.noStyle.js", ag_grid_base)
87

9-
ag_grid_light = joinpath(@__DIR__, "ag-grid", "ag-grid-light.css")
10-
isfile(ag_grid_light) || download("https://unpkg.com/ag-grid-community/dist/styles/ag-theme-balham.css", ag_grid_light)
8+
ag_grid_base_style = joinpath(@__DIR__, "ag-grid-$(version)", "ag-grid.css")
9+
isfile(ag_grid_base_style) || download("https://unpkg.com/ag-grid-community@$(version)/dist/styles/ag-grid.css", ag_grid_base_style)
1110

12-
ag_grid_dark = joinpath(@__DIR__, "ag-grid", "ag-grid-dark.css")
13-
isfile(ag_grid_dark) || download("https://unpkg.com/ag-grid-community/dist/styles/ag-theme-balham-dark.css", ag_grid_dark)
11+
ag_grid_light = joinpath(@__DIR__, "ag-grid-$(version)", "ag-grid-light.css")
12+
isfile(ag_grid_light) || download("https://unpkg.com/ag-grid-community@$(version)/dist/styles/ag-theme-balham.css", ag_grid_light)
13+
14+
ag_grid_dark = joinpath(@__DIR__, "ag-grid-$(version)", "ag-grid-dark.css")
15+
isfile(ag_grid_dark) || download("https://unpkg.com/ag-grid-community@$(version)/dist/styles/ag-theme-balham-dark.css", ag_grid_dark)

src/TableView.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ export showtable
99
const ag_grid_imports = []
1010

1111
function __init__()
12+
version = readchomp(joinpath(@__DIR__, "..", "ag-grid.version"))
1213
empty!(ag_grid_imports)
1314
for f in ["ag-grid.js", "ag-grid.css", "ag-grid-light.css", "ag-grid-dark.css"]
14-
push!(ag_grid_imports, normpath(joinpath(@__DIR__, "..", "deps", "ag-grid", f)))
15+
push!(ag_grid_imports, normpath(joinpath(@__DIR__, "..", "deps", "ag-grid-$(version)", f)))
1516
end
1617
end
1718

0 commit comments

Comments
 (0)