-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.boot
55 lines (49 loc) · 2.01 KB
/
build.boot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
(set-env!
:resource-paths #{"resources"}
:dependencies '[[adzerk/bootlaces "0.1.9" :scope "test"]
[cljsjs/boot-cljsjs "0.4.6" :scope "test"]
[cljsjs/jquery "1.8.2-2"]])
(require
'[adzerk.bootlaces :refer :all]
'[cljsjs.boot-cljsjs.packaging :refer :all])
(def +ver+ "2.1.4")
(def +version+ (str +ver+ "-SNAPSHOT"))
(bootlaces! +version+)
(task-options!
pom { :project 'exicon/semantic-ui
:version +version+
:description (str "Semantic is a UI component framework"
" based around useful principles from natural language.")
:url "http://semantic-ui.com"
:license {"MIT" "http://opensource.org/licenses/MIT"}
:scm {:url "https://github.com/exicon/hoplon-semantic-ui"}})
(deftask download-semantic-ui []
(download
:url (str "https://github.com/Semantic-Org/Semantic-UI/archive/" +ver+ ".zip")
:unzip true))
(deftask package5 []
(task-options! pom { :project 'exicon/hoplon5-semantic-ui })
(comp
(download-semantic-ui)
(sift :move
{
#"^Semantic-UI-.*/dist/semantic.css" "semantic-ui.inc.css"
#"^Semantic-UI-.*/dist/semantic.js" "semantic-ui.inc.js"
#"^Semantic-UI-.*/dist/themes/" "_hoplon/themes/"
})
(sift :include #{#"_hoplon/" #"semantic-ui"})))
(deftask package []
(comp
(download-semantic-ui)
(sift :move
{
#"^Semantic-UI-.*/dist/semantic.css" "cljsjs/development/semantic-ui.inc.css"
#"^Semantic-UI-.*/dist/semantic.js" "cljsjs/development/semantic-ui.inc.js"
#"^Semantic-UI-.*/dist/semantic.min.css" "cljsjs/production/semantic-ui.min.inc.css"
#"^Semantic-UI-.*/dist/semantic.min.js" "cljsjs/production/semantic-ui.min.inc.js"
#"^Semantic-UI-.*/dist/themes/" "cljsjs/common/themes/"
#"semantic-ui.ext.js" "cljsjs/common/semantic-ui.ext.js"
})
(sift :include #{#"^cljsjs"})
(deps-cljs :name "exicon.semantic-ui"
:requires ["cljsjs.jquery"])))