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 a481c242054504c9b8452822df8c452c24bcdfbd, reversing changes made to a0f2f337b3d00974741effd4faae699ce493d3a2. * 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>
This commit is contained in:
parent
d5639f696a
commit
25f39a65fc
21 changed files with 203 additions and 358 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -18,4 +18,3 @@ apps/www/public/sw.js.map
|
|||
.env
|
||||
firebase.config.*.turbo
|
||||
.turbo
|
||||
apps/new-tab-extension/tsconfig.tsbuildinfo
|
||||
|
|
|
@ -11,10 +11,9 @@
|
|||
"esbuild"
|
||||
],
|
||||
"scripts": {
|
||||
"start:vscode": "node scripts/dev.mjs -w",
|
||||
"dev": "node scripts/dev.mjs -w",
|
||||
"build": "node scripts/build.mjs",
|
||||
"build:apps": "yarn build",
|
||||
"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"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -112,16 +112,16 @@
|
|||
]
|
||||
},
|
||||
"scripts": {
|
||||
"start:vscode": "node scripts/dev",
|
||||
"build:apps": "yarn build",
|
||||
"build": "yarn package",
|
||||
"dev": "node scripts/dev",
|
||||
"build": "node scripts/build",
|
||||
"web": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=.",
|
||||
"package": "cd ../editor && yarn build && cd ../extension && node scripts/build && node scripts/package",
|
||||
"publish": "yarn package && vsce publish",
|
||||
"lint": "eslint src/ --ext ts",
|
||||
"package": "node scripts/package",
|
||||
"publish": "vsce publish",
|
||||
"lint": "TIMING=1 eslint src/ --ext ts",
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf editor && rm -rf temp"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tldraw/tldraw": "*",
|
||||
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
||||
"@typescript-eslint/parser": "^5.10.2",
|
||||
"assert": "^2.0.0",
|
||||
|
|
|
@ -6,7 +6,15 @@
|
|||
"lib": ["es6", "WebWorker"],
|
||||
"sourceMap": true,
|
||||
"rootDir": "src",
|
||||
"strict": true
|
||||
"strict": true,
|
||||
"paths": {
|
||||
"@tldraw/tldraw": ["../../../packages/tldraw"]
|
||||
}
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "../../../packages/tldraw"
|
||||
}
|
||||
],
|
||||
"exclude": ["node_modules", ".vscode-test-web"]
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ export default function IFrameWarning({ url = 'https://tldraw.com' }: { url?: st
|
|||
} finally {
|
||||
document.body.removeChild(textarea)
|
||||
}
|
||||
}, [])
|
||||
}, [url])
|
||||
|
||||
return (
|
||||
<StyledContainer>
|
||||
|
|
|
@ -11,11 +11,9 @@
|
|||
"author": "@steveruizok",
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build:apps": "yarn build",
|
||||
"build:www": "yarn build",
|
||||
"build": "next build",
|
||||
"serve": "next serve",
|
||||
"lint": "next lint",
|
||||
"start": "next start",
|
||||
"lint": "TIMING=1 next lint",
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"build": "tsc && vite build",
|
||||
"build:core": "tsc && vite build",
|
||||
"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"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
"dev:core": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"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"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"start": "vite --port 5420",
|
||||
"build": "tsc && vite build",
|
||||
"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"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
},
|
||||
"include": ["src"],
|
||||
"references": [
|
||||
{ "path": "./tsconfig.node.json" },
|
||||
{ "path": "../../packages/core" },
|
||||
{ "path": "../../packages/tldraw" },
|
||||
{ "path": "../../packages/core" }
|
||||
{ "path": "../../packages/vec" }
|
||||
]
|
||||
}
|
||||
|
|
35
package.json
35
package.json
|
@ -17,24 +17,25 @@
|
|||
],
|
||||
"scripts": {
|
||||
"build": "turbo run build",
|
||||
"build:www": "turbo run build:www",
|
||||
"build:core": "turbo run build:core",
|
||||
"build:packages": "turbo run build:packages --stream",
|
||||
"build:apps": "turbo run build:apps",
|
||||
"start": "turbo run start --stream --parallel",
|
||||
"start:all": "turbo run start:all --stream --parallel",
|
||||
"start:core": "turbo run start:core --stream --parallel",
|
||||
"start:www": "turbo run start --parallel & cd apps/www && yarn dev",
|
||||
"start:electron": "turbo run start:electron --stream --parallel",
|
||||
"start:vscode": "code apps/vscode/extension & turbo run start:vscode --parallel; ",
|
||||
"version": "yarn changeset version",
|
||||
"build:www": "turbo run build --filter=@tldraw/www",
|
||||
"build:core": "turbo run build --filter=@tldraw/core-example*",
|
||||
"build:packages": "turbo run build --filter=./packages/*",
|
||||
"build:apps": "turbo run build --filter=./apps/**",
|
||||
"start": "turbo run dev --filter=@tldraw/tldraw-example... --parallel",
|
||||
"start:core": "turbo run dev --filter=@tldraw/core-example*... --parallel",
|
||||
"start:www": "turbo run dev --filter=@tldraw/www... --parallel",
|
||||
"start:vscode": "turbo run dev --filter=./apps/vscode/*... --parallel",
|
||||
"start:extension": "turbo run dev --filter=@tldraw/new-tab-extension... --parallel",
|
||||
"package:vscode": "turbo run package --filter=tldraw-vscode",
|
||||
"publish:vscode": "turbo run publish --filter=tldraw-vscode",
|
||||
"serve:www": "turbo run start --filter=@tldraw/www",
|
||||
"version": "changeset version",
|
||||
"changeset": "changeset",
|
||||
"turbo": "turbo",
|
||||
"test": "turbo run test --stream",
|
||||
"test:ci": "turbo run test:ci --stream",
|
||||
"test:watch": "turbo run test:watch --stream",
|
||||
"test": "turbo run test",
|
||||
"test:ci": "turbo run test:ci",
|
||||
"test:watch": "turbo run test:watch",
|
||||
"format": "prettier --write .",
|
||||
"lint": "turbo run lint",
|
||||
"lint": "turbo run lint --parallel",
|
||||
"clean": "turbo run clean",
|
||||
"postinstall": "husky install",
|
||||
"pre-commit": "lint-staged",
|
||||
|
@ -61,7 +62,7 @@
|
|||
"resize-observer-polyfill": "^1.5.1",
|
||||
"source-map-loader": "^3.0.1",
|
||||
"tslib": "^2.4.0",
|
||||
"turbo": "^1.1.2",
|
||||
"turbo": "^1.3.4",
|
||||
"typescript": "^4.7.3",
|
||||
"webpack": "^5.68.0"
|
||||
},
|
||||
|
|
|
@ -23,17 +23,13 @@
|
|||
"types": "./dist/index.d.ts",
|
||||
"source": "./dist/index.ts",
|
||||
"scripts": {
|
||||
"start": "yarn lfg -d",
|
||||
"dev": "yarn lfg -d",
|
||||
"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: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": {
|
||||
"@tldraw/intersect": "^1.7.1",
|
||||
|
|
|
@ -24,13 +24,9 @@
|
|||
"types": "./dist/index.d.ts",
|
||||
"source": "./dist/index.ts",
|
||||
"scripts": {
|
||||
"start": "yarn lfg -d",
|
||||
"dev": "yarn lfg -d",
|
||||
"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",
|
||||
"lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
||||
},
|
||||
"gitHead": "3ab5db27b9e83736fdae934474e80e90c854922c",
|
||||
|
|
|
@ -23,13 +23,9 @@
|
|||
"types": "./dist/index.d.ts",
|
||||
"source": "./src/index.ts",
|
||||
"scripts": {
|
||||
"start": "yarn lfg -d",
|
||||
"dev": "yarn lfg -d",
|
||||
"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",
|
||||
"lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -23,13 +23,9 @@
|
|||
"types": "./dist/index.d.ts",
|
||||
"source": "./src/index.ts",
|
||||
"scripts": {
|
||||
"start": "yarn lfg -d",
|
||||
"dev": "yarn lfg -d",
|
||||
"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",
|
||||
"lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
||||
"test": "jest",
|
||||
"test:ci": "jest --ci --runInBand --updateSnapshot",
|
||||
|
|
|
@ -124,7 +124,11 @@ export const PrimaryTools = React.memo(function PrimaryTools() {
|
|||
>
|
||||
<Pencil2Icon />
|
||||
</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 />
|
||||
</ToolButtonWithTooltip>
|
||||
</StyledPanel>
|
||||
|
|
|
@ -108,4 +108,4 @@
|
|||
"twitter": "Twitter",
|
||||
"discord": "Discord",
|
||||
"image": "Image"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,13 +22,9 @@
|
|||
"types": "./dist/index.d.ts",
|
||||
"source": "./src/index.ts",
|
||||
"scripts": {
|
||||
"start": "yarn lfg -d",
|
||||
"dev": "yarn lfg -d",
|
||||
"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",
|
||||
"lint": "TIMING=1 eslint src/ --ext .ts,.tsx",
|
||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
||||
},
|
||||
"gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296",
|
||||
|
|
232
repo-map.tldr
232
repo-map.tldr
|
@ -2,7 +2,7 @@
|
|||
"document": {
|
||||
"id": "doc",
|
||||
"name": "New Document",
|
||||
"version": 15.3,
|
||||
"version": 15.5,
|
||||
"pages": {
|
||||
"page": {
|
||||
"id": "page",
|
||||
|
@ -338,8 +338,8 @@
|
|||
"id": "start",
|
||||
"index": 0,
|
||||
"point": [
|
||||
101.52,
|
||||
142.14
|
||||
112.95,
|
||||
158.14
|
||||
],
|
||||
"canBind": true,
|
||||
"bindingId": "1a7cd32e-bd8b-40a8-0d7d-05edfedbf9fa"
|
||||
|
@ -358,8 +358,8 @@
|
|||
"id": "bend",
|
||||
"index": 2,
|
||||
"point": [
|
||||
50.76,
|
||||
71.07
|
||||
56.48,
|
||||
79.07
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -381,7 +381,7 @@
|
|||
"parentId": "page",
|
||||
"childIndex": 6,
|
||||
"point": [
|
||||
1167.26,
|
||||
1155.36,
|
||||
32.91
|
||||
],
|
||||
"rotation": 0,
|
||||
|
@ -392,7 +392,7 @@
|
|||
"index": 0,
|
||||
"point": [
|
||||
0,
|
||||
142.51
|
||||
158.51
|
||||
],
|
||||
"canBind": true,
|
||||
"bindingId": "dcf1ae15-7db4-49c2-188d-3f2dba386c3a"
|
||||
|
@ -401,7 +401,7 @@
|
|||
"id": "end",
|
||||
"index": 1,
|
||||
"point": [
|
||||
106.01,
|
||||
117.91,
|
||||
0
|
||||
],
|
||||
"canBind": true,
|
||||
|
@ -411,8 +411,8 @@
|
|||
"id": "bend",
|
||||
"index": 2,
|
||||
"point": [
|
||||
53.01,
|
||||
71.25
|
||||
58.96,
|
||||
79.26
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -446,8 +446,8 @@
|
|||
"id": "start",
|
||||
"index": 0,
|
||||
"point": [
|
||||
0.38,
|
||||
142.14
|
||||
0.42,
|
||||
158.14
|
||||
],
|
||||
"canBind": true,
|
||||
"bindingId": "b9a5a7d8-08c8-4281-30dd-a79039bd6837"
|
||||
|
@ -466,8 +466,8 @@
|
|||
"id": "bend",
|
||||
"index": 2,
|
||||
"point": [
|
||||
0.19,
|
||||
71.07
|
||||
0.21,
|
||||
79.07
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -751,8 +751,8 @@
|
|||
"parentId": "page",
|
||||
"childIndex": 8,
|
||||
"point": [
|
||||
1989.03,
|
||||
350.84
|
||||
1968.23,
|
||||
334.84
|
||||
],
|
||||
"rotation": 0,
|
||||
"bend": 0,
|
||||
|
@ -771,8 +771,8 @@
|
|||
"id": "end",
|
||||
"index": 1,
|
||||
"point": [
|
||||
194.79,
|
||||
141.77
|
||||
216.09,
|
||||
157.77
|
||||
],
|
||||
"canBind": true,
|
||||
"bindingId": "572922b9-ebe4-4293-1a94-e9ddc6d89639"
|
||||
|
@ -781,8 +781,8 @@
|
|||
"id": "bend",
|
||||
"index": 2,
|
||||
"point": [
|
||||
97.39,
|
||||
70.89
|
||||
108.05,
|
||||
78.89
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -806,8 +806,8 @@
|
|||
"parentId": "page",
|
||||
"childIndex": 9,
|
||||
"point": [
|
||||
1871.84,
|
||||
350.84
|
||||
1871.51,
|
||||
334.84
|
||||
],
|
||||
"rotation": 0,
|
||||
"bend": 0,
|
||||
|
@ -826,8 +826,8 @@
|
|||
"id": "end",
|
||||
"index": 1,
|
||||
"point": [
|
||||
3.08,
|
||||
148.08
|
||||
3.42,
|
||||
164.08
|
||||
],
|
||||
"canBind": true,
|
||||
"bindingId": "4ab25c0d-2c56-4a2d-2c28-b3f1ef83367a"
|
||||
|
@ -836,128 +836,8 @@
|
|||
"id": "bend",
|
||||
"index": 2,
|
||||
"point": [
|
||||
1.54,
|
||||
74.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
|
||||
1.71,
|
||||
82.04
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -1057,8 +937,8 @@
|
|||
"parentId": "page",
|
||||
"childIndex": 0.125,
|
||||
"point": [
|
||||
757.58,
|
||||
416.37
|
||||
741.58,
|
||||
416.34
|
||||
],
|
||||
"rotation": 0,
|
||||
"bend": 0,
|
||||
|
@ -1077,8 +957,8 @@
|
|||
"id": "end",
|
||||
"index": 1,
|
||||
"point": [
|
||||
1998.84,
|
||||
3.77
|
||||
2030.84,
|
||||
3.83
|
||||
],
|
||||
"canBind": true
|
||||
},
|
||||
|
@ -1086,8 +966,8 @@
|
|||
"id": "bend",
|
||||
"index": 2,
|
||||
"point": [
|
||||
999.42,
|
||||
1.88
|
||||
1015.42,
|
||||
1.92
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -1131,8 +1011,8 @@
|
|||
"parentId": "page",
|
||||
"childIndex": 0.25,
|
||||
"point": [
|
||||
797.58,
|
||||
108.07
|
||||
781.58,
|
||||
108.04
|
||||
],
|
||||
"rotation": 0,
|
||||
"bend": 0,
|
||||
|
@ -1151,8 +1031,8 @@
|
|||
"id": "end",
|
||||
"index": 1,
|
||||
"point": [
|
||||
1958.84,
|
||||
3.73
|
||||
1990.84,
|
||||
3.79
|
||||
],
|
||||
"canBind": true
|
||||
},
|
||||
|
@ -1160,8 +1040,8 @@
|
|||
"id": "bend",
|
||||
"index": 2,
|
||||
"point": [
|
||||
979.42,
|
||||
1.87
|
||||
995.42,
|
||||
1.9
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -1205,8 +1085,8 @@
|
|||
"parentId": "page",
|
||||
"childIndex": 1,
|
||||
"point": [
|
||||
798.65,
|
||||
-174.5
|
||||
781.58,
|
||||
-174.53
|
||||
],
|
||||
"rotation": 0,
|
||||
"bend": 0,
|
||||
|
@ -1225,8 +1105,8 @@
|
|||
"id": "end",
|
||||
"index": 1,
|
||||
"point": [
|
||||
1957.77,
|
||||
3.73
|
||||
1991.91,
|
||||
3.79
|
||||
],
|
||||
"canBind": true
|
||||
},
|
||||
|
@ -1234,8 +1114,8 @@
|
|||
"id": "bend",
|
||||
"index": 2,
|
||||
"point": [
|
||||
978.88,
|
||||
1.87
|
||||
995.96,
|
||||
1.9
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -1394,30 +1274,6 @@
|
|||
],
|
||||
"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": {
|
||||
"id": "994d8486-c865-4ee7-10bf-b4604c61e029",
|
||||
"type": "arrow",
|
||||
|
|
56
turbo.json
56
turbo.json
|
@ -1,33 +1,14 @@
|
|||
{
|
||||
"npmClient": "yarn",
|
||||
"$schema": "https://turborepo.org/schema.json",
|
||||
"baseBranch": "origin/main",
|
||||
"pipeline": {
|
||||
"start": {
|
||||
"cache": false
|
||||
"@tldraw/www#start": {
|
||||
"dependsOn": ["@tldraw/www#build"]
|
||||
},
|
||||
"start:packages": {
|
||||
"cache": false
|
||||
},
|
||||
"start:core": {
|
||||
"cache": false
|
||||
},
|
||||
"start:apps": {
|
||||
"cache": false
|
||||
},
|
||||
"start:www": {
|
||||
"cache": false
|
||||
},
|
||||
"start:electron": {
|
||||
"cache": false
|
||||
},
|
||||
"start:vscode": {
|
||||
"dev": {
|
||||
"cache": false
|
||||
},
|
||||
"build": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**", ".next/**"]
|
||||
},
|
||||
"build:packages": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**"]
|
||||
},
|
||||
|
@ -35,31 +16,38 @@
|
|||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**"]
|
||||
},
|
||||
"build:apps": {
|
||||
"@tldraw/www#build": {
|
||||
"dependsOn": ["^build"],
|
||||
"outputs": ["dist/**", ".next/**"]
|
||||
"outputs": [".next/**"]
|
||||
},
|
||||
"build:www": {
|
||||
"dependsOn": ["build:packages", "^build"],
|
||||
"outputs": ["dist/**", ".next/**"]
|
||||
"tldraw-vscode#build": {
|
||||
"dependsOn": ["@tldraw/vscode-editor#build"],
|
||||
"outputs": ["dist/**", "editor/**"]
|
||||
},
|
||||
"tldraw-vscode#package": {
|
||||
"dependsOn": ["tldraw-vscode#build"],
|
||||
"outputs": ["temp/**"]
|
||||
},
|
||||
"tldraw-vscode#publish": {
|
||||
"dependsOn": ["tldraw-vscode#package"],
|
||||
"outputs": []
|
||||
},
|
||||
"test": {
|
||||
"dependsOn": ["build:packages"],
|
||||
"outputs": []
|
||||
},
|
||||
"test:ci": {
|
||||
"dependsOn": ["build"],
|
||||
"outputs": ["coverage/**"]
|
||||
},
|
||||
"test:watch": {
|
||||
"outputs": [],
|
||||
"inputs": ["src/**/*.tsx", "src/**/*.ts", "src/**/*.json"],
|
||||
"cache": false
|
||||
},
|
||||
"lint": {
|
||||
"outputs": []
|
||||
},
|
||||
"clean": {
|
||||
"cache": false
|
||||
},
|
||||
"deploy": {
|
||||
"dependsOn": ["build", "test"],
|
||||
"outputs": ["dist/**", ".next/**"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
140
yarn.lock
140
yarn.lock
|
@ -9253,83 +9253,95 @@ tunnel@0.0.6:
|
|||
resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
|
||||
integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==
|
||||
|
||||
turbo-darwin-64@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.1.2.tgz#b129aaf538821de78d5e2129495c553627174650"
|
||||
integrity sha512-rua17HnVvAqAU54gVfiQoH7cfopOqANv+yI6NtxLMD8aFfX2cJ9m8SSvH2v2vCaToNDW6OnTkdqDKQpqIHzbCw==
|
||||
turbo-android-arm64@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-android-arm64/-/turbo-android-arm64-1.4.0.tgz#dc6d3815013d5ec0022e4470c35a3b9d70964f14"
|
||||
integrity sha512-k03ztiuVpRqFiXl452HUsDgns0KrDtKL+e19h3eVJZFlr0lXtMBAcjh6qkh9lSmBW99NGSESGbsdaL9cp6F/vw==
|
||||
|
||||
turbo-darwin-arm64@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.1.2.tgz#07a783ad2e3e8af600ae7406cc4062ff56ac0351"
|
||||
integrity sha512-otqSQNYDyKg0KqB3NM0BI4oiRPKdJkUE/XBn8dcUS+zeRLrL00XtaM0eSwynZs1tb6zU/Y+SPMSBRygD1TCOnw==
|
||||
turbo-darwin-64@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.4.0.tgz#d1d35fca2c76666192aa63d8de51dae201bf985b"
|
||||
integrity sha512-uj6p1marrEIFBX1nv4+LRg4e1vTYXTsv2DUB0e/LeAf9G2dRzh/MtSwBWuUaFLCcDvMSsnOeComgEkKuYyeVfw==
|
||||
|
||||
turbo-freebsd-64@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-freebsd-64/-/turbo-freebsd-64-1.1.2.tgz#9e22abf04ec2298f205a57b5c9ce14e22844baf3"
|
||||
integrity sha512-2nxwVDTAM0DtIQ2i3UOfEsQLF7vp+XZ/b9SKtiHxz710fXvdyuGivYI25axDdcBn8kQ45rnbUnarF1aW8CMGgg==
|
||||
turbo-darwin-arm64@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.4.0.tgz#554772f42aac0762e9441f001b3897aab5c831bd"
|
||||
integrity sha512-O6xBDY3LUJVctQBkbPoHHDsUIhuJTdIgIY/w4ZPRgdv51fj6uBJRolj9lLx1jGioLqjUaj/sXIizlaPar6tm5A==
|
||||
|
||||
turbo-freebsd-arm64@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-freebsd-arm64/-/turbo-freebsd-arm64-1.1.2.tgz#6095c9012881225a5fdfb55362defa12f24b1f8e"
|
||||
integrity sha512-ro1Ah96yzgzyT0BJe1mceAqxPxi0pUwzAvN3IKVpMqi4hYkT3aRbzDCaSxzyC6let2Al/NUsgHnbAv38OF2Xkw==
|
||||
turbo-freebsd-64@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-freebsd-64/-/turbo-freebsd-64-1.4.0.tgz#84f1852cba9eb14495992fd92f7a85ccab91fb73"
|
||||
integrity sha512-103LbqCHxDHCz0xmpWis5JHkti2Irlq7n7vAk43+Kkxrz8UqhbrSfe0qUhkYltvxQ/R5cKAOKmBT5eZCO85+Xw==
|
||||
|
||||
turbo-linux-32@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-32/-/turbo-linux-32-1.1.2.tgz#4726e533d6966172b6bc4a960524ec2eb61adaab"
|
||||
integrity sha512-HKBsETxQMVaf/DJwMg7pypPbGA6KEu0gEf9C8o2aPJvwMPBYgNsNaU08Xizuh5xzEQTzpbIWfQyqdNgMV4RG3Q==
|
||||
turbo-freebsd-arm64@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-freebsd-arm64/-/turbo-freebsd-arm64-1.4.0.tgz#9efa07236ad4a0fc05a874fc952b28c300c57d68"
|
||||
integrity sha512-Cf+TGpQTpogSd/SsGhz1uQMhNVYYT1GeGg9iJ99rjjzbdC1zjdmeCbgUwyUUx5wVVM832o5fWaCJai3My3PDDQ==
|
||||
|
||||
turbo-linux-64@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.1.2.tgz#dfe7f3a4c91acecdb84ecab330acee06857e568e"
|
||||
integrity sha512-IklKsOklcRHIWkTzKg95BQ6jgJ53kLvRMrp8yqzlvZprkWdiyhAgUxrUTTHOOTce2XA3+jdN2+MwixG44uY2vg==
|
||||
turbo-linux-32@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-32/-/turbo-linux-32-1.4.0.tgz#c4f930e3036bb543a9af00c15960b6ed8a6b414d"
|
||||
integrity sha512-bJn78F+mH45g6xPFTdn7PLzixMuqugGz4Db9dPLijWQzeKzVz52qpN7WGUZwfPZtQOs0HUI8woH6eqAZMdT2ZA==
|
||||
|
||||
turbo-linux-arm64@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.1.2.tgz#c39b6c50657fa0e82627407c86a5c43f19598e2b"
|
||||
integrity sha512-3kS6sk2lOtuBBqkcL+yeGqD1yew4UZ1o7XUcbDD8UPwhF2kAfK7Qs0vTJw4lnO1scjhihkoTrmXM7yozvjf4/w==
|
||||
turbo-linux-64@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.4.0.tgz#9688b4c118755834c03ef02dbc0c16fc80d42544"
|
||||
integrity sha512-1+WyeJ1CBOnXNQl+Qke4NWvy3Zymp0NoxmJcZAmVBhwqAqGyERypeDznMfFmFtpG99/ZhmT7xwilz3Bw3Eyukw==
|
||||
|
||||
turbo-linux-arm@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-arm/-/turbo-linux-arm-1.1.2.tgz#2f51f93a3aa144b8ba25d7b0e3c53ea186a0e9dd"
|
||||
integrity sha512-CNbaTvRozq7H/5jpy9OZlzJ6BkeEXF+nF2n9dHiUrbAXd3nq84Qt9odcQJmGnexP19YS9w6l3tIHncX4BgwtqA==
|
||||
turbo-linux-arm64@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.4.0.tgz#7619e13118ed9c282903fe950539fbb64f568e04"
|
||||
integrity sha512-DUtBhN0+o4XULQ9hsnzp6nI4mycMH7PpjKtG2HdmiZIhSYipSKWIMZkvgJpnpVJoRarLe7PmcDJIBp2aXvw2xw==
|
||||
|
||||
turbo-linux-mips64le@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-mips64le/-/turbo-linux-mips64le-1.1.2.tgz#f52b7f410ac289d4e539f108679d2324aa5e271e"
|
||||
integrity sha512-CDoXVIlW43C6KLgYxe13KkG8h6DswXHxbTVHiZdOwRQ56j46lU+JOVpLoh6wpQGcHvj58VEiypZBRTGVFMeogw==
|
||||
turbo-linux-arm@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-arm/-/turbo-linux-arm-1.4.0.tgz#04fd2eba485438f244d09d5f52c7938f40895b2a"
|
||||
integrity sha512-9DEUP1pKWCwMDuriYCuTf+73oBIxTU4VLdkP89dtPoQVXW6mviES4gRXm8jAs6AOzzMI4DHgNKPxk7UKUvuExQ==
|
||||
|
||||
turbo-linux-ppc64le@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-ppc64le/-/turbo-linux-ppc64le-1.1.2.tgz#18d08d3414075d0dcb4be83ca837dda508313996"
|
||||
integrity sha512-xPVMHoiOJE/qI63jSOXwYIUFQXLdstxDV6fLnRxvq0QnJNxgTKq+mLUeE8M4LDVh1bdqHLcfk/HmyQ6+X1XVkQ==
|
||||
turbo-linux-mips64le@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-mips64le/-/turbo-linux-mips64le-1.4.0.tgz#f4c91875b58b22ab1c74110365ad351d0f2ad250"
|
||||
integrity sha512-ZJcQvUgmCJ4TFosVL6hEmECP5ysSubF3wMOq5hkBxzRMBjL0djW+BK4aIXutBTpjAz9OyM10S4KeEGeGRS/e3Q==
|
||||
|
||||
turbo-windows-32@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-windows-32/-/turbo-windows-32-1.1.2.tgz#96033019094bcb091647d6063c3c9b8e83d0acbe"
|
||||
integrity sha512-Gj1yvPE0aMDSOxGVSBaecLnwsVDT1xX8U0dtLrg52TYY2jlaci0atjHKr9nTFuX7z8uwAf6PopwdriGoCeT3ng==
|
||||
turbo-linux-ppc64le@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-linux-ppc64le/-/turbo-linux-ppc64le-1.4.0.tgz#237fd4262d79851d745ae0952a47629e8d320a90"
|
||||
integrity sha512-sk/rOrcGnYRcwNP8yJwmeOOzInv7YzMfWBomVf/TwrpsGL8QrD05zjsMR+lGxYNoNOJIHbroracjHaLvKWZN7A==
|
||||
|
||||
turbo-windows-64@1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.1.2.tgz#8eb3f77ab7e04b077752ae2204114c82e5c74697"
|
||||
integrity sha512-0Ncx/iKhnKrdAU8hJ+8NUcF9jtFr8KoW5mMWfiFzy+mgUbVKbpzWT2eoGR6zJExedQsRvYOejbEX5iihbnj5bA==
|
||||
turbo-windows-32@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-windows-32/-/turbo-windows-32-1.4.0.tgz#88dd0930b4d7db66565a17e0f389d1f2e05b1938"
|
||||
integrity sha512-5fmS6J3ZvhWRss+sFw2edOElVeKtk0l9yCoCYltPeFSy3+ArXws06ik3Z318SuKlbFu/+VTbM/NyBleKru+0ag==
|
||||
|
||||
turbo@^1.1.2:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.1.2.tgz#751b9651dc3ebe469898db76afab6405666ad0ff"
|
||||
integrity sha512-3ViHKyAkaBKNKwHASTa1zkVT3tVVhQNLrpxBS7LoN+794ouQUYmy6lf0rTqzG3iTZHtIDwC+piZSdTl4XjEVMg==
|
||||
turbo-windows-64@1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.4.0.tgz#5ef6aaf3b47fcfc868fcc85623fcc1cebc2ae332"
|
||||
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:
|
||||
turbo-darwin-64 "1.1.2"
|
||||
turbo-darwin-arm64 "1.1.2"
|
||||
turbo-freebsd-64 "1.1.2"
|
||||
turbo-freebsd-arm64 "1.1.2"
|
||||
turbo-linux-32 "1.1.2"
|
||||
turbo-linux-64 "1.1.2"
|
||||
turbo-linux-arm "1.1.2"
|
||||
turbo-linux-arm64 "1.1.2"
|
||||
turbo-linux-mips64le "1.1.2"
|
||||
turbo-linux-ppc64le "1.1.2"
|
||||
turbo-windows-32 "1.1.2"
|
||||
turbo-windows-64 "1.1.2"
|
||||
turbo-android-arm64 "1.4.0"
|
||||
turbo-darwin-64 "1.4.0"
|
||||
turbo-darwin-arm64 "1.4.0"
|
||||
turbo-freebsd-64 "1.4.0"
|
||||
turbo-freebsd-arm64 "1.4.0"
|
||||
turbo-linux-32 "1.4.0"
|
||||
turbo-linux-64 "1.4.0"
|
||||
turbo-linux-arm "1.4.0"
|
||||
turbo-linux-arm64 "1.4.0"
|
||||
turbo-linux-mips64le "1.4.0"
|
||||
turbo-linux-ppc64le "1.4.0"
|
||||
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:
|
||||
version "0.4.0"
|
||||
|
|
Loading…
Reference in a new issue