-
Notifications
You must be signed in to change notification settings - Fork 616
/
Copy pathpipeline.py
88 lines (84 loc) · 2.35 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import os
from .base import BASE
PIPELINE_CSS = {
'style': {
'source_filenames': (
'sass/style.css',
),
'output_filename': 'stylesheets/style.css',
'extra_context': {
'title': 'default',
'media': '',
},
},
'mq': {
'source_filenames': (
'sass/mq.css',
),
'output_filename': 'stylesheets/mq.css',
'extra_context': {
'media': 'not print, speech',
},
},
'no-mq': {
'source_filenames': (
'sass/no-mq.css',
),
'output_filename': 'stylesheets/no-mq.css',
'extra_context': {
'media': 'screen',
},
},
'font-awesome': {
'source_filenames': (
'stylesheets/font-awesome.min.css',
),
'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',
},
'sponsors': {
'source_filenames': (
'js/sponsors/applicationForm.js',
),
'output_filename': 'js/sponsors-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 = {
'STYLESHEETS': PIPELINE_CSS,
'JAVASCRIPT': PIPELINE_JS,
'DISABLE_WRAPPER': True,
# TODO: ruby-sass is not installed on the server since
# https://github.com/python/psf-salt/commit/044c38773ced4b8bbe8df2c4266ef3a295102785
# and we pre-compile SASS files and commit them into codebase so we
# don't really need this. See issue #832.
# 'COMPILERS': (
# 'pipeline.compilers.sass.SASSCompiler',
# ),
'CSS_COMPRESSOR': 'pipeline.compressors.NoopCompressor',
'JS_COMPRESSOR': 'pipeline.compressors.NoopCompressor',
# 'SASS_BINARY': 'cd %s && exec /usr/bin/env sass' % os.path.join(BASE, 'static'),
# 'SASS_ARGUMENTS': '--quiet --compass --scss -I $(dirname $(dirname $(gem which susy)))/sass'
}