build.sh 316 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. set -e
  3. if [ -z "$TEST_GREP" ]; then
  4. TEST_GREP=""
  5. fi
  6. node="node"
  7. if [ "$TEST_DEBUG" ]; then
  8. node="node --inspect --debug-brk"
  9. fi
  10. cd packages/wepy/
  11. babel --presets es2015,stage-1 src/ --out-dir lib/ --source-maps
  12. cd ../wepy-cli/
  13. babel --presets es2015,stage-1 src/ --out-dir lib/ --source-maps