Add post-install script to copy bootstrap files in theme dir

As @PhrozenByte pointed out, we block access to the `vendor` folder
in our `.htaccess` so accessing the assets directly is very likely to
cause problems.
This commit is contained in:
theshka 2015-11-07 10:42:58 -06:00
parent a4035ffa98
commit 716c972fdc

View file

@ -24,5 +24,11 @@
"PicoPluginInterface": "lib/", "PicoPluginInterface": "lib/",
"AbstractPicoPlugin": "lib/" "AbstractPicoPlugin": "lib/"
} }
},
"scripts": {
"post-install-cmd": [
"cp vendor/twbs/bootstrap/dist/css/bootstrap.min.css themes/default/bootstrap.min.css",
"cp vendor/twbs/bootstrap/dist/js/bootstrap.js themes/default/bootstrap.js"
]
} }
} }