This repository has been archived by the owner on Aug 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuildout.cfg
43 lines (38 loc) · 1.48 KB
/
buildout.cfg
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
[buildout]
extensions = buildout.bootstrap
relative-paths = true
parts = web_publisher
dottedish-patches
# minify-js
# minify-css
[web_publisher]
recipe = zc.recipe.egg
eggs = CherryPy == 3.2.0
Mako == 0.4.1
formish == 0.9.1
dottedish == 0.6
convertish == 0.6dev
schemaish == 0.5.6
validatish == 0.6.4
extra-paths = ${buildout:directory}
interpreter = web_publisher-shell
entry-points = web_publisher=server:main
[dottedish-patches]
# Patch comming from the upstream version of dottedish 0.6.1, that is not released on PyPi yet.
# More info on this bug: https://github.com/ish/dottedish/pull/1
recipe = collective.recipe.patch
egg = dottedish == 0.6
patches = dottedish-unordered-unflattening-fix.patch
[minify-js]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds = rm -f ./static/compiled.js
python ./closure_compiler.py `find ./static -iname '*.js'` > ./static/compiled.js
[minify-css]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds = rm -f ./static/compiled.css
cat `find ./static -iname '*.css'` | yui-compressor -v --type css
# cat `find ./static -iname '*.css'` | csstidy - --compress_font-weight=false --preserve_css=true --remove_bslash=false --remove_last_\;=true --template=highest ./static/compiled.css