http scripts
[redakcja.git] / 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 )
6
7
8 STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
9 PIPELINE_CSS_COMPRESSOR = None
10 PIPELINE_JS_COMPRESSOR = None
11 PIPELINE_STORAGE = 'pipeline.storage.PipelineFinderStorage'
12
13
14 # CSS and JS files to compress
15 PIPELINE_CSS = {
16     'detail': {
17          'source_filenames': (
18             'css/master.css',
19             'css/toolbar.css',
20             'css/gallery.css',
21             'css/history.css',
22             'css/summary.css',
23             'css/html.css',
24             'css/jquery.autocomplete.css',
25             'css/dialogs.css',
26         ),
27         'output_filename': 'compressed/detail_styles.css',
28     },
29     'catalogue': {
30         'source_filenames': (
31             'css/filelist.css',
32         ),
33         'output_filename': 'compressed/catalogue_styles.css',
34      },
35      'book': {
36         'source_filenames': (
37             'css/book.css',
38         ),
39         'output_filename': 'compressed/book.css',
40     },
41     'book_list': {
42         'source_filenames': (
43             'contextmenu/jquery.contextMenu.css',
44             'css/book_list.css',
45         ),
46         'output_filename': 'compressed/book_list.css',
47     },
48 }
49
50 PIPELINE_JS = {
51     # everything except codemirror
52     'detail': {
53         'source_filenames': (
54                 # libraries
55                 'js/lib/jquery/jquery.autocomplete.js',
56                 'js/lib/jquery/jquery.blockui.js',
57                 'js/lib/jquery/jquery.elastic.js',
58                 'js/lib/jquery/jquery.xmlns.js',
59                 'js/button_scripts.js',
60                 'js/slugify.js',
61
62                 # wiki scripts
63                 'js/wiki/wikiapi.js',
64                 'js/wiki/xslt.js',
65                 'js/wiki/xml-tools.js',
66
67                 # base UI
68                 'js/wiki/base.js',
69                 'js/wiki/toolbar.js',
70
71                 # dialogs
72                 'js/wiki/dialog_save.js',
73                 'js/wiki/dialog_revert.js',
74                 'js/wiki/dialog_pubmark.js',
75
76                 # views
77                 'js/wiki/view_history.js',
78                 'js/wiki/view_summary.js',
79                 'js/wiki/view_editor_source.js',
80                 'js/wiki/view_editor_wysiwyg.js',
81                 'js/wiki/view_gallery.js',
82                 'js/wiki/view_annotations.js',
83                 'js/wiki/view_search.js',
84                 'js/wiki/view_column_diff.js',
85         ),
86         'output_filename': 'compressed/detail_scripts.js',
87      },
88     'catalogue': {
89         'source_filenames': (
90                 'js/catalogue/catalogue.js',
91                 'js/slugify.js',
92                 'email_mangler/email_mangler.js',
93         ),
94         'output_filename': 'compressed/catalogue_scripts.js',
95      },
96      'book': {
97         'source_filenames': (
98             'js/book_text/jquery.eventdelegation.js',
99             'js/book_text/jquery.scrollto.js',
100             'js/book_text/jquery.highlightfade.js',
101             'js/book_text/book.js',
102         ),
103         'output_filename': 'compressed/book.js',
104          },
105     'book_list': {
106         'source_filenames': (
107             'contextmenu/jquery.ui.position.js',
108             'contextmenu/jquery.contextMenu.js',
109             'js/catalogue/book_list.js',
110         ),
111         'output_filename': 'compressed/book_list.js',
112     }
113 }