Skip to content
Permalink
Browse files

Merge pull request #1892 from oliyh/master

updating ag-grid packages to 21.0.1
  • Loading branch information...
Deraen committed Jun 12, 2019
2 parents eb73a6a + c009afa commit b4207f45db0ac72d1a8867237f5000c0405e840f
@@ -5,7 +5,7 @@ cljsjs/ag-grid-community:

[](dependency)
```clojure
[cljsjs/ag-grid-community "19.0.0-0"] ;; latest release
[cljsjs/ag-grid-community "21.0.1-0"] ;; latest release
```
[](/dependency)

@@ -23,10 +23,10 @@ you can require the packaged library like:
## Upgrading

When upgrading ag-grid, you need to regenerate the externs:
1. Go to https://cdnjs.com/libraries/ag-grid/<THE-VERSION> such as https://cdnjs.com/libraries/ag-grid/10.0.1
2. Find the URL for ag-grid.js, such as: https://cdnjs.cloudflare.com/ajax/libs/ag-grid/8.2.0/ag-grid.js
1. Go to https://cdnjs.com/libraries/ag-grid/<THE-VERSION> such as https://cdnjs.com/libraries/ag-grid-community/10.0.1
2. Find the URL for ag-grid.js, such as: https://cdnjs.cloudflare.com/ajax/libs/ag-grid/8.2.0/ag-grid.js or https://unpkg.com/ag-grid-community@21.0.1/dist/ag-grid-community.js
3. Go to http://jmmk.github.io/javascript-externs-generator
4. Paste the URL for ag-grid.js and click load.
5. Name the JavaScript object agGrid.
6. Click "Extern!"
6. Copy the JavaScript value to resources/cljsjs/ag-grid/common/ag-grid.ext.js
7. Copy the JavaScript value to resources/cljsjs/ag-grid-community/common/ag-grid-community.ext.js
@@ -8,8 +8,8 @@
'[boot.util :refer [dosh]]
'[clojure.java.io :as io])

(def +lib-version+ "19.0.0")
(def +lib-checksum+ "D904467925A64A9E000A57F471C59CDF")
(def +lib-version+ "21.0.1")
(def +lib-checksum+ "58D7CDD5F67F5DC00FC6A05E0F255FB5")
(def +version+ (str +lib-version+ "-0"))
(def +lib-folder+ (format "ag-grid-community-%s" +lib-version+))

@@ -30,7 +30,7 @@
:license {"MIT" "http://opensource.org/licenses/MIT"}})

(deftask download-lib []
(download :url (format "https://github.com/ceolter/ag-grid/archive/%s.zip" +lib-version+)
(download :url (format "https://github.com/ag-grid/ag-grid/archive/v%s.zip" +lib-version+)
:checksum +lib-checksum+
:unzip true))

@@ -39,7 +39,7 @@
(download-lib)
(sift :move {#".*ag-grid-community/dist/ag-grid-community.js" "cljsjs/ag-grid-community/development/ag-grid-community.inc.js"
#".*ag-grid-community/dist/styles/ag-grid.css" "cljsjs/ag-grid-community/development/ag-grid.inc.css"
#".*ag-grid-community/dist/styles/compiled-icons.css" "cljsjs/ag-grid-community/development/compiled-icons.inc.css"
#".*dist/styles/compiled-icons.css" "cljsjs/ag-grid-community/development/compiled-icons.inc.css"
#".*ag-grid-community/dist/styles/ag-theme-balham.css" "cljsjs/ag-grid-community/development/ag-theme-balham.inc.css"
#".*ag-grid-community/dist/styles/ag-theme-balham-dark.css" "cljsjs/ag-grid-community/development/ag-theme-balham-dark.inc.css"
#".*ag-grid-community/dist/styles/ag-theme-blue.css" "cljsjs/ag-grid-community/development/ag-theme-blue.inc.css"
@@ -51,7 +51,6 @@
(minify :in "cljsjs/ag-grid-community/development/ag-grid-community.inc.js"
:out "cljsjs/ag-grid-community/production/ag-grid-community.min.inc.js"
:lang :ecmascript5)

(minify :in "cljsjs/ag-grid-community/development/ag-grid.inc.css"
:out "cljsjs/ag-grid-community/production/ag-grid.min.inc.css")
(minify :in "cljsjs/ag-grid-community/development/compiled-icons.inc.css"

0 comments on commit b4207f4

Please sign in to comment.
You can’t perform that action at this time.