Skip to content

Commit e528dfc

Browse files
authored
Merge pull request #13 from JuliaComputing/sp/fixversion
use fixed ag-grid version
2 parents 63af68d + 3410a2a commit e528dfc

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

ag-grid.version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.1.0

deps/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ag-grid
1+
ag-grid*
22
build.log

deps/build.jl

Lines changed: 11 additions & 9 deletions
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

Lines changed: 2 additions & 1 deletion
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

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
using TableView
22
using Test, WebIO
33

4-
@test isfile(joinpath(@__DIR__, "..", "deps", "ag-grid", "ag-grid.js"))
4+
version = readchomp(joinpath(@__DIR__, "..", "ag-grid.version"))
5+
6+
@test isfile(joinpath(@__DIR__, "..", "deps", "ag-grid-$(version)", "ag-grid.js"))
57

68
nttable = [
79
(a = 2.0, b = 3),

0 commit comments

Comments
 (0)