43 Commits
Author SHA1 Message Date
Oleg Isonen 11e078b78f Update links after renaming the repository (#2214) 2023-08-30 12:09:03 +02:00
Bogdan Chadkin 85f205a619 Rewrite migrations with zx like api (#2085)
The new execa version added support for zx like api. It's much smaller
and does not pollute globals.
2023-08-10 14:40:03 +04:00
Bogdan Chadkin 5be5abf8b3 Replace minimist with parseArgs (#1868)
Ref https://github.com/webstudio-is/webstudio-builder/issues/1191
2023-06-28 23:22:33 +03:00
Oleg IsonenandIvan Starkov 3b0aba880e Breakpoints stage 3 (#1413)
## Description

1. Input instead of a slider

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @TrySound , I need you to do
  - detailed review (read every line)

- [ ] hi @istarkov  , I need you to do
  - conceptual review (architecture, feature-correctness)
  - 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-builder/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `builder/env-check.js` if mandatory

---------

Co-authored-by: Ivan Starkov <istarkov@gmail.com>
2023-04-12 16:22:08 +04:00
Oleg Isonen 1f2475b9f4 consistent error naming in catch 2023-02-24 09:16:31 +00:00
Andras Bacsai ac413cdd5f rename designer to builder 2023-02-14 11:15:24 +01:00
Ivan Starkov b17b22276d Add status field to assets table (#711)
## Description

I need this filed in the following PR, to count assets before upload.
And restrict the total number of assets per project.

## Steps for reproduction

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)

## Before requesting a review

- [x] 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-28 00:02:53 +03:00
Bogdan Chadkin ac03e0b3b1 Fix esm in prisma migrations (#505)
Missed __dirname while migrating to esm. Works locally.
2022-11-23 20:59:53 +03:00
Bogdan Chadkin ad04473f26 Migrate packages to native ESM (#493)
Our designer bundle heavily bloated with not analyzable commonjs
generated by typescript.

The biggest problem comes from bundled icons library which esbuild
cannot tree shake because of cjs.

Another issue is broken code splitting. Packages in one piece are appear
in chunks and always loaded even with dynamic import and React.lazy.

To solve this I migrated each package to native node es modules.
Storybook and jest work almost without changes. Though it's not possible
to run remix in esm project (while still esm packages can be bundled for
ssr). And as a result designer jest failed because of cjs tests requires
from esm packages. As a solution I generated additional commonjs
artifacts in lib/cjs.

du -ck public/build
2336
1736
2022-11-23 10:12:58 +03:00
Roman Pominov 57762cdea1 edit troubleshooting 2022-09-15 20:57:58 +03:00
Roman Pominov ad370bcdb3 update troublechooting 2022-09-15 18:07:45 +03:00
Roman Pominov 4bfb0032b1 update troubleshooting 2022-09-15 18:00:52 +03:00
Roman Pominov b7914b96c4 add timeout to other migrations 2022-09-15 17:56:38 +03:00
Roman Pominov 1f66d29db7 add trobleshooting guide 2022-09-15 17:54:16 +03:00
Roman Pominov 4d4b5f9451 fix error processing 2022-09-15 17:25:49 +03:00
Roman Pominov bbc74f93d8 ensure schema.prisma is in sync with db before creating a data migration 2022-09-13 12:23:04 +03:00
Roman Pominov 2bf66710c1 minor fixes 2022-09-13 11:42:03 +03:00
Oleg Isonen ccd77ed372 migration to asset.meta 2022-09-12 15:23:58 +02:00
Roman Pominov 766dafb744 fix 2022-09-12 10:44:30 +03:00
Roman Pominov 66e43922cc wrap main into try..catch 2022-09-12 10:10:38 +03:00
Roman PominovandOleg Isonen faee50c0e9 Update packages/prisma-client/migrations-cli/README.md
Co-authored-by: Oleg Isonen <oleg008@gmail.com>
2022-09-12 09:56:04 +03:00
Roman Pominov 4e4cfb20c3 fix 2022-09-08 15:34:49 +03:00
Roman Pominov 4960e19606 new reset implementation that doesn't require changing privilages in order to work 2022-09-08 15:27:19 +03:00
Roman Pominov 37413e377b skip-confirmation -> force 2022-09-08 13:50:06 +03:00
Roman Pominov 2d7bc834e3 allow reset w/o --dev & minor changes 2022-09-08 13:47:41 +03:00
Roman Pominov d01940e6a2 minor fixes 2022-09-08 12:54:00 +03:00
Roman Pominov 38481c995c use-cases 2022-09-08 12:48:17 +03:00
Roman Pominov f5e6be6caa dont format table 2022-09-08 11:57:15 +03:00
Roman Pominov 42e1d919a4 comparison to prisma 2022-09-08 11:50:17 +03:00
Roman Pominov 066b846161 clarify lockfile 2022-09-08 11:15:28 +03:00
Roman Pominov caed790b1f use inquirer 2022-09-08 11:15:28 +03:00
Roman Pominov 0979c02b39 add migrate script in root & --skip-confirmation 2022-09-08 11:15:28 +03:00
Roman Pominov d29330622d no confirmation when applying migr. in production 2022-09-08 11:15:28 +03:00
Roman Pominov 77fd22e205 fix import 2022-09-08 11:15:28 +03:00
Roman Pominov c43f925d31 CliError -> UserError 2022-09-08 11:15:28 +03:00
Roman Pominov 0b9feb0c85 reset command & avoid printing stack for user errs 2022-09-08 11:15:28 +03:00
Roman Pominov ff7a028bd9 add confirmations 2022-09-08 11:15:28 +03:00
Roman Pominov f3fc30c018 cli reference 2022-09-08 11:15:28 +03:00
Roman Pominov e88c9b1035 add resolve 2022-09-05 11:44:38 +03:00
Roman Pominov c1c337c8a5 refactor: split to files 2022-09-05 11:44:38 +03:00
Roman Pominov 8e94a05172 refactor Umzug setup 2022-09-05 11:44:38 +03:00
Roman Pominov 5d93e67860 switch to tsx 2022-09-05 11:44:36 +03:00
Roman Pominov a9f33cd6f9 new migration engine (wip)
Squashed all "wip" commits
2022-09-05 11:42:59 +03:00