Browse Source

[build] More sensible temp files

master
Muthu Kumar 7 years ago
committed by GitHub
parent
commit
81191363e1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      build.sh

6
build.sh

@ -1,11 +1,11 @@
#!/bin/bash #!/bin/bash
echo "Babelifying..." echo "Babelifying..."
npx babel ./isEq.js --presets=env -o ./umd/isEq2.js npx babel ./isEq.js --presets=env -o ./umd/isEq.temp.js
echo "Browserifying..." echo "Browserifying..."
npx browserify ./umd/isEq2.js -s isEq > ./umd/isEq.js npx browserify ./umd/isEq.temp.js -s isEq > ./umd/isEq.js
echo "Minifying output..." echo "Minifying output..."
npx uglifyjs ./umd/isEq.js > ./umd/isEq.min.js npx uglifyjs ./umd/isEq.js > ./umd/isEq.min.js
echo "Cleaning up..." echo "Cleaning up..."
rm ./umd/isEq2.js rm ./umd/isEq.temp.js
echo "Done!" echo "Done!"
Loading…
Cancel
Save