chore: dev script builds types
`npm run dev` will build all artifacts in "watch" mode (distfiles and types)
also updated the default build task for vscode
MODIFY
.vscode/tasks.json
.vscode/tasks.json
{
"type": "npm",
"script": "dev",
- "group": {
- "kind": "build",
- "isDefault": true
- },
- "problemMatcher": [],
+ "group": {"kind": "build", "isDefault": true},
+ "problemMatcher": ["$tsc-watch"],
"label": "npm: dev",
- "detail": "lerna exec --parallel gulp dev",
- "isBackground": true,
- },
- {
- "type": "shell",
- "command": "npm",
- "args": [
- "exec",
- "--",
- "lerna",
- "exec",
- "--scope=@appium/fake-driver",
- "--",
- "gulp",
- "transpile"
- ],
- "label": "transpile: @appium/fake-driver",
- "problemMatcher": []
- },
- {
- "type": "shell",
- "command": "npm",
- "args": [
- "exec",
- "--",
- "lerna",
- "exec",
- "--scope=appium",
- "--",
- "gulp",
- "transpile"
- ],
- "label": "transpile: appium",
- "problemMatcher": []
- },
- {
- "type": "shell",
- "command": "npm",
- "args": [
- "exec",
- "--",
- "lerna",
- "exec",
- "--scope=@appium/support",
- "--",
- "gulp",
- "transpile"
- ],
- "label": "transpile: @appium/support",
- "problemMatcher": []
- },
- {
- "type": "shell",
- "command": "npm",
- "args": [
- "exec",
- "--",
- "lerna",
- "exec",
- "--scope=@appium/test-support",
- "--",
- "gulp",
- "transpile"
- ],
- "label": "transpile: @appium/test-support",
- "problemMatcher": []
- },
- {
- "type": "shell",
- "command": "npm",
- "args": [
- "exec",
- "--",
- "lerna",
- "exec",
- "--scope=@appium/gulp-plugins",
- "--",
- "gulp",
- "transpile"
- ],
- "label": "transpile: @appium/gulp-plugins",
- "problemMatcher": []
- },
- {
- "type": "shell",
- "command": "npm",
- "args": [
- "exec",
- "--",
- "lerna",
- "exec",
- "--scope=@appium/doctor",
- "--",
- "gulp",
- "transpile"
- ],
- "label": "transpile: @appium/doctor",
- "problemMatcher": []
- },
- {
- "type": "shell",
- "command": "npm",
- "args": [
- "exec",
- "--",
- "lerna",
- "exec",
- "--scope=@appium/base-driver",
- "--",
- "gulp",
- "transpile"
- ],
- "label": "transpile: @appium/base-driver",
- "problemMatcher": []
- },
- {
- "type": "npm",
- "script": "test:e2e:appium",
- "problemMatcher": [],
- "label": "npm: test:e2e:appium",
- "detail": "e2e tests: appium"
+ "detail": "npm run dev",
+ "isBackground": true
}
]
}

MODIFY
package.json
package.json
"clean:packages": "lerna clean -y && npx rimraf \"packages/*/package-lock.json\"",
"clean:types": "tsc -b --clean",
"clean:monorepo": "npx rimraf node_modules package-lock.json",
- "dev": "lerna run --parallel --prefix --concurrency=8 dev",
+ "dev": "run-p dev:*",
+ "dev:distfiles": "lerna run --parallel --prefix --concurrency=8 dev",
"dev:types": "tsc -b --watch",
"doctor": "node ./packages/doctor",
"e2e-test": "lerna run --parallel --max-buffer=128 test:e2e",

chore: dev script builds types

- `npm run dev` will build all artifacts in "watch" mode (distfiles and types)
- also updated the default build task for vscode