forked from python/pythondotorg
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.py
65 lines (60 loc) · 1.6 KB
/
pipeline.py
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
62
63
64
65
import os
from .base import BASE
PIPELINE_CSS = {
'style': {
'source_filenames': (
'sass/style.scss',
),
'output_filename': 'stylesheets/style.css',
'extra_context': {
'title': 'default',
'media': '',
},
},
'mq': {
'source_filenames': (
'sass/mq.scss',
),
'output_filename': 'stylesheets/mq.css',
'extra_context': {
'media': 'not print, speech',
},
},
'no-mq': {
'source_filenames': (
'sass/no-mq.scss',
),
'output_filename': 'stylesheets/no-mq.css',
'extra_context': {
'media': 'screen',
},
},
}
PIPELINE_JS = {
'main': {
'source_filenames': (
'js/plugins.js',
'js/script.js',
),
'output_filename': 'js/main-min.js',
},
'IE8': {
'source_filenames': (
'js/plugins/IE8.js',
),
'output_filename': 'js/plugins/IE8-min.js',
},
'getComputedStyle': {
'source_filenames': (
'js/plugins/getComputedStyle-min.js',
),
'output_filename': 'js/plugins/getComputedStyle-min.js',
},
}
PIPELINE_COMPILERS = (
'pipeline.compilers.sass.SASSCompiler',
)
PIPELINE_SASS_BINARY = 'cd %s && exec /usr/bin/env sass' % os.path.join(BASE, 'static')
PIPELINE_SASS_ARGUMENTS = '--quiet --compass --scss -I $(dirname $(dirname $(gem which susy)))/sass'
PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor'
PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor'