Chore: update and optimize turbo (#885)

* Update turbo to latest

* Update turbo.json

* The --stream flag has been deprecated

* Remove unused start:all

* build:packages -> use new --filter

* build:apps -> use new --filter

* build:www -> use new --filter

* build:core -> use new --filter

* build -> fix tldraw-example dependencies

* Optimize test* and lint

* start & start:core -> use new --filter

* start:electron -> use new --filter

* Remove unused start:apps

* Update turbo.json

* Caching ESLint

See Pro Tip : https://turborepo.org/docs/core-concepts/caching#configuring-cache-outputs

* Optimize test:watch

* start:www -> use new filter

* start:vscode -> use new filter

* Update build:core

* Optimize start and start:core

* Clean build:core

* Remove unused command

* Revert "Merge branch 'main' into chore/update-turbo"

This reverts commit a481c24205, reversing
changes made to a0f2f337b3.

* Update start:electron

* Remove unused deploy in turbo.json

* Add start:extension

* Add package:electron and package:vscode

* Add publish:vscode

* Revet Revert: revert "Merge branch 'main' into chore/update-turbo"

* Update vscode extension build

* Clean tldraw-example tsconfig.json

* Uniform script commands

* Fix start for www

* remove mention of removed packages

* add build:core

* Add force to build step

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
pull/899/head^2
Gwenaël Gallon 2022-08-11 08:08:32 +02:00 zatwierdzone przez GitHub
rodzic d5639f696a
commit 25f39a65fc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
21 zmienionych plików z 203 dodań i 358 usunięć

1
.gitignore vendored
Wyświetl plik

@ -18,4 +18,3 @@ apps/www/public/sw.js.map
.env .env
firebase.config.*.turbo firebase.config.*.turbo
.turbo .turbo
apps/new-tab-extension/tsconfig.tsbuildinfo

Wyświetl plik

@ -11,10 +11,9 @@
"esbuild" "esbuild"
], ],
"scripts": { "scripts": {
"start:vscode": "node scripts/dev.mjs -w", "dev": "node scripts/dev.mjs -w",
"build": "node scripts/build.mjs", "build": "node scripts/build.mjs",
"build:apps": "yarn build", "lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
"lint": "eslint src/ --ext .ts,.tsx",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
}, },
"devDependencies": { "devDependencies": {

Wyświetl plik

@ -112,16 +112,16 @@
] ]
}, },
"scripts": { "scripts": {
"start:vscode": "node scripts/dev", "dev": "node scripts/dev",
"build:apps": "yarn build", "build": "node scripts/build",
"build": "yarn package",
"web": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=.", "web": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=.",
"package": "cd ../editor && yarn build && cd ../extension && node scripts/build && node scripts/package", "package": "node scripts/package",
"publish": "yarn package && vsce publish", "publish": "vsce publish",
"lint": "eslint src/ --ext ts", "lint": "TIMING=1 eslint src/ --ext ts",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf editor && rm -rf temp" "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf editor && rm -rf temp"
}, },
"devDependencies": { "devDependencies": {
"@tldraw/tldraw": "*",
"@typescript-eslint/eslint-plugin": "^5.10.2", "@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2", "@typescript-eslint/parser": "^5.10.2",
"assert": "^2.0.0", "assert": "^2.0.0",

Wyświetl plik

@ -6,7 +6,15 @@
"lib": ["es6", "WebWorker"], "lib": ["es6", "WebWorker"],
"sourceMap": true, "sourceMap": true,
"rootDir": "src", "rootDir": "src",
"strict": true "strict": true,
"paths": {
"@tldraw/tldraw": ["../../../packages/tldraw"]
}
}, },
"references": [
{
"path": "../../../packages/tldraw"
}
],
"exclude": ["node_modules", ".vscode-test-web"] "exclude": ["node_modules", ".vscode-test-web"]
} }

Wyświetl plik

