Skip to content
Snippets Groups Projects
Verified Commit b27a735a authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Use Yarn/django-yarnpkg for JS dependencies again

parent f29af223
No related branches found
No related tags found
1 merge request!1045Introduce Vuetify and GraphQL
......@@ -43,7 +43,7 @@ _settings = LazySettings(
)
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
SILENCED_SYSTEM_CHECKS = []
......@@ -584,6 +584,15 @@ YARN_INSTALLED_APPS = [
"luxon@^2.3.2",
"@iconify/iconify@^2.2.1",
"@iconify/json@^2.1.30",
"@mdi/font@^6.9.96",
"apollo-boost@^0.4.9",
"deepmerge@^4.2.2",
"graphql@^15.8.0",
"graphql-tag@^2.12.6",
"sass@~1.32",
"vue@^2.7.7",
"vue-apollo@^3.1.0",
"vuetify@^2.6.7",
]
merge_app_settings("YARN_INSTALLED_APPS", YARN_INSTALLED_APPS, True)
......@@ -591,13 +600,13 @@ merge_app_settings("YARN_INSTALLED_APPS", YARN_INSTALLED_APPS, True)
WEBPACK_LOADER = {
"DEFAULT": {
"CACHE": not DEBUG,
"STATS_FILE": os.path.join(BASE_DIR, "..", "webpack-stats.json"),
"STATS_FILE": os.path.join(BASE_DIR, "webpack-stats.json"),
"POLL_INTERVAL": 0.1,
"IGNORE": [r".+\.hot-update.js", r".+\.map"],
}
}
STATICFILES_DIRS = (
os.path.join(BASE_DIR, "..", "assets"),
os.path.join(BASE_DIR, "assets"),
)
JS_URL = _settings.get("js_assets.url", STATIC_URL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment