forked from axnsan12/drf-yasg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-ui.sh
executable file
·16 lines (14 loc) · 894 Bytes
/
update-ui.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
set -ev
npm update
cp node_modules/redoc/bundles/redoc.standalone.js src/drf_yasg/static/drf-yasg/redoc/redoc.min.js
cp node_modules/redoc/bundles/redoc.standalone.js.map src/drf_yasg/static/drf-yasg/redoc/
cp node_modules/redoc/LICENSE src/drf_yasg/static/drf-yasg/redoc/LICENSE
curl -o src/drf_yasg/static/drf-yasg/redoc-old/redoc.min.js https://rebilly.github.io/ReDoc/releases/v1.x.x/redoc.min.js
curl -o src/drf_yasg/static/drf-yasg/redoc-old/redoc.min.js.map https://rebilly.github.io/ReDoc/releases/v1.x.x/redoc.min.js.map
curl -o src/drf_yasg/static/drf-yasg/redoc-old/LICENSE https://raw.githubusercontent.com/Redocly/redoc/v1.x/LICENSE
cp -r node_modules/swagger-ui-dist src/drf_yasg/static/drf-yasg/
pushd src/drf_yasg/static/drf-yasg/swagger-ui-dist/ >/dev/null
rm -f package.json .npmignore README.md favicon-16x16.png
rm -f swagger-ui.js index.html
popd >/dev/null