@ -37,7 +37,7 @@ export default function IFrameWarning({ url = 'https://tldraw.com' }: { url?: st
} finally { } finally {
document.body.removeChild(textarea) document.body.removeChild(textarea)
} }
}, []) }, [url])
return ( return (
<StyledContainer> <StyledContainer>

Wyświetl plik

@ -11,11 +11,9 @@
"author": "@steveruizok", "author": "@steveruizok",
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build:apps": "yarn build",
"build:www": "yarn build",
"build": "next build", "build": "next build",
"serve": "next serve", "start": "next start",
"lint": "next lint", "lint": "TIMING=1 next lint",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
}, },
"dependencies": { "dependencies": {

Wyświetl plik

@ -15,7 +15,7 @@
"build": "tsc && vite build", "build": "tsc && vite build",
"build:core": "tsc && vite build", "build:core": "tsc && vite build",
"preview": "vite preview", "preview": "vite preview",
"lint": "eslint src/ --ext .ts,.tsx", "lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
}, },
"dependencies": { "dependencies": {

Wyświetl plik

@ -13,7 +13,7 @@
"dev:core": "vite", "dev:core": "vite",
"build": "tsc && vite build", "build": "tsc && vite build",
"preview": "vite preview", "preview": "vite preview",
"lint": "eslint src/ --ext .ts,.tsx", "lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
}, },
"dependencies": { "dependencies": {

Wyświetl plik

@ -15,7 +15,7 @@
"start": "vite --port 5420", "start": "vite --port 5420",
"build": "tsc && vite build", "build": "tsc && vite build",
"preview": "vite preview", "preview": "vite preview",
"lint": "eslint src/ --ext .ts,.tsx", "lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
}, },
"dependencies": { "dependencies": {

Wyświetl plik

@ -22,8 +22,8 @@
}, },
"include": ["src"], "include": ["src"],
"references": [ "references": [
{ "path": "./tsconfig.node.json" }, { "path": "../../packages/core" },
{ "path": "../../packages/tldraw" }, { "path": "../../packages/tldraw" },
{ "path": "../../packages/core" } { "path": "../../packages/vec" }
] ]
} }

Wyświetl plik

@ -17,24 +17,25 @@
], ],
"scripts": { "scripts": {
"build": "turbo run build", "build": "turbo run build",
"build:www": "turbo run build:www", "build:www": "turbo run build --filter=@tldraw/www",
"build:core": "turbo run build:core", "build:core": "turbo run build --filter=@tldraw/core-example*",
"build:packages": "turbo run build:packages --stream", "build:packages": "turbo run build --filter=./packages/*",
"build:apps": "turbo run build:apps", "build:apps": "turbo run build --filter=./apps/**",
"start": "turbo run start --stream --parallel", "start": "turbo run dev --filter=@tldraw/tldraw-example... --parallel",
"start:all": "turbo run start:all --stream --parallel", "start:core": "turbo run dev --filter=@tldraw/core-example*... --parallel",
"start:core": "turbo run start:core --stream --parallel", "start:www": "turbo run dev --filter=@tldraw/www... --parallel",
"start:www": "turbo run start --parallel & cd apps/www && yarn dev", "start:vscode": "turbo run dev --filter=./apps/vscode/*... --parallel",
"start:electron": "turbo run start:electron --stream --parallel", "start:extension": "turbo run dev --filter=@tldraw/new-tab-extension... --parallel",
"start:vscode": "code apps/vscode/extension & turbo run start:vscode --parallel; ", "package:vscode": "turbo run package --filter=tldraw-vscode",
"version": "yarn changeset version", "publish:vscode": "turbo run publish --filter=tldraw-vscode",
"serve:www": "turbo run start --filter=@tldraw/www",
"version": "changeset version",
"changeset": "changeset", "changeset": "changeset",
"turbo": "turbo", "test": "turbo run test",
"test": "turbo run test --stream", "test:ci": "turbo run test:ci",
"test:ci": "turbo run test:ci --stream", "test:watch": "turbo run test:watch",
"test:watch": "turbo run test:watch --stream",
"format": "prettier --write .", "format": "prettier --write .",
"lint": "turbo run lint", "lint": "turbo run lint --parallel",
"clean": "turbo run clean", "clean": "turbo run clean",
"postinstall": "husky install", "postinstall": "husky install",
"pre-commit": "lint-staged", "pre-commit": "lint-staged",
@ -61,7 +62,7 @@
"resize-observer-polyfill": "^1.5.1", "resize-observer-polyfill": "^1.5.1",
"source-map-loader": "^3.0.1", "source-map-loader": "^3.0.1",
"tslib": "^2.4.0", "tslib": "^2.4.0",
"turbo": "^1.1.2", "turbo": "^1.3.4",
"typescript": "^4.7.3", "typescript": "^4.7.3",
"webpack": "^5.68.0" "webpack": "^5.68.0"
}, },

Wyświetl plik

