Skip to content

Commit

Permalink
Fix web directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Dec 28, 2024
1 parent 4ff5458 commit f199d0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def init_git():
Pth("LICENSE").unlink()

if "{{cookiecutter.__include_web}}" == "False":
shutil.rmtree("src/{{cookiecutter.project_slug}}/web")
shutil.rmtree("web")

if init_git():
print("✓ Git repository initialized and remote configured")
Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_name}}/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
__email__ = "{{cookiecutter.email}}"
__version__ = "{{cookiecutter.version}}"

from .src.nodes import NODE_CLASS_MAPPINGS
from .src.nodes import NODE_DISPLAY_NAME_MAPPINGS
from .src.{{cookiecutter.project_slug}}.nodes import NODE_CLASS_MAPPINGS
from .src.{{cookiecutter.project_slug}}.nodes import NODE_DISPLAY_NAME_MAPPINGS

{% if cookiecutter.__include_web -%}
WEB_DIRECTORY = "./web"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ def test(self, image, string_field, int_field, float_field, print_to_screen):
#def IS_CHANGED(s, image, string_field, int_field, float_field, print_to_screen):
# return ""

# Set the web directory, any .js file in that directory will be loaded by the frontend as a frontend extension
# WEB_DIRECTORY = "./somejs"

# A dictionary that contains all nodes you want to export with their names
# NOTE: names should be globally unique
Expand Down

0 comments on commit f199d0e

Please sign in to comment.