Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Add script to sync vendor libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
blueimp committed Sep 25, 2021
1 parent 9628d50 commit d2115f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/sync-vendor-libs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
cd "$(dirname "$0")/.."
cp node_modules/chai/chai.js test/vendor/
cp node_modules/mocha/mocha.js test/vendor/
cp node_modules/mocha/mocha.css test/vendor/
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"lint": "eslint .",
"unit": "mocha",
"test": "npm run lint && npm run unit",
"prebuild": "bin/sync-vendor-libs.sh",
"build": "cd js && uglifyjs md5.js -c -m -o md5.min.js --source-map url=md5.min.js.map",
"preversion": "npm test",
"version": "npm run build && git add -A js",
Expand Down

0 comments on commit d2115f5

Please sign in to comment.