using sass action instead of installing

This commit is contained in:
andy 2021-02-08 00:19:29 +00:00
parent ab11346a2a
commit 742c8bcf8a
5 changed files with 18 additions and 11 deletions

View File

@ -81,8 +81,11 @@ jobs:
node-version: 14 node-version: 14
# JS for compiling scss # JS for compiling scss
- name: Install Sass - name: Compile Sass
run: npm install -g sass uses: gha-utilities/sass-build@v0.3.5
with:
source: src/scss/style.scss
destination: build/style.css
# JS install from lock.json # JS install from lock.json
- name: Install Node Packages - name: Install Node Packages

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
scratch.py scratch.py
service.json service.json
requirements.txt requirements.txt
main.py
*~* *~*
*# *#

View File

@ -49,7 +49,6 @@ class Admin(Cmd):
def prepare_frontend(self): def prepare_frontend(self):
print('>> building css') print('>> building css')
print(f'sass --style=compressed {scss_rel_path} {css_rel_path}')
subprocess.check_call(['sass', '--style=compressed', str(scss_rel_path), str(css_rel_path)], shell=True) subprocess.check_call(['sass', '--style=compressed', str(scss_rel_path), str(css_rel_path)], shell=True)
print('>> building javascript') print('>> building javascript')
@ -71,7 +70,7 @@ class Admin(Cmd):
) )
def do_all(self, args): def do_all(self, args):
self.prepare_frontend() # self.prepare_frontend()
self.prepare_stage() self.prepare_stage()
self.prepare_main('api') self.prepare_main('api')

View File

@ -1,6 +0,0 @@
from music.music import create_app
app = create_app()
if __name__ == '__main__':
app.run(host='127.0.0.1', port=8080, debug=True)

12
package-lock.json generated
View File

@ -4185,6 +4185,13 @@
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
"dev": true "dev": true
}, },
"nan": {
"version": "2.14.2",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.14.2.tgz",
"integrity": "sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==",
"dev": true,
"optional": true
},
"nanomatch": { "nanomatch": {
"version": "1.2.13", "version": "1.2.13",
"resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",
@ -5912,7 +5919,10 @@
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz",
"integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==",
"dev": true, "dev": true,
"optional": true "optional": true,
"requires": {
"nan": "^2.12.1"
}
} }
} }
}, },