From 3a437372940de46fdb3d1aca2c8ee01da7d12b33 Mon Sep 17 00:00:00 2001 From: Kean Mariotti Date: Fri, 20 Jan 2023 13:18:54 +0000 Subject: [PATCH] Simplify npm scripts Test: npm run build:all && npm run test:all && npm run test:unit && npm run test:e2e Change-Id: I765ea11dbfc1f5ab5d0ed9653789514bbc84c762 --- tools/winscope/package.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/winscope/package.json b/tools/winscope/package.json index 1c3b8b01e..98a0da0cb 100644 --- a/tools/winscope/package.json +++ b/tools/winscope/package.json @@ -14,12 +14,10 @@ "build:kotlin": "rm -rf kotlin_build && npx kotlinc-js -source-map -source-map-embed-sources always -module-kind commonjs -output kotlin_build/flicker.js ../../../platform_testing/libraries/flicker/src/com/android/server/wm/traces/common", "build:prod": "webpack --config webpack.config.prod.js --progress", "build:remote_tool_mock": "webpack --config src/test/remote_tool_mock/webpack.config.js --progress", - "build:unit": "webpack --config webpack.config.unit_test.js", - "build:e2e": "rm -rf dist/e2e_test && npx tsc -p ./src/test/e2e", - "build:all": "npm run build:kotlin && npm run build:prod && npm run build:remote_tool_mock && npm run build:unit && npm run build:e2e", - "test:unit": "jasmine dist/unit_test/bundle.js", + "build:all": "npm run build:kotlin && npm run build:prod && npm run build:remote_tool_mock", + "test:unit": "webpack --config webpack.config.unit_test.js && jasmine dist/unit_test/bundle.js", "test:component": "npx karma start", - "test:e2e": "npx protractor protractor.config.js", + "test:e2e": "rm -rf dist/e2e_test && npx tsc -p ./src/test/e2e && npx protractor protractor.config.js", "test:all": "npm run test:unit && npm run test:component && npm run test:e2e && npm run format:check && npm run tslint:check && npm run eslint:check && npm run deps_graph:check_cycles" }, "private": true,