Add compile bash script

This commit is contained in:
lmg-anon 2023-10-28 21:50:45 -03:00
parent e9642b6fe6
commit abe4b211e9
2 changed files with 20 additions and 2 deletions

View file

@ -13,9 +13,8 @@ if %errorlevel% neq 0 (
xcopy /y mikupad.html project >NUL
pushd .
cd project
call npm install
call npm start build
copy /y .\dist\mikupad.html ..\mikupad_compiled.html
popd
cd ..

19
compile.sh Normal file
View file

@ -0,0 +1,19 @@
#!/bin/bash
if ! command -v node > /dev/null 2>&1; then
echo "Node.js is not installed."
exit 1
fi
if ! command -v npm > /dev/null 2>&1; then
echo "npm is not installed."
exit 1
fi
cp -f mikupad.html project
cd project
npm install
npm run build
cp -f ./dist/mikupad.html ../mikupad_compiled.html
cd ..