Skip to content

Commit 211ba8a

Browse files
committed
Added Windows-compatible commands for copying Bootstrap and jQuery UI assets
1 parent eb319f7 commit 211ba8a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

application/composer.json

+8
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,18 @@
5858
"rm -rf public/components/bootstrap",
5959
"cp -R vendor/twbs/bootstrap/dist public/components/bootstrap"
6060
],
61+
"copy-bootstrap-windows": [
62+
"if exist public\\components\\bootstrap rmdir /s /q public\\components\\bootstrap",
63+
"xcopy vendor\\twbs\\bootstrap\\dist public\\components\\bootstrap /e /i /q /y"
64+
],
6165
"copy-jqueryui": [
6266
"rm -rf public/components/jquery-ui",
6367
"cp -R vendor/jquery/jquery-ui/dist public/components/jquery-ui"
6468
],
69+
"copy-jqueryui-windows": [
70+
"if exist public\\components\\jquery-ui rmdir /s /q public\\components\\jquery-ui",
71+
"xcopy vendor\\jquery\\jquery-ui\\dist public\\components\\jquery-ui /e /i /q /y"
72+
],
6573
"update-assets":[
6674
"ComposerBootstrap::installAssets",
6775
"ComponentMirror::postAutoloadDump",

bootstrap.bat

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ if errorlevel 1 (
99
)
1010
php bin/console lexik:jwt:generate-keypair
1111
php bin/composer run post-install-cmd
12+
php bin/composer run copy-bootstrap-windows
13+
php bin/composer run copy-jqueryui-windows
1214
echo Bootstrap finished!
1315
echo If you want to run the builtin development server, install Symfony CLI from https://symfony.com/download then run:
1416
echo cd application

0 commit comments

Comments
 (0)