Browse Source

script that prepares dist folder for endtoend tests

Artur Paikin 7 năm trước cách đây
mục cha
commit
8051c71fee
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      bin/endtoend-build

+ 7 - 0
bin/endtoend-build

@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+echo "Preparing for end to end test: copying static HTML and CSS, building JS"
+rm -rf ./test/endtoend/dist && mkdir ./test/endtoend/dist
+cp ./dist/uppy.min.css ./test/endtoend/dist 
+cp ./test/endtoend/src/index.html ./test/endtoend/dist 
+browserify ./test/endtoend/src/main.js -o ./test/endtoend/dist/bundle.js -t babelify