mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 12:29:24 +00:00
Add typescript support and automatic openapi client generation from ninja
This commit is contained in:
@ -7,7 +7,7 @@ from django.contrib.staticfiles.management.commands.collectstatic import (
|
||||
)
|
||||
|
||||
from staticfiles.apps import GENERATED_ROOT, IGNORE_PATTERNS_SCSS
|
||||
from staticfiles.processors import Scss, Webpack
|
||||
from staticfiles.processors import OpenApi, Scss, Webpack
|
||||
|
||||
|
||||
class Command(CollectStatic):
|
||||
@ -50,6 +50,7 @@ class Command(CollectStatic):
|
||||
return Path(location)
|
||||
|
||||
Scss.compile(self.collect_scss())
|
||||
OpenApi.compile() # This needs to be prior to webpack
|
||||
Webpack.compile()
|
||||
|
||||
collected = super().collect()
|
||||
|
Reference in New Issue
Block a user