From 968df3424ccab04ca15bbe4138e35ff90d1c00a4 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 30 May 2017 12:55:00 +0200 Subject: Add copy_fixtures command --- package.json | 5 +++-- 1 file 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", -- cgit v1.2.3