@ -23,17 +23,13 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"source": "./dist/index.ts", "source": "./dist/index.ts",
"scripts": { "scripts": {
"start": "yarn lfg -d", "dev": "yarn lfg -d",
"build": "yarn lfg", "build": "yarn lfg",
"start:packages": "yarn start",
"start:core": "yarn start",
"build:core": "yarn build",
"build:packages": "yarn build",
"lint": "eslint src/ --ext .ts,.tsx",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"test": "jest", "test": "jest",
"test:ci": "jest --ci --runInBand --updateSnapshot", "test:ci": "jest --ci --runInBand --updateSnapshot",
"test:watch": "jest --watchAll" "test:watch": "jest --watchAll",
"lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
}, },
"dependencies": { "dependencies": {
"@tldraw/intersect": "^1.7.1", "@tldraw/intersect": "^1.7.1",

Wyświetl plik

@ -24,13 +24,9 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"source": "./dist/index.ts", "source": "./dist/index.ts",
"scripts": { "scripts": {
"start": "yarn lfg -d", "dev": "yarn lfg -d",
"build": "yarn lfg", "build": "yarn lfg",
"start:packages": "yarn start", "lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
"start:core": "yarn start",
"build:core": "yarn build",
"build:packages": "yarn build",
"lint": "eslint src/ --ext .ts,.tsx",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
}, },
"gitHead": "3ab5db27b9e83736fdae934474e80e90c854922c", "gitHead": "3ab5db27b9e83736fdae934474e80e90c854922c",

Wyświetl plik

@ -23,13 +23,9 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"source": "./src/index.ts", "source": "./src/index.ts",
"scripts": { "scripts": {
"start": "yarn lfg -d", "dev": "yarn lfg -d",
"build": "yarn lfg", "build": "yarn lfg",
"start:packages": "yarn start", "lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
"start:core": "yarn start",
"build:core": "yarn build",
"build:packages": "yarn build",
"lint": "eslint src/ --ext .ts,.tsx",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
}, },
"dependencies": { "dependencies": {

Wyświetl plik

@ -23,13 +23,9 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"source": "./src/index.ts", "source": "./src/index.ts",
"scripts": { "scripts": {
"start": "yarn lfg -d", "dev": "yarn lfg -d",
"build": "yarn lfg", "build": "yarn lfg",
"start:packages": "yarn start", "lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
"start:core": "yarn start",
"build:core": "yarn build",
"build:packages": "yarn build",
"lint": "eslint src/ --ext .ts,.tsx",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"test": "jest", "test": "jest",
"test:ci": "jest --ci --runInBand --updateSnapshot", "test:ci": "jest --ci --runInBand --updateSnapshot",

Wyświetl plik

@ -124,7 +124,11 @@ export const PrimaryTools = React.memo(function PrimaryTools() {
> >
<Pencil2Icon /> <Pencil2Icon />
</ToolButtonWithTooltip> </ToolButtonWithTooltip>
<ToolButtonWithTooltip label={intl.formatMessage({ id: 'image' })} onClick={uploadMedias} id="TD-PrimaryTools-Image"> <ToolButtonWithTooltip
label={intl.formatMessage({ id: 'image' })}
onClick={uploadMedias}
id="TD-PrimaryTools-Image"
>
<ImageIcon /> <ImageIcon />
</ToolButtonWithTooltip> </ToolButtonWithTooltip>
</StyledPanel> </StyledPanel>

Wyświetl plik

@ -108,4 +108,4 @@
"twitter": "Twitter", "twitter": "Twitter",
"discord": "Discord", "discord": "Discord",
"image": "Image" "image": "Image"
} }

Wyświetl plik

@ -22,13 +22,9 @@
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"source": "./src/index.ts", "source": "./src/index.ts",
"scripts": { "scripts": {
"start": "yarn lfg -d", "dev": "yarn lfg -d",
"build": "yarn lfg", "build": "yarn lfg",
"start:packages": "yarn start", "lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
"start:core": "yarn start",
"build:core": "yarn build",
"build:packages": "yarn build",
"lint": "eslint src/ --ext .ts,.tsx",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
}, },
"gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296", "gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296",

Wyświetl plik

@ -2,7 +2,7 @@
"document": { "document": {
"id": "doc", "id": "doc",
"name": "New Document", "name": "New Document",
"version": 15.3, "version": 15.5,
"pages": { "pages": {
"page": { "page": {
"id": "page", "id": "page",
@ -338,8 +338,8 @@
"id": "start", "id": "start",
"index": 0, "index": 0,
"point": [ "point": [
101.52, 112.95,
142.14 158.14
], ],
"canBind": true, "canBind": true,
"bindingId": "1a7cd32e-bd8b-40a8-0d7d-05edfedbf9fa" "bindingId": "1a7cd32e-bd8b-40a8-0d7d-05edfedbf9fa"
@ -358,8 +358,8 @@
"id": "bend", "id": "bend",
"index": 2, "index": 2,
"point": [ "point": [
50.76, 56.48,
71.07 79.07
] ]
} }
}, },
@ -381,7 +381,7 @@
"parentId": "page", "parentId": "page",
"childIndex": 6, "childIndex": 6,
"point": [ "point": [
1167.26, 1155.36,
32.91 32.91
], ],
"rotation": 0, "rotation": 0,
@ -392,7 +392,7 @@
"index": 0, "index": 0,
"point": [ "point": [
0, 0,
142.51 158.51
], ],
"canBind": true, "canBind": true,
"bindingId": "dcf1ae15-7db4-49c2-188d-3f2dba386c3a" "bindingId": "dcf1ae15-7db4-49c2-188d-3f2dba386c3a"
@ -401,7 +401,7 @@
"id": "end", "id": "end",
"index": 1, "index": 1,
"point": [ "point": [
106.01, 117.91,
0 0
], ],
"canBind": true, "canBind": true,
@ -411,8 +411,8 @@
"id": "bend", "id": "bend",
"index": 2, "index": 2,
"point": [ "point": [
53.01, 58.96,
71.25 79.26
] ]
} }
}, },
@ -446,8 +446,8 @@
"id": "start", "id": "start",
"index": 0, "index": 0,
"point": [ "point": [
0.38, 0.42,
142.14 158.14
], ],
"canBind": true, "canBind": true,
"bindingId": "b9a5a7d8-08c8-4281-30dd-a79039bd6837" "bindingId": "b9a5a7d8-08c8-4281-30dd-a79039bd6837"
@ -466,8 +466,8 @@
"id": "bend", "id": "bend",
"index": 2, "index": 2,
"point": [ "point": [
0.19, 0.21,
71.07 79.07
] ]
} }
}, },
@ -751,8 +751,8 @@
"parentId": "page", "parentId": "page",
"childIndex": 8, "childIndex": 8,
"point": [ "point": [
1989.03, 1968.23,
350.84 334.84
], ],
"rotation": 0, "rotation": 0,
"bend": 0, "bend": 0,
@ -771,8 +771,8 @@
"id": "end", "id": "end",
"index": 1, "index": 1,
"point": [ "point": [
194.79, 216.09,
141.77 157.77
], ],
"canBind": true, "canBind": true,
"bindingId": "572922b9-ebe4-4293-1a94-e9ddc6d89639" "bindingId": "572922b9-ebe4-4293-1a94-e9ddc6d89639"
@ -781,8 +781,8 @@
"id": "bend", "id": "bend",
"index": 2, "index": 2,
"point": [ "point": [
97.39, 108.05,
70.89 78.89
] ]
} }
}, },
@ -806,8 +806,8 @@
"parentId": "page", "parentId": "page",
"childIndex": 9, "childIndex": 9,
"point": [ "point": [
1871.84, 1871.51,
350.84 334.84
], ],
"rotation": 0, "rotation": 0,
"bend": 0, "bend": 0,
@ -826,8 +826,8 @@
"id": "end", "id": "end",
"index": 1, "index": 1,
"point": [ "point": [
3.08, 3.42,
148.08 164.08
], ],
"canBind": true, "canBind": true,
"bindingId": "4ab25c0d-2c56-4a2d-2c28-b3f1ef83367a" "bindingId": "4ab25c0d-2c56-4a2d-2c28-b3f1ef83367a"
@ -836,128 +836,8 @@
"id": "bend", "id": "bend",
"index": 2, "index": 2,
"point": [ "point": [
1.54, 1.71,
74.04 82.04
]
}
},
"decorations": {
"end": "arrow"
},
"style": {
"color": "black",
"size": "small",
"isFilled": false,
"dash": "draw",
"scale": 1,
"textAlign": "middle",
"font": "script"
}
},
"c5459245-f26c-467a-2eeb-750993f63d3a": {
"id": "c5459245-f26c-467a-2eeb-750993f63d3a",
"type": "text",
"name": "Text",
"parentId": "page",
"childIndex": 1.6666666666666665,
"point": [
1310.82,
534.62
],
"rotation": 0,
"text": "Desktop App",
"style": {
"color": "black",
"size": "medium",
"isFilled": false,
"dash": "draw",
"scale": 1,
"textAlign": "middle"
}
},
"d9283354-1166-49cc-2814-df822d36fc9c": {
"id": "d9283354-1166-49cc-2814-df822d36fc9c",
"type": "text",
"name": "Text",
"parentId": "page",
"childIndex": 1.3333333333333333,
"point": [
1347.08,
589.4
],
"rotation": 0,
"text": "apps/electron",
"style": {
"color": "gray",
"size": "small",
"isFilled": false,
"dash": "draw",
"scale": 1,
"textAlign": "middle"
}
},
"f82961eb-da3b-4e90-3bce-bc034ed37366": {
"id": "f82961eb-da3b-4e90-3bce-bc034ed37366",
"type": "rectangle",
"name": "Rectangle",
"parentId": "page",
"childIndex": 1.1666666666666665,
"point": [
1208.74,
514.91
],
"size": [
401.68,
143.41
],
"rotation": 0,
"style": {
"color": "black",
"size": "medium",
"isFilled": false,
"dash": "draw",
"scale": 1
}
},
"62ac22b6-ee31-4440-04bc-6e536e0c061a": {
"id": "62ac22b6-ee31-4440-04bc-6e536e0c061a",
"type": "arrow",
"name": "Arrow",
"parentId": "page",
"childIndex": 10,
"point": [
1499.22,
350.84
],
"rotation": 0,
"bend": 0,
"handles": {
"start": {
"id": "start",
"index": 0,
"point": [
232.56,
0
],
"canBind": true,
"bindingId": "ab6ad0f8-76eb-43ee-2079-60a95a564847"
},
"end": {
"id": "end",
"index": 1,
"point": [
0,
148.07
],
"canBind": true,
"bindingId": "6feee018-0646-4a93-1b02-18fad1469887"
},
"bend": {
"id": "bend",
"index": 2,
"point": [
116.28,
74.03
] ]
} }
}, },
@ -1057,8 +937,8 @@
"parentId": "page", "parentId": "page",
"childIndex": 0.125, "childIndex": 0.125,
"point": [ "point": [
757.58, 741.58,
416.37 416.34
], ],
"rotation": 0, "rotation": 0,
"bend": 0, "bend": 0,
@ -1077,8 +957,8 @@
"id": "end", "id": "end",
"index": 1, "index": 1,
"point": [ "point": [
1998.84, 2030.84,
3.77 3.83
], ],
"canBind": true "canBind": true
}, },
@ -1086,8 +966,8 @@
"id": "bend", "id": "bend",
"index": 2, "index": 2,
"point": [ "point": [
999.42, 1015.42,
1.88 1.92
] ]
} }
}, },
@ -1131,8 +1011,8 @@
"parentId": "page", "parentId": "page",
"childIndex": 0.25, "childIndex": 0.25,
"point": [ "point": [
797.58, 781.58,
108.07 108.04
], ],
"rotation": 0, "rotation": 0,
"bend": 0, "bend": 0,
@ -1151,8 +1031,8 @@
"id": "end", "id": "end",
"index": 1, "index": 1,
"point": [ "point": [
1958.84, 1990.84,
3.73 3.79
], ],
"canBind": true "canBind": true
}, },
@ -1160,8 +1040,8 @@
"id": "bend", "id": "bend",
"index": 2, "index": 2,
"point": [ "point": [
979.42, 995.42,
1.87 1.9
] ]
} }
}, },
@ -1205,8 +1085,8 @@
"parentId": "page", "parentId": "page",
"childIndex": 1, "childIndex": 1,
"point": [ "point": [
798.65, 781.58,
-174.5 -174.53
], ],
"rotation": 0, "rotation": 0,
"bend": 0, "bend": 0,
@ -1225,8 +1105,8 @@
"id": "end", "id": "end",
"index": 1, "index": 1,
"point": [ "point": [
1957.77, 1991.91,
3.73 3.79
], ],
"canBind": true "canBind": true
}, },
@ -1234,8 +1114,8 @@
"id": "bend", "id": "bend",
"index": 2, "index": 2,
"point": [ "point": [
978.88, 995.96,
1.87 1.9
] ]
} }
}, },
@ -1394,30 +1274,6 @@
], ],
"distance": 16 "distance": 16
}, },
"ab6ad0f8-76eb-43ee-2079-60a95a564847": {
"id": "ab6ad0f8-76eb-43ee-2079-60a95a564847",
"type": "arrow",
"fromId": "62ac22b6-ee31-4440-04bc-6e536e0c061a",
"toId": "deb0d166-a42e-46aa-27de-47095f153d1b",
"handleId": "start",
"point": [
0.5,
0.5
],
"distance": 16
},
"6feee018-0646-4a93-1b02-18fad1469887": {
"id": "6feee018-0646-4a93-1b02-18fad1469887",
"type": "arrow",
"fromId": "62ac22b6-ee31-4440-04bc-6e536e0c061a",
"toId": "f82961eb-da3b-4e90-3bce-bc034ed37366",
"handleId": "end",
"point": [
0.37,
0.53
],
"distance": 16
},
"994d8486-c865-4ee7-10bf-b4604c61e029": { "994d8486-c865-4ee7-10bf-b4604c61e029": {
"id": "994d8486-c865-4ee7-10bf-b4604c61e029", "id": "994d8486-c865-4ee7-10bf-b4604c61e029",
"type": "arrow", "type": "arrow",

Wyświetl plik

@ -1,33 +1,14 @@
{ {
"npmClient": "yarn", "$schema": "https://turborepo.org/schema.json",
"baseBranch": "origin/main", "baseBranch": "origin/main",
"pipeline": { "pipeline": {
"start": { "@tldraw/www#start": {
"cache": false "dependsOn": ["@tldraw/www#build"]
}, },
"start:packages": { "dev": {
"cache": false
},
"start:core": {
"cache": false
},
"start:apps": {
"cache": false
},
"start:www": {
"cache": false
},
"start:electron": {
"cache": false
},
"start:vscode": {
"cache": false "cache": false
}, },
"build": { "build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
},
"build:packages": {
"dependsOn": ["^build"], "dependsOn": ["^build"],
"outputs": ["dist/**"] "outputs": ["dist/**"]
}, },
@ -35,31 +16,38 @@
"dependsOn": ["^build"], "dependsOn": ["^build"],
"outputs": ["dist/**"] "outputs": ["dist/**"]
}, },
"build:apps": { "@tldraw/www#build": {
"dependsOn": ["^build"], "dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"] "outputs": [".next/**"]
}, },
"build:www": { "tldraw-vscode#build": {
"dependsOn": ["build:packages", "^build"], "dependsOn": ["@tldraw/vscode-editor#build"],
"outputs": ["dist/**", ".next/**"] "outputs": ["dist/**", "editor/**"]
},
"tldraw-vscode#package": {
"dependsOn": ["tldraw-vscode#build"],
"outputs": ["temp/**"]
},
"tldraw-vscode#publish": {
"dependsOn": ["tldraw-vscode#package"],
"outputs": []
}, },
"test": { "test": {
"dependsOn": ["build:packages"],
"outputs": [] "outputs": []
}, },
"test:ci": { "test:ci": {
"dependsOn": ["build"],
"outputs": ["coverage/**"] "outputs": ["coverage/**"]
}, },
"test:watch": {
"outputs": [],
"inputs": ["src/**/*.tsx", "src/**/*.ts", "src/**/*.json"],
"cache": false
},
"lint": { "lint": {
"outputs": [] "outputs": []
}, },
"clean": { "clean": {
"cache": false "cache": false
},
"deploy": {
"dependsOn": ["build", "test"],
"outputs": ["dist/**", ".next/**"]
} }
} }
} }

