mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Now depending on Bulma from npm.
This commit is contained in:
9
src/frontend/lib/FastAPIServer.py
vendored
9
src/frontend/lib/FastAPIServer.py
vendored
@@ -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
|
||||
|
||||
|
||||
1
src/frontend/lib/objects.py
vendored
1
src/frontend/lib/objects.py
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user