django 1.9
[redakcja.git] / redakcja / settings / compress.py
1 # -*- coding: utf-8 -*-
2 #
3 # This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 #
6 STATICFILES_FINDERS = (
7     'django.contrib.staticfiles.finders.FileSystemFinder',
8     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
9     # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
10 )
11
12 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
13
14 PIPELINE = {
15     'PIPELINE_ENABLED': True,
16     'CSS_COMPRESSOR': None,
17     'JS_COMPRESSOR': None,
18     'STYLESHEETS': {
19         'detail': {
20             'source_filenames': (
21                 'css/master.css',
22                 'css/toolbar.css',
23                 'css/gallery.css',
24                 'css/history.css',
25                 'css/summary.css',
26                 'css/html.css',
27                 'css/jquery.autocomplete.css',
28                 'css/dialogs.css',
29             ),
30             'output_filename': 'compressed/detail_styles.css',
31         },
32         'catalogue': {
33             'source_filenames': (
34                 # 'css/filelist.css',
35                 'css/base.css',
36                 'datepicker/css/datepicker.css',
37             ),
38             'output_filename': 'compressed/catalogue_styles.css',
39         },
40         'book': {
41             'source_filenames': (
42                 'css/book.css',
43             ),
44             'output_filename': 'compressed/book.css',
45         },
46         'book_list': {
47             'source_filenames': (
48                 'contextmenu/jquery.contextMenu.css',
49                 'css/book_list.css',
50             ),
51             'output_filename': 'compressed/book_list.css',
52         },
53     },
54     'JAVASCRIPT': {
55         # everything except codemirror
56         'detail': {
57             'source_filenames': (
58                     # libraries
59                     'js/lib/jquery/jquery.autocomplete.js',
60                     'js/lib/jquery/jquery.blockui.js',
61                     'js/lib/jquery/jquery.elastic.js',
62                     'js/lib/jquery/jquery.xmlns.js',
63                     'js/button_scripts.js',
64                     'js/slugify.js',
65
66                     # wiki scripts
67                     'js/wiki/wikiapi.js',
68                     'js/wiki/xslt.js',
69
70                     # base UI
71                     'js/wiki/base.js',
72                     'js/wiki/toolbar.js',
73
74                     # dialogs
75                     'js/wiki/dialog_save.js',
76                     'js/wiki/dialog_revert.js',
77                     'js/wiki/dialog_pubmark.js',
78
79                     # views
80                     'js/wiki/view_history.js',
81                     'js/wiki/view_summary.js',
82                     'js/wiki/view_editor_source.js',
83                     'js/wiki/view_editor_wysiwyg.js',
84                     'js/wiki/view_gallery.js',
85                     'js/wiki/view_annotations.js',
86                     'js/wiki/view_search.js',
87                     'js/wiki/view_column_diff.js',
88             ),
89             'output_filename': 'compressed/detail_scripts.js',
90          },
91         'catalogue': {
92             'source_filenames': (
93                     'js/catalogue/catalogue.js',
94                     'js/slugify.js',
95                     'email_mangler/email_mangler.js',
96                     'datepicker/js/bootstrap-datepicker.js',
97             ),
98             'output_filename': 'compressed/catalogue_scripts.js',
99         },
100         'book': {
101             'source_filenames': (
102                 'js/book_text/jquery.eventdelegation.js',
103                 'js/book_text/jquery.scrollto.js',
104                 'js/book_text/jquery.highlightfade.js',
105                 'js/book_text/book.js',
106             ),
107             'output_filename': 'compressed/book.js',
108              },
109         'book_list': {
110             'source_filenames': (
111                 'contextmenu/jquery.ui.position.js',
112                 'contextmenu/jquery.contextMenu.js',
113                 'js/catalogue/book_list.js',
114             ),
115             'output_filename': 'compressed/book_list.js',
116         }
117     }
118 }