1234567891011121314151617181920212223242526272829 |
- #!/bin/sh
- set -e
- npm run sass
- npm run sass:icons
- if [ -d "dist" ]; then
- for f in dist/*.js; do
-
- if [ -f "$f.license" ] && [ -f "$f.map" ]; then
-
- [ -e "$f.map.license" ] || [ -L "$f.map.license" ] && rm "$f.map.license"
-
- ln -s "$(basename "$f.license")" "$f.map.license"
- fi
- done
- echo "Copying licenses for sourcemaps done"
- else
- echo "This script needs to be executed from the root of the repository"
- exit 1
- fi
|