2017-01-18 18:02:00 +01:00
|
|
|
# This file is part of the API Platform project.
|
|
|
|
#
|
|
|
|
# (c) Kévin Dunglas <dunglas@gmail.com>
|
|
|
|
#
|
|
|
|
# For the full copyright and license information, please view the LICENSE
|
|
|
|
# file that was distributed with this source code.
|
|
|
|
|
2017-06-02 21:22:10 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-01-18 18:02:00 +01:00
|
|
|
dest=Resources/public/swagger-ui/
|
|
|
|
|
2017-06-02 21:22:10 +02:00
|
|
|
yarn add --production --no-lockfile swagger-ui-dist
|
2017-01-18 18:02:00 +01:00
|
|
|
if [ -d $dest ]; then
|
|
|
|
rm -Rf $dest
|
|
|
|
fi
|
|
|
|
mkdir -p $dest
|
2017-06-22 21:21:11 +02:00
|
|
|
|
2017-06-02 21:22:10 +02:00
|
|
|
cp node_modules/swagger-ui-dist/swagger-ui-bundle.js $dest
|
2017-06-22 21:21:11 +02:00
|
|
|
cp node_modules/swagger-ui-dist/swagger-ui-bundle.js.map $dest
|
2017-06-02 21:22:10 +02:00
|
|
|
cp node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js $dest
|
2017-06-22 21:21:11 +02:00
|
|
|
cp node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js.map $dest
|
2017-06-02 21:22:10 +02:00
|
|
|
cp node_modules/swagger-ui-dist/swagger-ui.css $dest
|
2017-06-22 21:21:11 +02:00
|
|
|
cp node_modules/swagger-ui-dist/swagger-ui.css.map $dest
|
2017-06-02 21:22:10 +02:00
|
|
|
rm -Rf package.json node_modules/
|