Updates npm publish script for cleaner file copying

This commit is contained in:
Andrew Gioia 2023-08-02 21:41:50 -04:00
parent e7e4fa961b
commit 21464e0c74
Signed by: andrew
GPG Key ID: FC09694A000800C8

View File

@ -14,7 +14,7 @@
"dev": "sass --no-source-map src/scss/theme.scss dist/site.css && cp src/index.html dist/index.html && cp -R src/img dist && cp -R src/icons dist",
"prod": "sass --no-source-map src/scss/theme.scss dist/site.css --style compressed && cp src/index.html dist/index.html && cp -R src/img dist && cp -R src/icons dist",
"watch": "sass --no-source-map --watch src/scss/theme.scss dist/site.css",
"publish": "cp -R dist/* /var/www/andrewgioia.com/"
"publish": "rsync -av --delete dist/ /var/www/andrewgioia.com"
},
"repository": {
"type": "git",