Skip to content

Commit

Permalink
move to core directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Niicck committed Oct 17, 2023
1 parent 1ecbed8 commit cf36ba4
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion django_vite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .loader import DjangoViteConfig
from .core.asset_loader import DjangoViteConfig


__all__ = ["DjangoViteConfig"]
2 changes: 1 addition & 1 deletion django_vite/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.apps import AppConfig
from django.core.checks import Warning, register

from .exceptions import DjangoViteManifestError
from .core.exceptions import DjangoViteManifestError
from .templatetags.django_vite import DjangoViteAssetLoader


Expand Down
4 changes: 2 additions & 2 deletions django_vite/loader.py → django_vite/core/asset_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
from django.apps import apps
from django.conf import settings

from django_vite.exceptions import (
from django_vite.core.exceptions import (
DjangoViteManifestError,
DjangoViteAssetNotFoundError,
DjangoViteConfigNotFoundError,
)
from django_vite.tag_generator import Tag, TagGenerator
from django_vite.core.tag_generator import Tag, TagGenerator

DEFAULT_APP_NAME = "default"

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion django_vite/templatetags/django_vite.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django import template
from django.utils.safestring import mark_safe

from django_vite.loader import DjangoViteAssetLoader, DEFAULT_APP_NAME
from django_vite.core.asset_loader import DjangoViteAssetLoader, DEFAULT_APP_NAME


register = template.Library()
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Dict, Any
import pytest

from django_vite.loader import DjangoViteAssetLoader
from django_vite.core.asset_loader import DjangoViteAssetLoader


def reload_django_vite():
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/templatetags/test_vite_asset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from bs4 import BeautifulSoup
from django.template import Context, Template, TemplateSyntaxError
from django_vite.exceptions import DjangoViteAssetNotFoundError
from django_vite.core.exceptions import DjangoViteAssetNotFoundError


def test_vite_asset_returns_dev_tags():
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/templatetags/test_vite_asset_url.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from bs4 import BeautifulSoup
from django.template import Context, Template
from django_vite.exceptions import DjangoViteAssetNotFoundError
from django_vite.core.exceptions import DjangoViteAssetNotFoundError


def test_vite_asset_url_returns_dev_url():
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/templatetags/test_vite_legacy_asset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from bs4 import BeautifulSoup
from django.template import Context, Template
from django_vite.exceptions import DjangoViteAssetNotFoundError
from django_vite.core.exceptions import DjangoViteAssetNotFoundError


def test_vite_legacy_asset_returns_nothing_with_dev_mode_on():
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/templatetags/test_vite_legacy_polyfills.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from bs4 import BeautifulSoup
from django.template import Context, Template
from django_vite.exceptions import DjangoViteAssetNotFoundError
from django_vite.core.exceptions import DjangoViteAssetNotFoundError


def test_vite_legacy_polyfills_returns_nothing_with_dev_mode_on():
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/templatetags/test_vite_preload_asset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from bs4 import BeautifulSoup
from django.template import Context, Template
from django_vite.exceptions import DjangoViteAssetNotFoundError
from django_vite.core.exceptions import DjangoViteAssetNotFoundError


def test_preload_vite_asset_returns_nothing_with_dev_mode_on():
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/test_asset_loader.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from contextlib import suppress

from django_vite.exceptions import DjangoViteManifestError
from django_vite.core.exceptions import DjangoViteManifestError
from django_vite.templatetags.django_vite import DjangoViteAssetLoader
from django_vite.apps import check_loader_instance

Expand Down

0 comments on commit cf36ba4

Please sign in to comment.