mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
refactor: organize worker namespaces and lint them
Organize them to live under src/main/frontend/worker and add a lint to ensure
that common code with frontend is only under frontend/common/.
Add a linter to ensure that worker doesn't depend on frontend.
Motivated to fix after recent worker breakage fixed by
75463c4df4
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
{:entries [frontend.extensions.tldraw]
|
||||
:depends-on #{:main}}
|
||||
:db-worker
|
||||
{:init-fn frontend.db-worker/init
|
||||
{:init-fn frontend.worker.db-worker/init
|
||||
:depends-on #{:shared}
|
||||
:web-worker true}}
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
{:entries [frontend.extensions.tldraw]
|
||||
:depends-on #{:main}}
|
||||
:db-worker
|
||||
{:init-fn frontend.db-worker/init
|
||||
{:init-fn frontend.worker.db-worker/init
|
||||
:depends-on #{:shared}
|
||||
:web-worker true}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user