59 Commits
Author SHA1 Message Date
Bogdan Chadkin 6ca1f7088a Bump packages (#814)
Let's release
2023-01-19 13:08:32 +03:00
Bogdan Chadkin 02d5f509dd Use build-package for http-client (#806)
Forgot to migrate it to our build-package script before. Now we got rid
of tsup.

```diff
du -ckd1 node_modules
-804060
+794324
```

```diff
root> pnpm build
-16s
+10s
```
2023-01-18 16:16:58 +03:00
Bogdan Chadkin 6f5a0bcfbc Bump packages (#805)
Let's release
2023-01-18 14:06:44 +03:00
Bogdan Chadkin 7d90c3f56c Bump packages (#753)
Gonna be big release.
2023-01-06 17:31:39 +03:00
Ivan Starkov 3ef9b92126 Bump versions (#693)
## Description

1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-designer/blob/main/apps/designer/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `designer/env-check.js` if mandatory
2022-12-24 20:20:07 +03:00
Bogdan Chadkin 845d53981c Improve packages publish (#676)
- all workspace dependencies are use with `workspace:^` protocol which
on publish is replaced with `^VERSION`. This will let us to upgrade
transitive packages in saas without shaman dancing around package.json
and lockfile.
- publish-to-npm script is replaced with `pnpm -r publish` which
recursively publishes all packages if version does not exist in npm
- dropped yarn lockfile
2022-12-22 17:06:27 +03:00
Bogdan Chadkin b3c87af7c1 Migrate to pnpm for package management (#641)
- setup corepack for pnpm and forbid yarn usage with "engines" field
- converted yarn lockfile into pnpm lockfile with `pnpm import` command
- replaced yarn with pnpm in scripts and github actions, had to use
custom cache to support corepack

This PR is only migration. Will use new pnpm features in other PRs.

```diff
du -ckd1 node_modules (yarn)
- 1125032

du -ckd1 node_modules/.pnpm
+ 857456
```

Install time (including cache downloads) in github actions reduced from
42s to 23s


## Before requesting a review

- [ ] if the PR is WIP - use draft mode
- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")
- [ ] what kind of review is needed?
  - [x] conceptual
  - [X] detailed
  - [ ] with testing

## Test cases

- [ ] step by step interaction description and what is expected to
happen

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-designer/blob/main/apps/designer/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `designer/env-check.js` if mandatory
2022-12-22 12:16:13 +03:00
Bogdan Chadkin 7019d50b30 Bump packages versions (#672)
Let's release
2022-12-21 17:43:33 +03:00
Bogdan Chadkin 752768abbc Use explicit imports from @jest/globals (#645)
pnpm prevents access to jest and @types/jest from packages so we need to
explicitly install it. Though @types/jest is not officially maintained
and often late for months with new major which bloats node_modules with
two versions of jest transitives.

Here is alternative way to use official types. The only downside is
complains these types has less descriptions.
2022-12-16 16:35:22 +03:00
Bogdan Chadkin d05b1bc21f Resolve tsconfig package (#643)
While migrating to pnpm I got an issue with our extends relying on
node_modules. pnpm have only symlinks and do not have hoisted
node_modules in the root.

Here I switched extends to package name as all tools can resolve it and
tweaked remix tsconfig to extend from packages folder instead of
node_modules.
2022-12-16 13:09:33 +03:00
Ivan Starkov af90b31945 Bump versions (#616)
## Before requesting a review

- [ ] if the PR is WIP - use draft mode
- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")
- [ ] what kind of review is needed?
  - [ ] conceptual
  - [ ] detailed
  - [ ] with testing

## Test cases

- [ ] step by step interaction description and what is expected to
happen

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-designer/blob/main/apps/designer/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `designer/env-check.js` if mandatory
2022-12-12 23:56:10 +03:00
Ivan Starkov 12a3da3140 Bump versions 2022-12-12 14:17:23 +03:00
Ivan Starkov 6cc2847cf6 Bump versions (#582)
For easier version change next time, now all has same version.
2022-12-09 21:52:10 +04:00
Ivan Starkov cb7f22f7a4 Bump packages versions (#566)
## Before requesting a review

- [ ] if the PR is WIP - use draft mode
- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")
- [ ] what kind of review is needed?
  - [ ] conceptual
  - [ ] detailed
  - [ ] with testing

## Test cases

- [ ] step by step interaction description and what is expected to
happen

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-designer/blob/main/apps/designer/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `designer/env-check.js` if mandatory
2022-12-07 22:31:38 +04:00
Bogdan Chadkin 3e96357a2c Use sources as type deifnitions (#539)
Right now our build and CI take a lot of time. 1:40min - 2min on CI and
1min locally. We spend time on vercel, on main CI, on publish and
locally.

At the moment in packages anything outside of src folder is not checked
because of rootDir.

We have to generate "references" field on precommit.

All these issues can be avoided if remove .d.ts generation completely
and specify sources in "types" field. This way we get zero build time
for types and can switch to other build tool (like esbuild) for .js
generation and get almost instant build on vercel, on main CI and on
publish.

Downsides

- it can be slower (actually not really caz we delete .tsbuildinfo cache
anyway and we can still generate it with incremental flag)
- it contraditcs recommended practices for published packages (we can
generate .d.ts in publish script only and use "types" as source
internally)
2022-11-28 22:27:56 +03:00
Bogdan Chadkin 16984b8bf7 Improve packages auto publish (#508)
Current solution often fails with

> You cannot publish over the previously published versions

Here I added small script which compares committed version and version
on npm and publish if do not match.

All scripts are run by turbo. So publishing new package is just changing
package script now.
2022-11-24 16:00:24 +03:00
Andras Bacsai 13e2e6bf56 remove error 2022-11-23 15:17:24 +01:00
Andras Bacsai 91239ef9d0 no need to double check string 2022-11-23 15:11:55 +01:00
Andras Bacsai dae9e6de38 fix: type + tests 2022-11-23 15:00:39 +01:00
Andras Bacsai e12b3c0753 fix: type CanvasData 2022-11-23 14:50:38 +01:00
Andras Bacsai 9ac21be7f4 bump versions 2022-11-23 09:37:14 +01:00
Andras Bacsai cefd76d9b7 fix issues 2022-11-22 14:25:09 +01:00
Andras Bacsai d8e264d136 fix: types 2022-11-22 11:08:10 +01:00
Andras Bacsai 81ee438a81 fix projects endpoint 2022-11-22 10:39:23 +01:00
Andras Bacsai 4dfe5d1b84 fix: tests + types 2022-11-22 10:29:38 +01:00
Andras Bacsai 6cf7c35439 simplify http-client & single rest endpoint for publishing 2022-11-22 10:12:43 +01:00
Andras Bacsai aa3aea369e fix: type errors 2022-11-21 21:27:51 +01:00
Andras Bacsai c9ebf4c01a fix: add page meta to published sites 2022-11-21 14:06:39 +01:00
Andras Bacsai 03583078cb feat: redesigner loadProject + add new rest api for CSS 2022-11-21 11:00:03 +01:00
Bogdan Chadkin 50010c7f0d Check all .ts and .tsx in packages src folder (#476)
Here "include" often have list of extensions and forgotten .tsx so such
modules are left unchecked. Replaced with just "src" which consider all
typescript extensions.

Ideally stop using tsc to build artifacts, switch to esbuild and remove
complex configuration from all tsconfig.json.
2022-11-19 21:21:38 +03:00
Andras Bacsai 1048ab3aa9 fix issues 2022-11-17 10:57:49 +01:00
Andras BacsaiandOleg Isonen 0f02661976 Update packages/http-client/src/index.ts
Co-authored-by: Oleg Isonen <oleg008@gmail.com>
2022-11-17 10:55:58 +01:00
Andras Bacsai 006df5b9fb version++ 2022-11-16 11:37:50 +01:00
Andras Bacsai 89aad1c74d fix checks 2022-11-16 11:16:43 +01:00
Andras Bacsai bb669d3abe feat: able to query pages with loadProject 2022-11-16 10:48:21 +01:00
Mateusz Burzyński 0a0499a821 Add sideEffects: false to packages and revert some of the changes 2022-11-05 22:17:23 +01:00
Mateusz Burzyński 1b84fd65ef Generate actual /server entries in packages 2022-11-04 09:21:48 +01:00
Mateusz Burzyński 5179d71e81 Fixed the build script 2022-10-24 12:39:35 +02:00
Mateusz Burzyński 03eab06fa9 Add a comment about references being auto-generated 2022-10-22 15:41:05 +02:00
Mateusz Burzyński 5318d995d6 Update references to use consistent formatting in the future 2022-10-22 13:12:10 +02:00
Mateusz Burzyński 75cb3252e5 Try to use golden-fleece to handle tsconfig containing comments 2022-10-22 12:52:51 +02:00
Mateusz Burzyński 470d5e1214 Update tsconfigs 2022-10-21 11:21:28 +02:00
Mateusz Burzyński 59ff5bf4d8 Use TS project references to improve the IDE experience 2022-10-20 20:53:40 +02:00
Andras Bacsai fb30ed034e fixes 2022-09-28 13:09:07 +02:00
Andras Bacsai 01d1d9451e fix: tests 2022-09-28 12:10:18 +02:00
Andras Bacsai cb137e6a49 fix: process is not defined in worker, so url is defined in a different way 2022-09-28 12:07:33 +02:00
Andras Bacsai 14a829c69e chore: version++ 2022-09-27 14:27:57 +02:00
Andras Bacsai 5ca48aef58 fix: use isomorphic fetch for worker, node & browser 2022-09-27 14:27:09 +02:00
Mateusz Burzyński 6f4aabde95 Make sure that TS 4.7 gets used 2022-09-21 14:57:34 +02:00
Andras Bacsai 95f23b9dbc Merge branch 'main' into project-package 2022-09-13 13:56:24 +02:00