diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 18:55:00 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 18:55:00 +0800 |
commit | 968df3424ccab04ca15bbe4138e35ff90d1c00a4 (patch) | |
tree | d033db5ba2009800f31e49d7b5f6c060b83c5c1a /package.json | |
parent | 380c1e1ca521ffad6f4e3832d896bd737f67eab2 (diff) | |
download | dexon-0x-contracts-968df3424ccab04ca15bbe4138e35ff90d1c00a4.tar.gz dexon-0x-contracts-968df3424ccab04ca15bbe4138e35ff90d1c00a4.tar.zst dexon-0x-contracts-968df3424ccab04ca15bbe4138e35ff90d1c00a4.zip |
Add copy_fixtures command
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/package.json b/package.json index 59e33a7dd..c232e2828 100644 --- a/package.json +++ b/package.json @@ -27,11 +27,12 @@ "build:umd:dev": "webpack", "build:umd:prod": "webpack -p", "build:commonjs:dev": "tsc; copyfiles -u 2 ./src/artifacts/*.json ../0x.js/lib/src/artifacts;", - "test:commonjs": "run-s build:commonjs:dev run_mocha", + "test:commonjs": "run-s build:commonjs:dev copy_fixtures run_mocha", "pretest:umd": "run-s clean build:*:dev", "substitute_umd_bundle": "npm run remove_src_files_not_used_by_tests; shx mv _bundles/* lib/src", "remove_src_files_not_used_by_tests": "find ./lib/src \\( -path ./lib/src/utils -o -path ./lib/src/schemas -o -path \"./lib/src/types.*\" \\) -prune -o -type f -print | xargs rm", - "run_mocha": "mocha lib/test/**/*_test.js" + "run_mocha": "mocha lib/test/**/*_test.js", + "copy_fixtures": "shx cp -r ./test/fixtures ./lib/test/fixtures" }, "config": { "artifacts": "Proxy Exchange TokenRegistry Token Mintable EtherToken", |