tldraw/package.json

95 lines
2.7 KiB
JSON
Raw Normal View History

2021-05-09 12:03:39 +00:00
{
2021-08-10 16:12:55 +00:00
"name": "tldraw",
"private": true,
"description": "A tiny little drawing app.",
"author": "@steveruizok",
2021-08-10 16:12:55 +00:00
"repository": {
"type": "git",
"url": "git+https://github.com/tldraw/tldraw.git"
2021-06-21 21:35:28 +00:00
},
2021-08-10 16:12:55 +00:00
"license": "MIT",
"workspaces": [
"electron",
Create VS Code Extension (#4) * Start of vscode extension. Current code is copy/paste from custom editor samples from Microsoft. We need to evaluate if using their text based customer editor or full on new custom editor is the way to go * Not sure how I missed these files. Adding them * Have a custom editor triggering off of .tldr files. Added gitignores for generated folder. Have iframed tldraw loading and security policies set to do so * Can now load a .tldr file. No saving support yet. Load times are slow, mostly from editor loading up I think * Have temporary solution for saving working now too. * Missed af ile * Backing up progress in syncing tldraw editor history changes * Removed console * ... * ... * Cleanup * Have save working well now. * Moved extension into 'integrations' folder * Trying out WebviewPanelOptions.retainContextWhenHidden=true and it's looking promising * Some cleanup * Trying out new @tldraw/editor module * Have prototype loading using new embedded editor * ... * Shaved off 1 second from editor loadtime * Got save working again. Had to manually fixuppreviously created .tldr files as the format changed a bit * More tuning * Starting work to get new tldraw/tldraw working. * Added example tldr files to vscode package * Removed old editor package * Have onChange working with latest fix. Back to iframed for a few mom * Fixed up .tldr files * Have iframe free extension working, but requiring hand crafted building * ... * Better handling of empty .tldr files. Still an issue with freshly created files trying to save as .js or .json * Thoroughly added comments for the extension code. Need to add diagrams though and now will document/comment/diagram the editor src code * Added comments to all of the editor side of the VS Code Extension. Also cleaned up the code * More cleanup of VS Code Extension code and have script automating generating the initial webview's html content from the cra editor static build * Tweaks to watch logic * Improved scripts for publishing to VS Code Marketplace * Improved name * Made the smiley angry * Reverted * Turned smiley mad * Turned smiley mad * Made smiley sad * Have a lot of plumbing working for Github codespaces and github.dev support * Imported new tldraw vs code extension code. Added instructions for workflows * Quick fix * Fix for corrupted arrows files * Updated editor build step to new location * Merge branch 'main' into vscode-extension-v1, add local file updating * Update App.tsx * Cleanup, bumped to 0.0.124 @tldraw/tdlraw and published a 0.10.0 version of hte extension * Added Trello/Kanban style file * Finished video * brings up to date * Fix scripts * Update README.md * Update .babelrc Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-11-06 16:49:53 +00:00
"vscode/editor",
"vscode/extension",
2021-08-10 17:19:30 +00:00
"packages/tldraw",
"example",
"www"
2021-08-10 16:12:55 +00:00
],
2021-08-10 17:19:30 +00:00
"scripts": {
"test": "jest",
2021-09-01 12:05:14 +00:00
"test:watch": "jest --watchAll",
2021-08-10 17:19:30 +00:00
"lerna": "lerna",
"start:electron": "lerna run start:electron --stream --parallel",
"start:vscode": "yarn build:packages && lerna run start:vscode --stream --parallel & code vscode/extension; ",
"build:vscode": "cd vscode/extension && yarn package",
"start": "lerna run start --stream --parallel",
"start:www": "yarn build:packages && lerna run start --parallel & cd www && yarn dev",
"build": "yarn build:packages && cd www && yarn build",
2021-11-01 15:26:44 +00:00
"build:packages": "cd packages/tldraw && yarn build",
"publish:patch": "yarn test && yarn build:packages && lerna publish patch",
"docs": "lerna run docs",
"docs:watch": "lerna run docs:watch",
"postinstall": "husky install",
"fix:style": "yarn run prettier ./packages/tldraw/src --write"
2021-08-10 17:19:30 +00:00
},
2021-08-10 16:12:55 +00:00
"devDependencies": {
"@swc-node/jest": "^1.3.3",
2021-08-14 15:46:21 +00:00
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
2021-11-01 15:26:44 +00:00
"@types/jest": "^27.0.2",
2021-08-10 16:12:55 +00:00
"@types/node": "^15.0.1",
2021-10-27 17:52:02 +00:00
"@types/react": "^17.0.33",
"@types/react-dom": "^17.0.10",
"@types/vscode": "^1.59.0",
2021-08-10 16:12:55 +00:00
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
2021-08-31 13:28:51 +00:00
"eslint": "^7.32.0",
2021-08-29 13:33:43 +00:00
"fake-indexeddb": "^3.1.3",
"husky": "^7.0.4",
2021-09-09 12:32:08 +00:00
"init-package-json": "^2.0.4",
2021-11-01 15:26:44 +00:00
"jest": "^27.3.1",
2021-09-09 12:32:08 +00:00
"lerna": "^3.22.1",
"lint-staged": "^11.2.6",
"prettier": "^2.4.1",
"resize-observer-polyfill": "^1.5.1",
2021-08-10 16:12:55 +00:00
"tslib": "^2.3.0",
"typedoc": "^0.22.3",
2021-08-29 13:33:43 +00:00
"typescript": "^4.4.2"
2021-05-09 12:03:39 +00:00
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "test && lint-staged"
}
},
"lint-staged": {
"*": "fix:style && eslint"
},
2021-08-10 16:12:55 +00:00
"jest": {
2021-08-14 15:46:21 +00:00
"setupFilesAfterEnv": [
"<rootDir>/setupTests.ts"
],
2021-08-10 16:12:55 +00:00
"transform": {
"^.+\\.(tsx|jsx|ts|js|mjs)?$": "@swc-node/jest"
2021-08-10 16:12:55 +00:00
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"testEnvironment": "jsdom",
"modulePathIgnorePatterns": [
2021-08-31 21:43:04 +00:00
"<rootDir>/packages/tldraw/dist/",
2021-08-14 15:46:21 +00:00
"<rootDir>/packages/tldraw/test-utils/"
2021-08-10 16:12:55 +00:00
],
"moduleNameMapper": {
2021-08-13 10:49:35 +00:00
"@tldraw/tldraw": "<rootDir>/packages/tldraw/src",
2021-10-28 16:50:58 +00:00
"\\~(.*)": "<rootDir>/packages/tldraw/src/$1"
2021-08-10 16:12:55 +00:00
}
2021-05-09 12:03:39 +00:00
}
}