1
0
Fork 0
Commit graph

9 commits

Author SHA1 Message Date
joostdecock
ac9b616b99 wip(core): Support for 2022 style Design constructor
This is the first commit to tackle some exploratory work
in the context of discussion #2538 that deals with a number
of things, such as:

- Making it easier to attach parts to designs
- Making it easier to attach parts at run-time
- Simplify part inheritance into other designs
- Find ways to handle dependenices across designs
- Find ways to keep the part-specific config with the part

In this initial commit, I've update the Design constructor to
handle two different ways of calling it:

- legacy: new Design(config, plugins, conditionalPlugins)
- 2022: new Design(config)

I didn't want to call this the `new` way because that doesn't
age well, so I went with `legacy` and `2022` and this is how I
will refer to them from now on.

This is very much a work in progress and while I will create a PR
to keep on eye on the tests, I don't expect to merge this as-is.
2022-08-07 17:29:33 +02:00
joostdecock
785c03d013 chore(core): Working on test coverage 2022-07-23 17:00:48 +02:00
Joost De Cock
ac7b1de00e chore(core): Migrated core from rollup to esbuild 2022-06-12 21:49:34 +02:00
Joost De Cock
0a656ab440 feat(core): Add a default hide() method to options
This adds a default `hide()` method to all pattern options
(that are not a constant) which always returns false.

The idea is that this can/will be used for conditional display
of options based on the user's input.

See Issue #1723 and PR #1798 for background info
2022-02-05 07:11:09 +01:00
Joost De Cock
99ebd4dd06 chore: Removed console.log statement 2020-11-04 20:29:14 +01:00
Joost De Cock
6aa14f0613 🚧 Fixes to the part dependency resolver 2019-05-31 19:18:38 +02:00
Joost De Cock
d3a1ea6554 🔧 Reconfigure packages 2019-05-31 16:09:41 +02:00
Joost De Cock
88622f3514 🚧 Work on core tests 2019-05-31 14:51:59 +02:00
Joost De Cock
476f4b8088 📦 Renamed freesewing pkg to @freesewing/core 2019-04-19 10:09:50 +02:00
Renamed from packages/freesewing/tests/design.test.js (Browse further)