mirror of
https://github.com/lmg-anon/mikupad.git
synced 2026-04-26 10:40:53 +00:00
Add compile bash script
This commit is contained in:
parent
e9642b6fe6
commit
abe4b211e9
2 changed files with 20 additions and 2 deletions
|
|
@ -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
19
compile.sh
Normal 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 ..
|
||||
Loading…
Add table
Add a link
Reference in a new issue