forked from nelmio/NelmioApiDocBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-js.sh
More file actions
executable file
·24 lines (20 loc) · 784 Bytes
/
update-js.sh
File metadata and controls
executable file
·24 lines (20 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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.
#!/bin/sh
dest=Resources/public/swagger-ui/
yarn add --production --no-lockfile swagger-ui-dist
if [ -d $dest ]; then
rm -Rf $dest
fi
mkdir -p $dest
cp node_modules/swagger-ui-dist/swagger-ui-bundle.js $dest
cp node_modules/swagger-ui-dist/swagger-ui-bundle.js.map $dest
cp node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js $dest
cp node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js.map $dest
cp node_modules/swagger-ui-dist/swagger-ui.css $dest
cp node_modules/swagger-ui-dist/swagger-ui.css.map $dest
rm -Rf package.json node_modules/