Skip to content

Commit 2d4c912

Browse files
committed
Add script to sync vendor libraries.
1 parent 5a4bd15 commit 2d4c912

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
@@ -55,6 +55,7 @@
5555
"lint": "eslint .",
5656
"unit": "mocha",
5757
"test": "npm run lint && npm run unit",
58+
"prebuild": "bin/sync-vendor-libs.sh",
5859
"build": "cd js && uglifyjs tmpl.js -c -m -o tmpl.min.js --source-map url=tmpl.min.js.map",
5960
"preversion": "npm test",
6061
"version": "npm run build && git add -A js",

0 commit comments

Comments
 (0)