forked from ethantw/han-manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
61 lines (51 loc) · 1.48 KB
/
Makefile
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
56
57
58
59
60
61
DOC_SASS = overview.md module.md zitijixing_extend.md sectional.md inline.md variable.md
DOC_JS = overview.md han.md rendering.md normalize.md inline.md support.md find.md unicode.md
a ::
make doc
make www
run ::
npm start | sass --watch --sourcemap=none sass:asset --style compressed
build ::
make han
make vendor
make doc
make www
www ::
rm -rf _public
mkdir _public _public/font _public/img _public/data
node server/compile.js
cp -rf latest _public
cp -rf asset/vendor/font/* _public/font
#cp -rf asset/font/* _public/font
cp -rf asset/img/* _public/img
cp -rf asset/data/* _public/data
cp asset/style.css _public
cp LICENSE.md _public
doc ::
cd doc/sass-api && cat $(DOC_SASS) > ../sass-api.md
cd doc/js-api && cat $(DOC_JS) > ../js-api.md
han ::
rm -rf latest
mkdir latest latest/font
cp node_modules/han-css/han.min.css latest
cp node_modules/han-css/han.min.js latest
cp node_modules/han-css/han.css latest
cp node_modules/han-css/han.js latest
cp node_modules/han-css/font/* latest/font
han-dev ::
rm -rf latest
mkdir latest latest/font
cp ../han/han.min.css latest
cp ../han/han.min.js latest
cp ../han/font/* latest/font
vendor ::
rm -rf asset/vendor
mkdir asset/vendor asset/vendor/css asset/vendor/font
make hljs
make fa
hljs ::
cp node_modules/highlight.js/styles/tomorrow.css asset/vendor/css
cd asset/vendor/css && cat * > hljs.tomorrow.scss
fa ::
cp node_modules/font-awesome/fonts/* asset/vendor/font
cd asset/vendor/font && rm *.eot && rm *.ttf