Update test commands (#1205)
* As per @Yun Feng: everyone has npm installed globally but maybe not yarn * Add command to enable test result updating * Default to running tests HEADLESS on rrweb * Add command to build:all in a low memory environment * Add a 'retest' command for when the code hasn't changed, but you are working on the test cases * Add commands to reformat according to prettier. Named 'reformat' to indicate that we are doing a `--write` * Update package.json Co-authored-by: Yun Feng <yun.feng0817@gmail.com> * Apply suggestions from code review Co-authored-by: Yun Feng <yun.feng0817@gmail.com> * Create few-turkeys-reflect.md * Apply formatting changes --------- Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com> Co-authored-by: Yun Feng <yun.feng0817@gmail.com>
This commit is contained in:
@@ -36,9 +36,11 @@
|
||||
"typescript": "^4.7.3"
|
||||
},
|
||||
"scripts": {
|
||||
"build:all": "yarn run concurrently --success=all -r -m=1 'yarn workspaces-to-typescript-project-references' 'yarn turbo run prepublish'",
|
||||
"build:all": "NODE_OPTIONS='--max-old-space-size=4096' yarn run concurrently --success=all -r -m=1 'yarn workspaces-to-typescript-project-references' 'yarn turbo run prepublish'",
|
||||
"test": "yarn run concurrently --success=all -r -m=1 'yarn workspaces-to-typescript-project-references --check' 'yarn turbo run test'",
|
||||
"test:watch": "yarn turbo run test:watch",
|
||||
"test:update": "yarn turbo run test:update",
|
||||
"format": "yarn prettier --write '**/*.{ts,md}'",
|
||||
"dev": "yarn turbo run dev",
|
||||
"repl": "cd packages/rrweb && npm run repl",
|
||||
"live-stream": "cd packages/rrweb && yarn live-stream",
|
||||
|
||||
Reference in New Issue
Block a user