0406fdf8e86a3a5f28360de86938cd271093a93f
[redakcja.git] / src / redakcja / settings / compress.py
1 STATICFILES_FINDERS = (
2     'django.contrib.staticfiles.finders.FileSystemFinder',
3     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
4 #    'django.contrib.staticfiles.finders.DefaultStorageFinder',
5     'pipeline.finders.PipelineFinder',
6 )
7
8
9 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
10
11 PIPELINE = {
12     'CSS_COMPRESSOR': None,
13     'JS_COMPRESSOR': None,
14     #'PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'
15
16     # CSS and JS files to compress
17     'STYLESHEETS': {
18         'detail': {
19             'source_filenames': (
20                 'css/master.css',
21                 'css/toolbar.css',
22                 'css/gallery.css',
23                 'css/history.css',
24                 'css/summary.css',
25                 'css/html.css',
26                 'css/jquery.autocomplete.css',
27                 'css/imgareaselect-default.css', #img!
28                 'css/dialogs.css',
29             ),
30             'output_filename': 'compressed/detail_styles.css',
31         },
32         'catalogue': {
33             'source_filenames': (
34                 'css/filelist.css',
35             ),
36             'output_filename': 'compressed/catalogue_styles.css',
37          },
38          'book': {
39             'source_filenames': (
40                 'css/book.css',
41             ),
42             'output_filename': 'compressed/book.css',
43         },
44         'book_list': {
45             'source_filenames': (
46                 'contextmenu/jquery.contextMenu.css',
47                 'css/book_list.css',
48             ),
49             'output_filename': 'compressed/book_list.css',
50         },
51     },
52     'JAVASCRIPT': {
53         # everything except codemirror
54         'detail': {
55             'source_filenames': (
56                 # libraries
57                 'js/lib/jquery/jquery.autocomplete.js',
58                 'js/lib/jquery/jquery.blockui.js',
59                 'js/lib/jquery/jquery.elastic.js',
60                 'js/lib/jquery/jquery.xmlns.js',
61                 'js/button_scripts.js',
62                 'js/slugify.js',
63
64                 # wiki scripts
65                 'js/wiki/wikiapi.js',
66                 'js/wiki/xslt.js',
67
68                 # base UI
69                 'js/wiki/base.js',
70                 'js/wiki/toolbar.js',
71
72                 # dialogs
73                 'js/wiki/dialog_save.js',
74                 'js/wiki/dialog_revert.js',
75                 'js/wiki/dialog_pubmark.js',
76
77                 # views
78                 'js/wiki/view_history.js',
79                 'js/wiki/view_summary.js',
80                 'js/wiki/view_editor_source.js',
81                 'js/wiki/view_editor_wysiwyg.js',
82                 'js/wiki/view_gallery.js',
83                 'js/wiki/view_annotations.js',
84                 'js/wiki/view_search.js',
85                 'js/wiki/view_column_diff.js',
86             ),
87             'output_filename': 'compressed/detail_scripts.js',
88          },
89         'wiki_img': {
90             'source_filenames': (
91                 # libraries
92                 'js/lib/jquery-1.4.2.min.js',
93                 'js/lib/jquery/jquery.autocomplete.js',
94                 'js/lib/jquery/jquery.blockui.js',
95                 'js/lib/jquery/jquery.elastic.js',
96                 'js/lib/jquery/jquery.imgareaselect.js',
97                 'js/button_scripts.js',
98                 'js/slugify.js',
99
100                 # wiki scripts
101                 'js/wiki_img/wikiapi.js',
102
103                 # base UI
104                 'js/wiki_img/base.js',
105                 'js/wiki/toolbar.js',
106
107                 # dialogs
108                 'js/wiki/dialog_save.js',
109                 'js/wiki/dialog_revert.js',
110                 'js/wiki/dialog_pubmark.js',
111
112                 # views
113                 'js/wiki_img/view_editor_objects.js',
114                 'js/wiki_img/view_editor_motifs.js',
115                 'js/wiki/view_editor_source.js',
116                 'js/wiki/view_history.js',
117                 'js/wiki/view_column_diff.js',
118             ),
119             'output_filename': 'compressed/detail_img_scripts.js',
120          },
121         'catalogue': {
122             'source_filenames': (
123                 'js/catalogue/catalogue.js',
124                 'js/slugify.js',
125                 'email_mangler/email_mangler.js',
126             ),
127             'output_filename': 'compressed/catalogue_scripts.js',
128          },
129          'book': {
130             'source_filenames': (
131                 'js/book_text/jquery.eventdelegation.js',
132                 'js/book_text/jquery.scrollto.js',
133                 'js/book_text/jquery.highlightfade.js',
134                 'js/book_text/book.js',
135             ),
136             'output_filename': 'compressed/book.js',
137         },
138         'book_list': {
139             'source_filenames': (
140                 'contextmenu/jquery.ui.position.js',
141                 'contextmenu/jquery.contextMenu.js',
142                 'js/catalogue/book_list.js',
143             ),
144             'output_filename': 'compressed/book_list.js',
145         }
146     }
147 }