[big chore] restore core to monorepo (#287)

* move core into repo, apps into apps folder, update tests

* Update scripts for build:core

* improve scripts

* remove noise from www

* Update .gitignore

* Fix focus bug

* add ci test script

* Update main.yml
This commit is contained in:
Steve Ruiz 2021-11-18 13:09:18 +00:00 committed by GitHub
parent 878ca710b7
commit e6a3e5c3ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
389 changed files with 12980 additions and 95 deletions

View file

@ -9,12 +9,8 @@ jobs:
- name: Install modules
run: yarn
# build
- name: Build
- name: Build Packages
run: yarn build:packages
# run unit tests
- name: Jest Annotations & Coverage
uses: mattallty/jest-github-action@v1.0.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
test-command: 'yarn test --ci --runInBand --updateSnapshot'
run: yarn test:ci

8
.gitignore vendored
View file

@ -9,8 +9,8 @@ docs/
coverage
*.log
www/public/worker-*
www/public/sw.js
www/public/sw.js.map
.vercel
.next
apps/www/public/worker-*
apps/www/public/sw.js
apps/www/public/sw.js.map

View file

@ -12,6 +12,7 @@
],
"scripts": {
"start:electron": "yarn dev",
"build:apps": "yarn build",
"dev": "electron-esbuild dev",
"build": "electron-esbuild build",
"package": "electron-builder"

View file

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View file

@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "../../tsconfig.base.json",
"include": ["src"],
"exclude": ["node_modules", "dist", "docs"],
"compilerOptions": {
@ -9,12 +9,12 @@
"allowJs": false,
"emitDeclarationOnly": true,
"paths": {
"@tldraw/tldraw": ["../packages/tldraw"]
"@tldraw/tldraw": ["../../packages/tldraw"]
}
},
"references": [
{
"path": "../packages/tldraw"
"path": "../../packages/tldraw"
}
],
"typedocOptions": {

View file

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View file

@ -12,7 +12,8 @@
],
"scripts": {
"start:vscode": "node scripts/dev.mjs -w",
"build": "node scripts/build.mjs"
"build": "node scripts/build.mjs",
"build:apps": "yarn build"
},
"devDependencies": {
"@tldraw/tldraw": "^1.0.3",

View file

@ -1,5 +1,5 @@
{
"extends": "../tsconfig.base.json",
"extends": "../../../tsconfig.base.json",
"include": ["src"],
"exclude": ["node_modules", "dist", "docs"],
"compilerOptions": {
@ -8,13 +8,12 @@
"baseUrl": "src",
"emitDeclarationOnly": false,
"paths": {
"+*": ["./*"],
"@tldraw/tldraw": ["../packages/tldraw"]
"@tldraw/tldraw": ["../../../packages/tldraw"]
}
},
"references": [
{
"path": "../packages/tldraw"
"path": "../../../packages/tldraw"
}
],
"typedocOptions": {

View file

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View file

@ -61,6 +61,8 @@
},
"scripts": {
"start:vscode": "node scripts/dev",
"build:apps": "yarn build",
"build": "yarn package",
"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",

View file

@ -1,5 +1,5 @@
{
"name": "www",
"name": "@tldraw/www",
"version": "1.0.3",
"private": true,
"description": "A tiny little drawing app (site).",
@ -11,6 +11,8 @@
"author": "@steveruizok",
"scripts": {
"dev": "next dev",
"build:apps": "yarn build",
"build:www": "yarn build",
"build": "next build",
"serve": "next serve",
"lint": "next lint"

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View file

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View file

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View file

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View file

Before

Width:  |  Height:  |  Size: 408 B

After

Width:  |  Height:  |  Size: 408 B

View file

Before

Width:  |  Height:  |  Size: 795 B

After

Width:  |  Height:  |  Size: 795 B

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

Some files were not shown because too many files have changed in this diff Show more