Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack aliases for RDM12 & nrp-cli #122

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions oarepo_ui/theme/webpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,19 @@
"react-text-truncate": "^0.19.0",
"react-datepicker": "^4.21.0",
}
aliases = {
"../../theme.config$": "less/theme.config",
"../../less/site": "less/site",
"../../less": "less",
}

else:
# RDM 12 webpack dependencies are already included in the oarepo python package, so we just include
# those used in our own components here
dependencies = {
"react-datepicker": "^4.21.0",
}
aliases = {}

theme = WebpackThemeBundle(
__name__,
Expand All @@ -68,10 +75,10 @@
dependencies=dependencies,
devDependencies={},
aliases={
**aliases,

"@translations/oarepo_ui": "translations/oarepo_ui",
"../../theme.config$": "less/theme.config",
"../../less/site": "less/site",
"../../less": "less",

# search and edit
"@less/oarepo_ui": "less/oarepo_ui",
"@js/oarepo_ui": "js/oarepo_ui",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-ui
version = 5.0.93
version = 5.0.94
description = UI module for invenio 3.5+
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down