| 1 | #!/bin/bash |
| 2 | STATIC_ROOT="www/static" |
| 3 | PACKAGE_VERSION=$(cat package.json | grep version | cut -d '"' -f 4) |
| 4 | |
| 5 | cp node_modules/mocha/mocha.js "$STATIC_ROOT/node_modules/mocha/mocha.js" |
| 6 | cp node_modules/mocha/mocha.css "$STATIC_ROOT/node_modules/mocha/mocha.css" |
| 7 | cp node_modules/chai/chai.js "$STATIC_ROOT/node_modules/chai/chai.js" |
| 8 | |
| 9 | rm -rf "$STATIC_ROOT/test" "$STATIC_ROOT/src" |
| 10 | cp -r "./test" "$STATIC_ROOT/test" |
| 11 | cp -r ./dist/* "$STATIC_ROOT/js" |