Now depending on Bulma from npm.

This commit is contained in:
th3r00t
2023-11-04 03:18:19 -04:00
parent ed160249c8
commit 929117725b
4 changed files with 133 additions and 63 deletions

View File

@@ -142,7 +142,14 @@ class FastAPIServer():
output_style='compressed')
with open('src/frontend/static/styles/pyShelf.css', 'w') as _pyShelf:
_pyShelf.write(_pyShelf_src[0])
_pyShelf.close()
#_bulma_src = sass.compile(
# filename='src/frontend/static/styles/bulma.sass',
# source_map_filename='src/frontend/static/styles/bulma.sass',
# output_style='compressed')
#with open('src/frontend/static/styles/bulma.css', 'w') as _bulma:
# _bulma.write(_bulma_src[0])
self.JSInterface.install()
return True

View File

@@ -19,6 +19,7 @@ class JSInterface():
if which("npm"):
self.config.logger.info("Installing JavaScript dependencies...")
run(["npm", "install"], cwd=self.package_json.parent)
else:
self.config.logger.error("npm is not installed.")
exit(1)