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

Commit d2115f5

Browse files
committed
Add script to sync vendor libraries.
1 parent 9628d50 commit d2115f5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

bin/sync-vendor-libs.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
cd "$(dirname "$0")/.."
3+
cp node_modules/chai/chai.js test/vendor/
4+
cp node_modules/mocha/mocha.js test/vendor/
5+
cp node_modules/mocha/mocha.css test/vendor/

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"lint": "eslint .",
6161
"unit": "mocha",
6262
"test": "npm run lint && npm run unit",
63+
"prebuild": "bin/sync-vendor-libs.sh",
6364
"build": "cd js && uglifyjs md5.js -c -m -o md5.min.js --source-map url=md5.min.js.map",
6465
"preversion": "npm test",
6566
"version": "npm run build && git add -A js",

0 commit comments

Comments
 (0)