1{ 2 "name": "winscope", 3 "version": "0.0.0", 4 "scripts": { 5 "format:check": "(ls *.js .*.js && find src/ -regextype egrep -regex '^.*(\\.ts|\\.js)$') |xargs npx prettier --check", 6 "format:fix": "(ls *.js .*.js && find src/ -regextype egrep -regex '^.*(\\.ts|\\.js)$') |xargs npx prettier --write", 7 "eslint:check": "(ls *.js .*.js && find src/ -regextype egrep -regex '^.*(\\.ts|\\.js)$') |xargs npx eslint --format=unix", 8 "eslint:fix": "(ls *.js .*.js && find src/ -regextype egrep -regex '^.*(\\.ts|\\.js)$') |xargs npx eslint --format=unix --fix", 9 "tslint:check": "find src/ -regextype egrep -regex '^.*\\.ts$' |xargs npx tslint -c google.tslint.json --exclude 'src/trace_processor/*'", 10 "tslint:fix": "find src/ -regextype egrep -regex '^.*\\.ts$' |xargs npx tslint -c google.tslint.json --exclude 'src/trace_processor/*' --fix", 11 "deps_graph:check_cycles": "npx madge --extensions ts,js src/ --circular", 12 "start": "webpack serve --config webpack.config.dev.js --open --hot --port 8080", 13 "start:remote_tool_mock": "webpack serve --config src/test/remote_tool_mock/webpack.config.js --open --hot --port 8081", 14 "build:trace_processor": "PERFETTO_TOP=../../../external/perfetto; (cd $PERFETTO_TOP && tools/install-build-deps --ui && ui/node ui/build.js --out trace_processor_build) && rm -rf deps_build/trace_processor && mkdir -p deps_build/trace_processor && rsync -ar $PERFETTO_TOP/trace_processor_build/ deps_build/trace_processor && mkdir deps_build/trace_processor/to_be_served && cp deps_build/trace_processor/ui/dist_version/engine_bundle.js deps_build/trace_processor/to_be_served/ && cp deps_build/trace_processor/wasm/trace_processor.wasm deps_build/trace_processor/to_be_served/", 15 "build:prod": "npm run build:trace_processor && npm run build:protos && rm -rf dist/prod/ && webpack --config webpack.config.prod.js --progress && cp deps_build/trace_processor/to_be_served/* src/adb/winscope_proxy.py src/logo_light_mode.svg src/logo_dark_mode.svg src/viewers/components/rects/cube_full_shade.svg src/viewers/components/rects/cube_partial_shade.svg src/app/components/trackpad_right_click.svg src/app/components/trackpad_vertical_scroll.svg src/app/components/trackpad_horizontal_scroll.svg dist/prod/", 16 "build:protos": "node protos/build.js", 17 "install:chromedriver": "chrome_version=$(google-chrome --version |cut -d' ' -f3); rm -rf deps_build/chromedriver-linux64 && mkdir -p deps_build/chromedriver-linux64 && (cd deps_build/chromedriver-linux64 && wget https://storage.googleapis.com/chrome-for-testing-public/${chrome_version}/linux64/chromedriver-linux64.zip && cd .. && unzip chromedriver-linux64/chromedriver-linux64.zip)", 18 "test:unit:ci": "npx karma start karma.config.ci.js", 19 "test:unit:dev": "npx karma start karma.config.dev.js", 20 "test:e2e": "npm run install:chromedriver && rm -rf dist/e2e_test && npx tsc -p ./src/test/e2e && npx protractor protractor.config.js", 21 "test:presubmit:quiet": "npm run build:protos && npm run test:unit:ci && npm run format:check && npm run tslint:check && npm run eslint:check && npm run deps_graph:check_cycles", 22 "test:presubmit": "(npm run test:presubmit:quiet && printf '\\033[1m\\033[32mALL GREEN! \\U1F49A (Kean loves you)\\n') || (printf '\\033[1m\\033[31mFAILING! \\U1F92F (Kean is upset)\\n' && false)", 23 "test:all": "npm run test:unit:ci && npm run test:e2e && npm run format:check && npm run tslint:check && npm run eslint:check && npm run deps_graph:check_cycles" 24 }, 25 "private": true, 26 "dependencies": { 27 "@angular/animations": "^14.0.0", 28 "@angular/cdk": "^14.2.6", 29 "@angular/common": "^14.0.0", 30 "@angular/compiler": "^14.0.0", 31 "@angular/core": "^14.0.1", 32 "@angular/elements": "^14.0.1", 33 "@angular/forms": "^14.0.0", 34 "@angular/material": "^14.2.6", 35 "@angular/platform-browser": "^14.0.0", 36 "@angular/platform-browser-dynamic": "^14.0.0", 37 "@angular/router": "^14.0.0", 38 "@auth0/auth0-angular": "^1.10.0", 39 "@ngrx/effects": "^14.0.2", 40 "@ngrx/store": "^14.0.2", 41 "@ngxs/store": "^3.7.4", 42 "auth0": "^3.0.1", 43 "dateformat": "^5.0.3", 44 "gl-matrix": "^3.4.3", 45 "html-loader": "^3.1.0", 46 "html2canvas": "^1.4.1", 47 "jsbn": "^1.1.0", 48 "jsbn-rsa": "^1.0.4", 49 "protobufjs": "^7.0.0", 50 "rxjs": "~7.5.0", 51 "style-loader": "^3.3.1", 52 "three": "^0.143.0", 53 "ts-loader": "^9.3.0", 54 "tslib": "^2.3.0", 55 "typescript": "^4.8.0", 56 "webgl-utils": "^1.0.1", 57 "webgl-utils.js": "^1.1.0", 58 "webpack-cli": "^4.10.0", 59 "zone.js": "~0.11.4" 60 }, 61 "devDependencies": { 62 "@angular-devkit/build-angular": "^14.0.0", 63 "@angular/cli": "~14.0.0", 64 "@angular/compiler-cli": "^14.0.0", 65 "@ngxs/devtools-plugin": "^3.7.4", 66 "@types/chrome": "^0.0.204", 67 "@types/dateformat": "^5.0.0", 68 "@types/gtag.js": "^0.0.13", 69 "@types/jasmine": "~4.3.1", 70 "@types/jquery": "^3.5.14", 71 "@types/jsbn": "^1.2.30", 72 "@types/node": "^18.0.4", 73 "@types/three": "^0.143.0", 74 "@types/w3c-web-usb": "^1.0.6", 75 "@typescript-eslint/eslint-plugin": "^5.30.6", 76 "@typescript-eslint/parser": "^5.30.6", 77 "angular2-template-loader": "^0.6.2", 78 "copy-webpack-plugin": "^11.0.0", 79 "eslint": "^8.19.0", 80 "eslint-config-prettier": "^8.5.0", 81 "eslint-plugin-prettier": "^4.2.1", 82 "html-webpack-inline-source-plugin": "^1.0.0-beta.2", 83 "html-webpack-plugin": "^5.5.0", 84 "jasmine": "~4.3.0", 85 "jasmine-core": "~4.1.0", 86 "@ephesoft/webpack.istanbul.loader": "~2.2.0", 87 "karma": "~6.3.0", 88 "karma-chrome-launcher": "~3.1.0", 89 "karma-coverage-istanbul-reporter": "^3.0.3", 90 "karma-jasmine": "~5.0.0", 91 "karma-sourcemap-loader": "^0.3.8", 92 "karma-webpack": "^5.0.0", 93 "loader-utils": "^2.0.0", 94 "madge": "^5.0.1", 95 "prettier": "^2.8.1", 96 "prettier-plugin-organize-imports": "^3.2.1", 97 "protobufjs-cli": "^1.1.2", 98 "protractor": "^7.0.0", 99 "sass": "^1.56.1", 100 "sass-loader": "^13.1.0", 101 "tslint": "^6.1.3", 102 "webpack": "^5.74.0" 103 } 104} 105