Commit graph

98 commits

Author SHA1 Message Date
alex
0bd6410d9f
avoid lazy race conditions (#1364)
We had a few issues with lazy race conditions failing CI. This came from
scripts configured to invoke lazy again, rather than through expressing
dependencies between scripts.

This diff reconfigures lazy to articulate these sorts of things as
dependencies instead of through self-invocation. Instead of having lots
of separate `build-package`, `build-docs`, etc commands, we now just
have a build command with package overrides to express more specific
options

### Change Type
- [x] `internal` — Any other changes that don't affect the published
package (will not publish a new version)

### Release Notes
[internal only]
2023-05-12 15:41:40 +00:00
Orange Mug
545e421423
Adds CI for webdriver tests (#1343)
Github action CI workflows added for webdriver tests.

I've also refactored the `./scripts/e2e-*` scripts. These scripts were
somewhat unique compared to the other scripts. They are now more inline
with the other scripts in that directory and run via

```
% yarn e2e --help                               
Usage: yarn e2e <command> [options]

Commands:
  yarn e2e serve              start test server
  yarn e2e test:ci [env]      runner for CI (github-actions)
  yarn e2e test:local         run webdriver tests locally
  yarn e2e test:browserstack  run webdriver tests on browserstack
  yarn e2e selenium:grid      start selenium grid (test linux)

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]
``` 

I've also added an experimental linux runner see 


2cca4ddb77/e2e/README.md (L320-L333)

### Change Type

- [x] `tests` — Changes to any testing-related code only (will not
publish a new version)


### Release Notes

- Github action CI workflows added for webdriver tests
- Refactored e2e test runner
2023-05-12 15:25:14 +00:00
alex
71aef1764d
Rework the assets package for strategy-specific imports (#1341)
The assets package now only exports esm-formatted .js files. There's one
for each strategy - import-based, and meta.url-based. These are directly
generated as .js and .d.ts files rather than generated as .ts and
converted to js/dts through other means.

As this package depends on esm-specific stuff to function, we don't
publish a cjs version any more.

### Change Type

<!-- 💡 Indicate the type of change your pull request is. -->
<!-- 🤷‍♀️ If you're not sure, don't select anything -->
<!-- ✂️ Feel free to delete unselected options -->

<!-- To select one, put an x in the box: [x] -->

- [ ] `patch` — Bug Fix
- [ ] `minor` — New Feature
- [x] `major` — Breaking Change

- [ ] `dependencies` — Dependency Update (publishes a `patch` release,
for devDependencies use `internal`)

- [ ] `documentation` — Changes to the documentation only (will not
publish a new version)
- [ ] `tests` — Changes to any testing-related code only (will not
publish a new version)
- [ ] `internal` — Any other changes that don't affect the published
package (will not publish a new version)

### Release Notes

- [dev] If you're using the `@tldraw/assets` package, you need to update
your code to `import { getAssetUrlsByImport } from
'@tldraw/assets/imports'` instead of `import { getBundlerAssetUrls }
from '@tldraw/assets`
2023-05-09 16:08:38 +00:00
David Sheldrick
1f90c3f2b4
[chore] Add label options to PR template (#1339)
Merge after deploying the new huppy.

### Release Note

- Repo infra only
2023-05-09 14:36:57 +00:00
alex
a8910e5491
Fix publishing (#1338)
Automated package publish had gotten broken because we lost all our git
tags/releases. We fixed that, but also:
* made releases come from huppy instead of david
* swtiched from node's `execSync` to our `exec` for more debuggable
output
* cleaned up some of the scripts a little

this diff has a lot of whitespace changes so you're best off reviewing
it with whitespace changes hidden:
https://github.com/tldraw/tldraw/pull/1338/files?diff=split&w=1
2023-05-09 13:25:56 +00:00
Lu[ke] Wilson
c76dc1596f
Add link to original tldraw within issue template (#1225)
This PR adds a link to the original tldraw repo within our issue
templates.

It will look similar to this (with different wording):

![image](https://user-images.githubusercontent.com/15892272/236198339-9dd12831-fec0-49f4-b279-9c991dfaaafc.png)
2023-05-05 13:01:30 +00:00
Lu[ke] Wilson
117ec62691
Fix issue templates not appearing (#1228)
This PR fixes the issue templates not working.


![image](https://user-images.githubusercontent.com/15892272/236412742-dd1ce7b4-8865-41f7-a0b7-dbb05547e360.png)


![image](https://user-images.githubusercontent.com/15892272/236412776-0124f624-7eae-452d-8318-309886b39c81.png)
2023-05-05 13:01:04 +00:00
Lu[ke] Wilson
9e5de0c48e
[improvement] readme / contributing (#1199)
This PR adds a barebones Readme to the public repo that we can start to
iterate on.

This is what it looks like!


![image](https://user-images.githubusercontent.com/15892272/234321088-6bde4a16-5c9d-4d74-985b-fc578d374eb9.png)

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2023-05-03 08:32:52 +00:00
Steve Ruiz
5d4b3bec45
[improvement] add bug report / feature request (#1218)
This PR adds issue templates for bug reports and feature requests.
2023-05-03 08:30:17 +00:00
David Sheldrick
f5c5b05dc7
[chore] update lazyrepo (#1211) 2023-05-02 12:25:26 +00:00
alex
39aa01b974 lite: tweak lockfile name 2023-04-25 12:01:38 +01:00
alex
67e94eb641 lite: open runners 2023-04-25 12:01:38 +01:00
alex
0994827b71 poke 2023-04-25 12:01:38 +01:00
alex
4066d06f93 lite: standalone? 2023-04-25 12:01:38 +01:00
alex
ec84f64e63 lite: delete all 2023-04-21 16:53:31 +01:00
Lu[ke] Wilson
14bc4decdf
Add link to beta repo in issue template, and fix 'feature' issue label (#1167)
* fix label for feature issue template

* add link to beta issues on issue template

* tweak wording of issue templates
2023-03-20 08:40:18 +00:00
with-heart
3d4544548b
chore: improve linting (#855)
* chore(lint): upgrade typescript-eslint

* chore(lint): add root "lint" script

* chore(turbo): remove build dependency from lint

* chore(lint): enable jest recommended rules

* chore(lint): resolve errors

* ci: add lint step

* prettier

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2022-07-28 08:25:46 +01:00
Steve Ruiz
e1fb9a8250
[improvement] Improve monorepo (lask + turbo) (#566)
* add lask for packages

* Add turbo

* remove custom scripts

* update turbo scripts

* Improve scripts, update changelogs

* update action to use turbo

* Update .gitignore

* Update main.yml

* Update main.yml

* Update main.yml

* Add docs

* add clean
2022-02-08 11:05:56 +00:00
Steve Ruiz
01edde8f6a
Delete sponsors.yml 2021-11-19 14:14:45 +00:00
Steve Ruiz
0f104b31b3
Update sponsors.yml 2021-11-19 14:12:09 +00:00
Steve Ruiz
9aa61afc63
Update sponsors.yml 2021-11-19 14:06:55 +00:00
Steve Ruiz
4377e39da5
Create sponsors.yml (#305) 2021-11-19 13:59:11 +00:00
Steve Ruiz
e6a3e5c3ea
[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
2021-11-18 13:09:18 +00:00
Steve Ruiz
0c5f8dda48
1.0.0 (#267)
* remove sponsorwall for main route

* Adds sponsorship link

* Remove all sponsorwall

* Fix sponsorship link appearance on dark mode

* Add heart icon

* Fix text bug

* Fix toolbar, hide resize handles on sticky

* Add eraser

* Update Kbd.tsx

* cleanup

* base zoom delta on event deltaMode

* Fix image in example

* Fix eraser icon

* eraser tool resets to previous tool

* Update EraseTool.spec.ts

* Improves support for locked shapes

* Update _document.tsx

* Update CHANGELOG.md

* Adds multiplayer menu, fix develop route in example

* Tighten up top panel padding

* Update top bar, bump packages

* refactor TLDrawState -> TLDrawApp, mutables, new tests

* Fix scaling bug, delete groups bug

* fix snapping

* add pressure to points

* Remove mutables, rename to tldraw (or Tldraw)

* Clean up types, add darkmode prop

* more renaming

* rename getShapeUtils to getShapeUtil

* Fix file names

* Fix last bugs related to renaming

* Update state to app in tests

* rename types to TD

* remove unused styles / rename styles

* slight update to panel

* Fix rogue radix perf issue

* Update ZoomMenu.tsx

* Consolidate style panel

* Fix text wrapping in text shape, improve action menu

* Fix props

* add indicators for tool lock

* fix calloits

* Add click to erase shapes

* Slightly improve loading screen

* Update PrimaryTools.tsx

* remove force consistent filenames from tsconfig

* Update useTldrawApp.tsx

* fix capitalization

* Update main.yml
2021-11-16 16:01:29 +00:00
Steve Ruiz
5479d67877
Updates to new core. (#210) 2021-10-28 17:50:58 +01:00
Steve Ruiz
c630e1f8be Fix change to loadDocument 2021-09-08 12:09:03 +01:00
Steve Ruiz
bbcf629681 Fix jest issue 2021-08-31 22:43:04 +01:00
Steve Ruiz
60379adea4 Update main.yml 2021-08-31 22:30:43 +01:00
Steve Ruiz
065d33867a Update main.yml 2021-08-31 22:28:03 +01:00
Steve Ruiz
db7b6fb3a2 Update main.yml 2021-08-31 22:27:29 +01:00
Steve Ruiz
e161d027a4 Update main.yml 2021-08-13 12:24:54 +01:00
Steve Ruiz
d8bf5ef7cf Update main.yml 2021-08-13 12:22:11 +01:00
Steve Ruiz
9afbf24de6 Roll back bug report form 2021-07-13 20:46:21 +01:00
Steve Ruiz
c301f1fe6f Adds bug report form 2021-07-13 20:37:34 +01:00
Steve Ruiz
f6c155ffab Updates bud report template 2021-07-11 13:56:07 +01:00
Steve Ruiz
d995211e8e Update main.yml 2021-07-09 10:30:26 +01:00
Steve Ruiz
96a678dab9 Update main.yml 2021-07-09 10:28:57 +01:00
Steve Ruiz
2e7ed423ad
Merge branch 'main' into testing-30-transform-command 2021-07-09 10:23:59 +01:00
Steve Ruiz
8b7f9ef4e0 Updates workflow 2021-07-09 10:21:41 +01:00
Steve Ruiz
34a59475f6
Merge branch 'main' into testing-30-transform-command 2021-07-09 10:14:16 +01:00
Steve Ruiz
26a55b37da Update main.yml 2021-07-09 10:13:29 +01:00
Steve Ruiz
54ea0e3a2d Adds testMode, tests for RectangleShape 2021-07-09 09:59:43 +01:00
Steve Ruiz
b57a013ca2
Create main.yml 2021-07-08 13:45:17 +01:00
Steve Ruiz
ee48a7afb8 Minor update to state 2021-07-07 10:51:19 +01:00
Steve Ruiz
fdb10a4479
Create testing.md 2021-07-04 22:29:27 +01:00
Steve Ruiz
3664bc5dc1
Create documentation.md 2021-07-04 21:45:31 +01:00
Steve Ruiz
e210c233f6 Update issue templates 2021-07-04 21:35:37 +01:00
Steve Ruiz
c994a935ee
Create FUNDING.yml 2021-07-02 09:59:15 +01:00