Fix build scripts (#77)

* Copy all templates, fix #76

* copy any folders in templates

---------

Co-authored-by: Artemy <artegoser@gmail.com>
This commit is contained in:
Andrey 2024-02-14 09:42:48 +00:00 committed by GitHub
parent af29af9f16
commit 92ab68c587
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@
}, },
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "npm run clean-css && copyfiles ./templates/*.ejs .env ./dist/ && tsc", "build": "npm run clean-css && copyfiles ./templates/*.ejs ./templates/**/*.ejs .env ./dist/ && tsc",
"start": "cd ./dist && node ./src/app.js", "start": "cd ./dist && node ./src/app.js",
"start:docker": "node ./src/app.js", "start:docker": "node ./src/app.js",
"clean-css": "cleancss --batch static/*.css -o dist/static --batch-suffix \"\"", "clean-css": "cleancss --batch static/*.css -o dist/static --batch-suffix \"\"",