140
yarn.lock
Wyświetl plik

@ -9253,83 +9253,95 @@ tunnel@0.0.6:
resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c" resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg== integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==
turbo-darwin-64@1.1.2: turbo-android-arm64@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.1.2.tgz#b129aaf538821de78d5e2129495c553627174650" resolved "https://registry.yarnpkg.com/turbo-android-arm64/-/turbo-android-arm64-1.4.0.tgz#dc6d3815013d5ec0022e4470c35a3b9d70964f14"
integrity sha512-rua17HnVvAqAU54gVfiQoH7cfopOqANv+yI6NtxLMD8aFfX2cJ9m8SSvH2v2vCaToNDW6OnTkdqDKQpqIHzbCw== integrity sha512-k03ztiuVpRqFiXl452HUsDgns0KrDtKL+e19h3eVJZFlr0lXtMBAcjh6qkh9lSmBW99NGSESGbsdaL9cp6F/vw==
turbo-darwin-arm64@1.1.2: turbo-darwin-64@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.1.2.tgz#07a783ad2e3e8af600ae7406cc4062ff56ac0351" resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.4.0.tgz#d1d35fca2c76666192aa63d8de51dae201bf985b"
integrity sha512-otqSQNYDyKg0KqB3NM0BI4oiRPKdJkUE/XBn8dcUS+zeRLrL00XtaM0eSwynZs1tb6zU/Y+SPMSBRygD1TCOnw== integrity sha512-uj6p1marrEIFBX1nv4+LRg4e1vTYXTsv2DUB0e/LeAf9G2dRzh/MtSwBWuUaFLCcDvMSsnOeComgEkKuYyeVfw==
turbo-freebsd-64@1.1.2: turbo-darwin-arm64@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-freebsd-64/-/turbo-freebsd-64-1.1.2.tgz#9e22abf04ec2298f205a57b5c9ce14e22844baf3" resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.4.0.tgz#554772f42aac0762e9441f001b3897aab5c831bd"
integrity sha512-2nxwVDTAM0DtIQ2i3UOfEsQLF7vp+XZ/b9SKtiHxz710fXvdyuGivYI25axDdcBn8kQ45rnbUnarF1aW8CMGgg== integrity sha512-O6xBDY3LUJVctQBkbPoHHDsUIhuJTdIgIY/w4ZPRgdv51fj6uBJRolj9lLx1jGioLqjUaj/sXIizlaPar6tm5A==
turbo-freebsd-arm64@1.1.2: turbo-freebsd-64@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-freebsd-arm64/-/turbo-freebsd-arm64-1.1.2.tgz#6095c9012881225a5fdfb55362defa12f24b1f8e" resolved "https://registry.yarnpkg.com/turbo-freebsd-64/-/turbo-freebsd-64-1.4.0.tgz#84f1852cba9eb14495992fd92f7a85ccab91fb73"
integrity sha512-ro1Ah96yzgzyT0BJe1mceAqxPxi0pUwzAvN3IKVpMqi4hYkT3aRbzDCaSxzyC6let2Al/NUsgHnbAv38OF2Xkw== integrity sha512-103LbqCHxDHCz0xmpWis5JHkti2Irlq7n7vAk43+Kkxrz8UqhbrSfe0qUhkYltvxQ/R5cKAOKmBT5eZCO85+Xw==
turbo-linux-32@1.1.2: turbo-freebsd-arm64@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-linux-32/-/turbo-linux-32-1.1.2.tgz#4726e533d6966172b6bc4a960524ec2eb61adaab" resolved "https://registry.yarnpkg.com/turbo-freebsd-arm64/-/turbo-freebsd-arm64-1.4.0.tgz#9efa07236ad4a0fc05a874fc952b28c300c57d68"
integrity sha512-HKBsETxQMVaf/DJwMg7pypPbGA6KEu0gEf9C8o2aPJvwMPBYgNsNaU08Xizuh5xzEQTzpbIWfQyqdNgMV4RG3Q== integrity sha512-Cf+TGpQTpogSd/SsGhz1uQMhNVYYT1GeGg9iJ99rjjzbdC1zjdmeCbgUwyUUx5wVVM832o5fWaCJai3My3PDDQ==
turbo-linux-64@1.1.2: turbo-linux-32@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.1.2.tgz#dfe7f3a4c91acecdb84ecab330acee06857e568e" resolved "https://registry.yarnpkg.com/turbo-linux-32/-/turbo-linux-32-1.4.0.tgz#c4f930e3036bb543a9af00c15960b6ed8a6b414d"
integrity sha512-IklKsOklcRHIWkTzKg95BQ6jgJ53kLvRMrp8yqzlvZprkWdiyhAgUxrUTTHOOTce2XA3+jdN2+MwixG44uY2vg== integrity sha512-bJn78F+mH45g6xPFTdn7PLzixMuqugGz4Db9dPLijWQzeKzVz52qpN7WGUZwfPZtQOs0HUI8woH6eqAZMdT2ZA==
turbo-linux-arm64@1.1.2: turbo-linux-64@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.1.2.tgz#c39b6c50657fa0e82627407c86a5c43f19598e2b" resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.4.0.tgz#9688b4c118755834c03ef02dbc0c16fc80d42544"
integrity sha512-3kS6sk2lOtuBBqkcL+yeGqD1yew4UZ1o7XUcbDD8UPwhF2kAfK7Qs0vTJw4lnO1scjhihkoTrmXM7yozvjf4/w== integrity sha512-1+WyeJ1CBOnXNQl+Qke4NWvy3Zymp0NoxmJcZAmVBhwqAqGyERypeDznMfFmFtpG99/ZhmT7xwilz3Bw3Eyukw==
turbo-linux-arm@1.1.2: turbo-linux-arm64@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-linux-arm/-/turbo-linux-arm-1.1.2.tgz#2f51f93a3aa144b8ba25d7b0e3c53ea186a0e9dd" resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.4.0.tgz#7619e13118ed9c282903fe950539fbb64f568e04"
integrity sha512-CNbaTvRozq7H/5jpy9OZlzJ6BkeEXF+nF2n9dHiUrbAXd3nq84Qt9odcQJmGnexP19YS9w6l3tIHncX4BgwtqA== integrity sha512-DUtBhN0+o4XULQ9hsnzp6nI4mycMH7PpjKtG2HdmiZIhSYipSKWIMZkvgJpnpVJoRarLe7PmcDJIBp2aXvw2xw==
turbo-linux-mips64le@1.1.2: turbo-linux-arm@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-linux-mips64le/-/turbo-linux-mips64le-1.1.2.tgz#f52b7f410ac289d4e539f108679d2324aa5e271e" resolved "https://registry.yarnpkg.com/turbo-linux-arm/-/turbo-linux-arm-1.4.0.tgz#04fd2eba485438f244d09d5f52c7938f40895b2a"
integrity sha512-CDoXVIlW43C6KLgYxe13KkG8h6DswXHxbTVHiZdOwRQ56j46lU+JOVpLoh6wpQGcHvj58VEiypZBRTGVFMeogw== integrity sha512-9DEUP1pKWCwMDuriYCuTf+73oBIxTU4VLdkP89dtPoQVXW6mviES4gRXm8jAs6AOzzMI4DHgNKPxk7UKUvuExQ==
turbo-linux-ppc64le@1.1.2: turbo-linux-mips64le@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-linux-ppc64le/-/turbo-linux-ppc64le-1.1.2.tgz#18d08d3414075d0dcb4be83ca837dda508313996" resolved "https://registry.yarnpkg.com/turbo-linux-mips64le/-/turbo-linux-mips64le-1.4.0.tgz#f4c91875b58b22ab1c74110365ad351d0f2ad250"
integrity sha512-xPVMHoiOJE/qI63jSOXwYIUFQXLdstxDV6fLnRxvq0QnJNxgTKq+mLUeE8M4LDVh1bdqHLcfk/HmyQ6+X1XVkQ== integrity sha512-ZJcQvUgmCJ4TFosVL6hEmECP5ysSubF3wMOq5hkBxzRMBjL0djW+BK4aIXutBTpjAz9OyM10S4KeEGeGRS/e3Q==
turbo-windows-32@1.1.2: turbo-linux-ppc64le@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-windows-32/-/turbo-windows-32-1.1.2.tgz#96033019094bcb091647d6063c3c9b8e83d0acbe" resolved "https://registry.yarnpkg.com/turbo-linux-ppc64le/-/turbo-linux-ppc64le-1.4.0.tgz#237fd4262d79851d745ae0952a47629e8d320a90"
integrity sha512-Gj1yvPE0aMDSOxGVSBaecLnwsVDT1xX8U0dtLrg52TYY2jlaci0atjHKr9nTFuX7z8uwAf6PopwdriGoCeT3ng== integrity sha512-sk/rOrcGnYRcwNP8yJwmeOOzInv7YzMfWBomVf/TwrpsGL8QrD05zjsMR+lGxYNoNOJIHbroracjHaLvKWZN7A==
turbo-windows-64@1.1.2: turbo-windows-32@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.1.2.tgz#8eb3f77ab7e04b077752ae2204114c82e5c74697" resolved "https://registry.yarnpkg.com/turbo-windows-32/-/turbo-windows-32-1.4.0.tgz#88dd0930b4d7db66565a17e0f389d1f2e05b1938"
integrity sha512-0Ncx/iKhnKrdAU8hJ+8NUcF9jtFr8KoW5mMWfiFzy+mgUbVKbpzWT2eoGR6zJExedQsRvYOejbEX5iihbnj5bA== integrity sha512-5fmS6J3ZvhWRss+sFw2edOElVeKtk0l9yCoCYltPeFSy3+ArXws06ik3Z318SuKlbFu/+VTbM/NyBleKru+0ag==
turbo@^1.1.2: turbo-windows-64@1.4.0:
version "1.1.2" version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.1.2.tgz#751b9651dc3ebe469898db76afab6405666ad0ff" resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.4.0.tgz#5ef6aaf3b47fcfc868fcc85623fcc1cebc2ae332"
integrity sha512-3ViHKyAkaBKNKwHASTa1zkVT3tVVhQNLrpxBS7LoN+794ouQUYmy6lf0rTqzG3iTZHtIDwC+piZSdTl4XjEVMg== integrity sha512-FZZBHjb8BYpEGbVOpJEEFAjS3xxUVg76MBPXqRb5IUPQeXiCd8VfO4UApn9syjUuTLORBoWLmSf3xp7vd1cIgA==
turbo-windows-arm64@1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo-windows-arm64/-/turbo-windows-arm64-1.4.0.tgz#c6862aaea9c1d5a5694b9524a9e5fca94a82820a"
integrity sha512-mJAlDf5/qBVMVv+q+0/2PF5tRHKz4mgtl/DnRn5n/rIfRvElGkjlPbQwJdXuMCEQVE9FMOAGRCstu0dkcdTluQ==
turbo@^1.3.4:
version "1.4.0"
resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.4.0.tgz#6ff8e53f624303533c22bbcaca93b2557cf392b7"
integrity sha512-k2x8QqunK/96tqzB7aRCQ601H7N2PnxTcrEH9NoJjN5sJeymnfn/dQ8l6HrSyuYrW259W3N/AWAAUhpXnUyitA==
optionalDependencies: optionalDependencies:
turbo-darwin-64 "1.1.2" turbo-android-arm64 "1.4.0"
turbo-darwin-arm64 "1.1.2" turbo-darwin-64 "1.4.0"
turbo-freebsd-64 "1.1.2" turbo-darwin-arm64 "1.4.0"
turbo-freebsd-arm64 "1.1.2" turbo-freebsd-64 "1.4.0"
turbo-linux-32 "1.1.2" turbo-freebsd-arm64 "1.4.0"
turbo-linux-64 "1.1.2" turbo-linux-32 "1.4.0"
turbo-linux-arm "1.1.2" turbo-linux-64 "1.4.0"
turbo-linux-arm64 "1.1.2" turbo-linux-arm "1.4.0"
turbo-linux-mips64le "1.1.2" turbo-linux-arm64 "1.4.0"
turbo-linux-ppc64le "1.1.2" turbo-linux-mips64le "1.4.0"
turbo-windows-32 "1.1.2" turbo-linux-ppc64le "1.4.0"
turbo-windows-64 "1.1.2" turbo-windows-32 "1.4.0"
turbo-windows-64 "1.4.0"
turbo-windows-arm64 "1.4.0"
type-check@^0.4.0, type-check@~0.4.0: type-check@^0.4.0, type-check@~0.4.0:
version "0.4.0" version "0.4.0"