def test_extract_deps(): """Test bundles with conflicts.""" bundle = Bundle(NpmBundle(npm={"jquery": "~2"}), NpmBundle(npm={"jquery": "~1.11"})) expected = {"jquery": "~2"} assert expected == extract_deps([bundle])
def test_extract_deps(): """Test bundles with conflicts.""" bundle = Bundle(NpmBundle(npm={'jquery': '~2'}), NpmBundle(npm={'jquery': '~1.11'})) expected = {'jquery': '~2'} assert expected == extract_deps([bundle])
# RERO ILS # Copyright (C) 2020 RERO # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, version 3 of the License. # # This program 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 Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. """JS/CSS bundles for theme.""" from __future__ import absolute_import, print_function from flask_assets import Bundle from invenio_assets import NpmBundle ill_request_form_js = Bundle( NpmBundle('js/rero_ils/ill_request_form.js', filters='requirejs', npm={ 'jquery': '~1.9.1', }), filters='jsmin', output='gen/rero_ils.ill_request_form.%(version)s.js', )
# You should have received a copy of the GNU General Public License # along with INSPIRE. If not, see <http://www.gnu.org/licenses/>. # # In applying this licence, 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. """Bundles for author forms.""" from flask_assets import Bundle from invenio_assets import NpmBundle update_css = Bundle( "scss/authors/authors-update-form.scss", output='gen/inspire-author-update.%(version)s.css', depends='scss/forms/*.scss', filters="node-scss, cleancss" ) js = NpmBundle( 'js/authors/app.js', filters='requirejs', depends=( 'js/authors/author.js', 'js/authors/profile.js', 'js/authors/publications.js', 'js/authors/statistics.js' ), output="gen/authors.%(version)s.js" )
# 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. """Communities bundles.""" from __future__ import absolute_import, print_function from flask_assets import Bundle from invenio_assets import NpmBundle, RequireJSFilter js = Bundle("js/invenio_communities/main.js", filters=RequireJSFilter(), output='gen/communities.%(version)s.js') js_tree = NpmBundle('js/invenio_communities/inline.community.bundle.js', 'js/invenio_communities/polyfills.community.bundle.js', 'js/invenio_communities/main.community.bundle.js', output='gen/communities_tree.%(version)s.js') js_tree_display = NpmBundle( 'js/invenio_communities/inline.bundle.js', 'js/invenio_communities/polyfills.bundle.js', 'js/invenio_communities/main.bundle.js', output='gen/communities_tree_display.%(version)s.js') ckeditor = Bundle("js/invenio_communities/ckeditor.js", filters=RequireJSFilter(), output='gen/communities_editor.%(version)s.js') css = NpmBundle('scss/invenio_communities/communities.scss', filters='scss, cleancss', output='gen/communities.%(version)s.css',
"""JS/CSS bundles for Records.""" from __future__ import absolute_import, print_function from flask_assets import Bundle from invenio_assets import NpmBundle stats_js = NpmBundle( 'node_modules/d3-tip/index.js', 'node_modules/d3-svg-legend/d3-legend.min.js', 'node_modules/lodash/lodash.js', 'node_modules/invenio-charts-js/dist/lib.bundle.js', 'js/cds_records/stats.js', output='gen/cds.records.stats.%(version)s.js', npm={ 'invenio-charts-js': '^0.1.4', 'd3-extended': '^1.2.10', 'd3-svg-legend': '^2.24.1', 'd3-tip': '^0.7.1', 'lodash': '^4.17.4' } ) stats_css = Bundle( Bundle( 'node_modules/invenio-charts-js/src/styles/styles.scss', 'scss/stats.scss', filters='node-scss,cleancssurl', ), output='gen/cds.stats.%(version)s.css',
# published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # WEKO3 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 WEKO3; if not, write to the # Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307, USA. """Bundles for weko-index-tree.""" from flask_assets import Bundle from invenio_assets import NpmBundle style = Bundle('css/weko_index_tree/styles.bundle.css', filters='cleancss', output="gen/index_tree_view.%(version)s.css") js_treeview = NpmBundle('js/weko_index_tree/inline.bundle.js', 'js/weko_index_tree/polyfills.bundle.js', 'js/weko_index_tree/main.bundle.js', output="gen/index_tree_view.js") js = Bundle( 'js/weko_index_tree/app.js', # filters='requirejs', # JQuery etc is already included in Flask-Admin output="gen/index_tree.%(version)s.js")
# 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. """Previewer bundles.""" from __future__ import unicode_literals from flask_assets import Bundle from invenio_assets import NpmBundle, RequireJSFilter previewer_base_css = Bundle( "node_modules/bootstrap/dist/css/bootstrap.css", NpmBundle( npm={ "bootstrap": "~3.3.6", "font-awesome": "~4.5.0", } ), output='gen/previewer-base.%(version)s.css' ) """CSS bundle for ZIP file previewer.""" previewer_base_js = Bundle( NpmBundle( npm={ "bootstrap": "~3.3.6", "jquery": "~1.9.1", } ), "node_modules/bootstrap/dist/js/bootstrap.js",
# 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. from __future__ import absolute_import, print_function from flask_assets import Bundle from invenio_assets import NpmBundle css = NpmBundle( 'scss/cap.scss', filters='node-scss, cleancss', output='gen/cap.%(version)s.css', npm={ "almond": "~0.3.1", "bootstrap-sass": "~3.3.5", "font-awesome": "~4.4.0", } ) js = NpmBundle( Bundle( 'node_modules/almond/almond.js', 'js/cap-build.js', 'js/settings.js', 'js/cap-settings.js', filters='uglifyjs', ), Bundle( # 'js/main.js',
# # You should have received a copy of the GNU General Public License # along with INSPIRE; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. """Inspire bundles.""" from __future__ import absolute_import, division, print_function from invenio_assets import NpmBundle # Used when ASSETS_DEBUG is False - like production almondjs = NpmBundle("node_modules/almond/almond.js", "js/settings.js", filters="uglifyjs", output="gen/almond.%(version)s.js", npm={ "almond": "~0.3.1", "hogan.js": "~3.0.2", "requirejs-hogan-plugin": "~0.3.1" }) # require.js is only used when: # # - ASSETS_DEBUG is True # - REQUIREJS_RUN_IN_DEBUG is not False requirejs = NpmBundle("node_modules/requirejs/require.js", "js/settings.js", output="gen/require.%(version)s.js", filters="uglifyjs", npm={ "requirejs": "~2.1.22",
# MA 02111-1307, USA. # # In applying this license, RERO 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 theme.""" from __future__ import absolute_import, print_function from flask_assets import Bundle from invenio_assets import NpmBundle from ...bundles import i18n detailed_js = Bundle( i18n, NpmBundle('js/rero_ils/translations.js', 'js/rero_ils/thumbnail.js', 'js/rero_ils/detailed_app.js', filters='requirejs', depends=('node_modules/d3/*'), npm={ "almond": "~0.3.1", 'angular': '~1.4.10', 'angular-loading-bar': '~0.9.0', 'd3': '^3.5.17' }), filters='jsmin', output='gen/rero_ils.detailed.%(version)s.js', )
def _get_contents(self): """Create strings from lazy strings.""" return [ str(value) if is_lazy_string(value) else value for value in super(LazyNpmBundle, self)._get_contents() ] contents = property(_get_contents, NpmBundle._set_contents) css = NpmBundle( 'scss/invenio_theme/styles.scss', depends=('scss/invenio_theme/*.scss', ), filters='node-scss,cleancssurl', output='gen/styles.%(version)s.css', npm={ 'almond': '~0.3.1', 'bootstrap-sass': '~3.3.5', 'font-awesome': '~4.4.0', 'jquery': '~1.9.1', } ) """Default CSS bundle with Bootstrap and Font-Awesome.""" def lazy_skin(): """Generate skin path.""" return 'node_modules/admin-lte/dist/css/skins/{0}.min.css'.format( current_app.config.get('ADMIN_UI_SKIN', 'skin-blue') )
# 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. """Bundles for Invenio-I18N.""" from __future__ import absolute_import, print_function from invenio_assets import NpmBundle, RequireJSFilter js = NpmBundle('js/invenio_i18n/angularLangSelector.js', filters=RequireJSFilter(), output='gen/i18n.%(version)s.js', npm={ 'angular': '~1.4.9', 'angular-gettext': '~2.3.8', })
) weko_admin_feedback_mail_css = Bundle( 'css/weko_admin/feedback.mail.css', output="gen/weko_admin_feedback_mail.%(version)s.css", ) admin_lte_js_dependecies = NpmBundle( 'node_modules/jquery/jquery.js', 'node_modules/moment/moment.js', 'node_modules/select2/dist/js/select2.full.js', 'node_modules/requirejs/require.js', 'js/settings.js', 'node_modules/angular/angular.js', filters='jsmin', npm={ 'requirejs': '~2.3.6', 'jquery': '~1.9.1', 'angular': '~1.4.9', 'moment': '~2.9.0', 'select2': '~4.0.2', }, output='gen/weko_admin_ui.admin_js_dependecies.%(version)s.js', ) admin_lte_js = NpmBundle( 'node_modules/admin-lte/dist/js/app.js', npm={ 'admin-lte': '~2.3.6', }, output='gen/weko_admin_ui.admin_lte_js.%(version)s.js',
# License, or (at your option) any later version. # # RERO EBOOKS 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 RERO EBOOKS; if not, write to the # Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307, USA. # # In applying this license, RERO 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 theme.""" from __future__ import absolute_import, print_function from invenio_assets import NpmBundle ebooks_css = NpmBundle('css/rero_ebooks/ebooks.scss', filters='node-scss,cleancssurl', output='gen/ebooks.%(version)s.css', npm={ 'almond': '~0.3.1', 'bootstrap-sass': '~3.3.5', 'font-awesome': '~4.4.0', 'jquery': '~1.9.1', })
# General Public License for more details. # # You should have received a copy of the GNU General Public License # along with WEKO3; if not, write to the # Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307, USA. """WEKO3 module docstring.""" from invenio_assets import NpmBundle style = NpmBundle( 'node_modules/angular-loading-bar/build/loading-bar.css', 'node_modules/typeahead.js-bootstrap-css/typeaheadjs.css', 'node_modules/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.css', 'css/weko_records_ui/style.css', output="gen/weko_records_ui.%(version)s.css", npm={ 'bootstrap-sass': '~3.3.5', 'bootstrap-switch': '~3.0.2', 'font-awesome': '~4.4.0', 'typeahead.js-bootstrap-css': '~1.2.1', }) js_dependecies = NpmBundle( "node_modules/angular-ui-bootstrap/ui-bootstrap-tpls.js", "node_modules/angular/angular.js", 'node_modules/angular-animate/angular-animate.js', 'node_modules/angular-sanitize/angular-sanitize.js', 'node_modules/angular-strap/dist/angular-strap.js', "node_modules/angular-loading-bar/build/loading-bar.js", "node_modules/typeahead.js/dist/bloodhound.js", "node_modules/typeahead.js/dist/typeahead.bundle.js",
css = Bundle( Bundle( 'node_modules/ng-dialog/css/ngDialog.css', 'node_modules/ng-dialog/css/ngDialog-theme-default.css', 'node_modules/ngmodal/dist/ng-modal.css', 'node_modules/ui-select/dist/select.css', 'node_modules/angular-loading-bar/build/loading-bar.css', 'node_modules/angular-mass-autocomplete/massautocomplete.theme.css', 'node_modules/angularjs-toaster/toaster.css', filters='cleancssurl', ), NpmBundle('scss/cds.scss', filters='node-scss,cleancssurl', npm={ 'bootstrap-sass': '~3.3.5', 'font-awesome': '~4.7.0', 'ngmodal': '~2.0.1' }), output='gen/cds.%(version)s.css', ) """Default CSS bundle.""" js = NpmBundle(Bundle( 'node_modules/jquery/jquery.js', 'node_modules/bootstrap-sass/assets/javascripts/bootstrap.js', 'node_modules/angular/angular.js', 'node_modules/ng-dialog/js/ngDialog.js', 'node_modules/clipboard/dist/clipboard.js', 'node_modules/ngclipboard/dist/ngclipboard.js', 'node_modules/lodash/lodash.js',
# MA 02111-1307, USA. """Bundles for weko-index-tree.""" from flask_assets import Bundle from invenio_assets import NpmBundle embedded_wayf_custom = Bundle( 'css/weko_accounts/wayf_custom.css', output="gen/weko_accounts_wayf_custom.%(version)s.css", ) embedded_ds_P1_js = Bundle( 'js/weko_accounts/embedded_ds.js', output="gen/weko_accounts_embedded_ds_1.%(version)s.js", ) embedded_ds_P2_js = Bundle( 'js/weko_accounts/embedded_ds_2.js', output="gen/weko_accounts_embedded_ds_2.%(version)s.js", ) embedded_ds_multi_language_js = Bundle( 'js/weko_accounts/change_translation_embedded.js', output="gen/weko_accounts_embedded_ds_multi_language.%(version)s.js", ) suggest_js = NpmBundle( 'js/weko_accounts/suggest.js', output="gen/weko_accounts_suggest.js", )
# 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 Search UI.""" from __future__ import absolute_import, print_function from invenio_assets import NpmBundle js = NpmBundle( 'node_modules/d3/d3.js', 'node_modules/angular-loading-bar/build/loading-bar.js', 'node_modules/invenio-search-js/dist/invenio-search-js.js', filters='jsmin', depends=('node_modules/invenio-search-js/dist/*.js', 'node_modules/d3/*'), output='gen/cds.search.%(version)s.js', npm={ 'angular-loading-bar': '~0.9.0', 'd3': '^3.5.17', 'invenio-search-js': '^1.3.1', }, ) """Default JavaScript bundle."""
"""Bundles for weko-authors.""" from flask_assets import Bundle from invenio_assets import NpmBundle css = Bundle( 'css/weko_authors/styles.bundle.css', filters='cleancss', output="gen/author.%(version)s.css" ) js = NpmBundle( 'js/weko_authors/inline.bundle.js', 'js/weko_authors/polyfills.bundle.js', 'js/weko_authors/main.bundle.js', filters='jsmin', output="gen/author.%(version)s.js", ) author_search_css = Bundle( 'css/weko_authors/styles.search.bundle.css', filters='cleancss', output="gen/authorSearch.%(version)s.css" ) author_search_js = NpmBundle( 'js/weko_authors/inline.search.bundle.js', 'js/weko_authors/polyfills.search.bundle.js', 'js/weko_authors/main.search.bundle.js', filters='jsmin', output="gen/authorSearch.%(version)s.js",
# # 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. """Bundle definition for record editor.""" from __future__ import absolute_import, division, print_function from invenio_assets import NpmBundle js = NpmBundle( "node_modules/record-editor/dist/inline.js", "node_modules/record-editor/dist/*.bundle.js", depends=("node_modules/record-editor/dist/*.js"), output="gen/record-editor.%(version)s.js", npm={ "record-editor": "latest" } )
def test_init(): """Test version import.""" bundle = NpmBundle('testfile.css', npm={"bootstrap": "3.0.0"}) assert bundle.npm == {"bootstrap": "3.0.0"}
from __future__ import absolute_import, print_function from flask_assets import Bundle from invenio_assets import NpmBundle css = NpmBundle(Bundle( 'scss/styles.scss', filters='node-scss', depends=('scss/*.scss', ), ), Bundle( 'node_modules/angular-loading-bar/build/loading-bar.css', 'node_modules/typeahead.js-bootstrap-css/typeaheadjs.css', 'node_modules/bootstrap-switch/dist/css/bootstrap3' '/bootstrap-switch.css', filters='cleancss', ), output="gen/zenodo.%(version)s.css", npm={ 'bootstrap-sass': '~3.3.5', 'bootstrap-switch': '~3.0.2', 'font-awesome': '~4.4.0', 'typeahead.js-bootstrap-css': '~1.2.1', }) """Default CSS bundle.""" js = NpmBundle(Bundle( 'node_modules/almond/almond.js', 'js/modernizr-custom.js', filters='uglifyjs',
# granted to it by virtue of its status as an Intergovernmental Organization # or submit itself to any jurisdiction. """Bundles for forms used across INSPIRE.""" from __future__ import absolute_import, division, print_function from invenio_assets import NpmBundle from invenio_assets.filters import RequireJSFilter from inspirehep.modules.theme.bundles import js as _js js = NpmBundle("js/forms/inspire-form-init.js", output="gen/inspire-form.%(version)s.js", filters=RequireJSFilter(exclude=[_js]), npm={ "eonasdan-bootstrap-datetimepicker": "~4.15.35", "typeahead.js": "~0.10.5", "bootstrap-multiselect": "~0.9.13", "moment": "~2.11.2", }) css = NpmBundle( "scss/forms/form.scss", "node_modules/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css", "node_modules/typeahead.js-bootstrap-css/typeaheadjs.css", "node_modules/bootstrap-multiselect/dist/css/bootstrap-multiselect.css", output='gen/inspire-form.%(version)s.css', depends='scss/forms/*.scss', filters="node-scss, cleancss", npm={"typeahead.js-bootstrap-css": "~1.2.1"})
from flask_assets import Bundle from invenio_assets import NpmBundle css = Bundle( 'node_modules/ui-select/dist/select.css', 'node_modules/jqueryui/jquery-ui.css', 'node_modules/rr-ng-ckeditor/ng-ckeditor.css', filters='cleancss', output='gen/deposit.%(version)s.css', ) js_dependencies_jquery = NpmBundle( 'node_modules/jquery/jquery.js', 'node_modules/jqueryui/jquery-ui.js', npm={ 'jquery': '~1.9.1', 'jqueryui': '~1.11.1', } ) js_dependencies_ui_sortable = NpmBundle( 'node_modules/angular-ui-sortable/dist/sortable.js', npm={ 'angular-ui-sortable': '~0.14.3', } ) js_dependencies_ckeditor = NpmBundle( 'node_modules/ckeditor/ckeditor.js', 'node_modules/rr-ng-ckeditor/ng-ckeditor.js', 'node_modules/angular-schema-form-ckeditor/bootstrap-ckeditor.js',
# Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307, USA. """Bundles for weko-search-ui.""" from flask_assets import Bundle from invenio_assets import NpmBundle css = Bundle( 'node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.css', filters='cleancss', output='gen/weko_search_ui.%(version)s.css', ) js_dependencies_datepicker = NpmBundle( 'node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.js', npm={ 'bootstrap-datepicker': '~1.7.1', }) js_dependecies = NpmBundle( js_dependencies_datepicker, filters='requirejs', output='gen/weko_search_ui.dependencies.%(version)s.js', ) js = Bundle( 'js/weko_search_ui/app.js', filters='requirejs', output="gen/weko_search_ui.%(version)s.js", )
def test_cli(script_info): """Test npm CLI.""" deps = {"bootstrap": "3.0.0"} bundle = Bundle(NpmBundle(npm=deps)) runner = CliRunner() app = script_info.load_app() assets = app.extensions['invenio-assets'] assets.env.register('test1', bundle) assert len(assets.env) == 1 expected = { "name": app.name, "dependencies": { "bootstrap": "3.0.0", }, "version": "", } # Test default output with runner.isolated_filesystem(): result = runner.invoke(npm, obj=script_info) assert result.exit_code == 0 filepath = os.path.join(app.static_folder, 'package.json') assert os.path.exists(filepath) with open(filepath) as f: package_json = json.loads(f.read()) assert package_json == expected # Test writing package.json file. with runner.isolated_filesystem(): result = runner.invoke(npm, ['-o', 'package.json'], obj=script_info) assert result.exit_code == 0 filepath = os.path.join('package.json') assert os.path.exists(filepath) with open('package.json') as f: package_json = json.loads(f.read()) assert package_json == expected # Test merging a base another file. newdep = {'font-awesome': '4.0'} expected['dependencies'].update(newdep) with runner.isolated_filesystem(): with open('base.json', 'wt') as f: f.write(json.dumps({'dependencies': newdep})) result = runner.invoke(npm, ['-i', 'base.json', '-o', 'package.json'], obj=script_info) assert result.exit_code == 0 filepath = os.path.join('package.json') assert os.path.exists(filepath) with open('package.json') as f: package_json = json.loads(f.read()) assert package_json == expected
from __future__ import absolute_import, print_function from flask_assets import Bundle from invenio_assets import NpmBundle css = NpmBundle( Bundle( 'scss/styles.scss', filters='node-scss, cleancssurl', ), Bundle( 'node_modules/angular-loading-bar/build/loading-bar.css', 'node_modules/typeahead.js-bootstrap-css/typeaheadjs.css', # 'node_modules/bootstrap-switch/dist/css/bootstrap3' # '/bootstrap-switch.css', filters='cleancssurl', ), depends=('scss/*.scss', ), output='gen/cernopendata.%(version)s.css', npm={ 'angular-loading-bar': '~0.9.0', 'bootstrap-sass': '~3.3.5', # 'bootstrap-switch': '~3.0.2', 'font-awesome': '~4.4.0', 'typeahead.js-bootstrap-css': '~1.2.1', }) """Default CSS bundle.""" search_js = NpmBundle( 'node_modules/angular-sanitize/angular-sanitize.js', 'js/components/resultsBrief.js',
# -*- coding: utf-8 -*- # # This file is part of INSPIRE. # Copyright (C) 2014-2017 CERN. # # INSPIRE 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 3 of the License, or # (at your option) any later version. # # INSPIRE 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 INSPIRE. If not, see <http://www.gnu.org/licenses/>. # # 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. """Bundle definition for record editor.""" from __future__ import absolute_import, division, print_function from invenio_assets import NpmBundle js = NpmBundle(npm={"record-editor": "^0.13.0"})
.. deprecated:: 1.0.0 AMD/RequireJS based bundles have been deprecated in Invenio v3.0 and will be removed. """ from __future__ import unicode_literals from flask_assets import Bundle from invenio_assets import NpmBundle, RequireJSFilter previewer_base_css = Bundle( "node_modules/bootstrap/dist/css/bootstrap.css", NpmBundle( npm={ "bootstrap-sass": "~3.4.0", "font-awesome": "~4.5.0", } ), output='gen/previewer-base.%(version)s.css' ) """CSS bundle for ZIP file previewer.""" previewer_base_js = Bundle( NpmBundle( npm={ "jquery": "~3.3.0", "bootstrap": "~3.4.0", } ), "node_modules/jquery/dist/jquery.js",