forked from CERNDocumentServer/cds-videos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.py
More file actions
112 lines (104 loc) · 4.31 KB
/
Copy pathwebpack.py
File metadata and controls
112 lines (104 loc) · 4.31 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015, 2016, 2017 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# Invenio is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Invenio; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307, USA.
#
# In applying this license, CERN does not
# waive the privileges and immunities granted to it by virtue of its status
# as an Intergovernmental Organization or submit itself to any jurisdiction.
"""JS/CSS bundles for CDS Theme."""
"""JS/CSS bundles for search-ui.
You include one of the bundles in a page like the example below (using
``base`` bundle as an example):
.. code-block:: html
{{ webpack['base.js']}}
"""
from invenio_assets.webpack import WebpackThemeBundle
theme = WebpackThemeBundle(
__name__,
"assets",
default="bootstrap3",
themes={
"bootstrap3": dict(
entry={
"cds_theme_app": "./js/cds/app.js",
"cds_theme_styles": "./scss/cds/cds.scss",
"cds_deposit_app": "./js/cds_deposit/app.js",
"cds_previewer_styles": "./scss/cds_previewer/video.scss",
"cds_records_app": "./js/cds_records/app.js",
"cds_records_stats_app": "./js/cds_records/stats.js",
"cds_records_stats_styles": "./scss/cds_records/stats.scss",
"cds_search_ui_app": "./js/cds_search_ui/app.js",
},
dependencies={
"angular": "~1.5.8",
"angular-animate": "~1.4.8",
"angular-loading-bar": "~0.9.0",
"angular-sanitize": "~1.5.8",
"angular-elastic": "~2.5.1",
"angular-scroll": "~1.0.2",
"angular-sticky-plugin": "~0.4.1",
"angular-schema-form": "~0.8.13",
"angular-lazy-image": "~0.3.2",
"angular-local-storage": "~0.5.2",
"angular-schema-form-dynamic-select": "~0.13.1",
"angular-mass-autocomplete": "~0.5.0",
"angular-local-storage": "~0.5.2",
"angularjs-toaster": "~2.1.0",
"angular-ui-bootstrap": "~2.5.0",
"angular-strap": "~2.3.9",
"angular-translate": "~2.11.0",
"angular-underscore": "~0.0.3",
"angular-ui-sortable": "~0.14.3",
"d3": "^3.5.17",
"invenio-search-js": "^1.5.4",
"invenio-charts-js": "^0.2.7",
"invenio-records-js": "~0.0.8",
# TODO: check if we can remove invenio-files-js
"invenio-files-js": "~0.0.2",
"ng-file-upload": "~12.0.4",
"jquery": "~3.2.1",
"jqueryui": "~1.11.1",
"ng-dialog": "~0.6.0",
"ui-select": "~0.18.1",
"clipboard": "~1.5.16",
"ngclipboard": "~1.1.1",
"lodash": "~4.17.4",
"mousetrap": "~1.6.1",
"objectpath": "~1.2.1",
"tv4": "~1.2.7",
"bootstrap-sass": "<3.4.2",
"font-awesome": "~4.5.0",
"ngmodal": "~2.0.1",
"cds": "~0.2.0",
"angular-schema-form-ckeditor": "git+https://github.com/CERNDocumentServer/cds-videos-angular-schema-ckeditor",
"ckeditor": "4.12.1",
"rr-ng-ckeditor": "~0.2.1",
"dompurify": "^2.4.5",
# needed because ci fails on tests otherwise. not imported in any bundle
"semantic-ui-less": "^2.4.1",
"vtt.js": "~0.13.0",
},
aliases={
"@js/cds": "js/cds",
"@js/cds_deposit": "js/cds_deposit",
"@js/cds_search_ui": "js/cds_search_ui",
},
),
},
)