delon.sh 458 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. # bash ./scripts/_ci/delon.sh
  3. set -e
  4. cd $(dirname $0)/../..
  5. echo "Download latest @delon version"
  6. rm -rf delon-builds
  7. git clone --depth 1 https://github.com/ng-alain/delon-builds.git
  8. rm -rf node_modules/@delon
  9. rm -rf node_modules/ng-alain
  10. rsync -am delon-builds/ node_modules/
  11. NG_ALAIN_VERSION=$(node -p "require('./node_modules/ng-alain/package.json').version")
  12. rm -rf delon-builds
  13. echo "Using ng-alain version: ${NG_ALAIN_VERSION}"