1
0
Fork 0
Commit graph

17 commits

Author SHA1 Message Date
Joost De Cock
e4035b2509 chore: Re-structure workspaces, enforce build order
These are some changes in the way the monorepo is structured,
that are aimed at making it easier to get started.

There are two important changes:

**Multiple workspaces**

We had a yarn workspaces setup at `packages/*`. But our monorepo has
grown to 92 packages which can be overwhelming for people not familiar
with the package names.

To remedy this, I've split it into 4 different workspaces:

- `designs/*`: Holds FreeSewing designs (think patterns)
- `plugins/*`: Holds FreeSewing plugins
- `packages/*`: Holds other packages published on NPM
- `sites/*`: Holds software that is not published as an NPM package,
  such as our various websites and backend API

This should make it easier to find things, and to answer questions like
*where do I find the code for the plugins*.

**Updated reconfigure script to handle build order**

One problem when bootstrapping the repo is inter-dependencies between
packages. For example, building a pattern will only work once
`plugin-bundle` is built. Which will only work once all plugins in the
bundle or built. And that will only work when `core` is built, and so
on.

This can be frustrating for new users as `yarn buildall` will fail.
And it gets overlooked by seasoned devs because they're likely to have
every package built in their repo so this issue doesn't concern them.

To remedy this, we now have a `config/build-order.mjs` file and the
updated `/scripts/reconfigure.mjs` script will enforce the build order
so that things *just work*.
2022-06-16 17:11:31 +02:00
Joost De Cock
c849826601
Merge pull request #2236 from eriese/eriese-hydration-fixes
Fix hydration errors due to localstorage
2022-06-07 20:29:25 +02:00
Enoch Riese
eedcae7740 use single source of truth for navigation 2022-06-06 13:47:18 -05:00
Enoch Riese
45e83c0225 add useTheme to useApps 2022-06-06 13:12:34 -05:00
Joost De Cock
4bef80dd08 chore(lab): Switch to shared designs list 2022-05-28 17:50:59 +02:00
Joost De Cock
d4833fb6a4 feat(lab): Add support for multiple versions in the lab 2022-03-26 18:06:14 +01:00
Joost De Cock
4da86eb643 chore: fixed linter warnings 2022-02-13 16:10:51 +01:00
Joost De Cock
a68f81ec73 chore: Linter warnings 2022-02-12 15:23:37 +01:00
Joost De Cock
7ec34e14a5
fix(lab): Update packages/freesewing.lab/hooks/useApp.js
Co-authored-by: Stefan Sydow <s.sydow@heinlein-video.de>
2022-02-12 13:50:15 +01:00
Joost De Cock
491913e288 wip(lab): Work on translation 2022-02-07 20:02:28 +01:00
Joost De Cock
e8d747a949 chore(lab): Use locale and hover resize consistently 2022-01-27 18:07:37 +01:00
Joost De Cock
19f9be6a3c feat(lab): Added language setting 2022-01-27 12:26:56 +01:00
Joost De Cock
4f96925413 feat(lab): Handle draft translations through app.t 2022-01-25 11:23:15 +01:00
Joost De Cock
825ca14189 feat(fs.lab): translation with props 2022-01-25 10:29:26 +01:00
Joost De Cock
6b74e94ac3 fix(fs.lab): Reconfigured nextjs for the lab 2022-01-25 09:03:06 +01:00
Joost De Cock
2ea353a475 chore(fs.dev): Webpack aliases to load local code from source
These changes force webpack to load the local pacakges (like
patterns and so on) from source, rather than from a compiled bundle.
This means that the lab site will reload whenever one makes changes
to pattern code.
2022-01-24 12:34:29 +01:00
Joost De Cock
54aefa8437 wip: Started working on new development environment 2022-01-22 17:55:03 +01:00