Skip to content

Commit

Permalink
refactor: [TECH-1456] extract rules engine into its own package with …
Browse files Browse the repository at this point in the history
…yarn workspaces (#3093)

* refactor: delete the rules engine folder form capture core

* refactor: change rule engine import

* refactor: extract rules engine src folder

* refactor: generate lib folder

* refactor: generate flow typed definitions

* refactor: add flow typed

* refactor: set up babel with flow and eslint

* refactor: unit tests

* chore: folder structure and yarn lock

* chore: build rules engine with d2 app scripts

* chore: move flow checks at root level and delete flow-typed folder

* chore: fix conflicts with master

* fix: various improvements

* fix: tests

* fix: minor

* chore: ignore build

* chore: watch for changes workspaces

* chore: flow and lint logic

* chore: ignore update

---------

Co-authored-by: Joakim Storløkken Melseth <[email protected]>
  • Loading branch information
simonadomnisoru and JoakimSM authored Feb 10, 2023
1 parent f9469b4 commit 9b1a523
Show file tree
Hide file tree
Showing 111 changed files with 1,499 additions and 81 deletions.
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/src/locales/index.js
/flow-typed/**
**/flow/**
/build/**
**/build/**

#libs
/packages/**
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[ignore]
.*/build/.*
.*/contents/.*

[declarations]
Expand All @@ -13,4 +12,5 @@ src/core_modules/capture-core/flow/
module.name_mapper='^capture-core' ->'<PROJECT_ROOT>/src/core_modules/capture-core'
module.name_mapper='^capture-ui' ->'<PROJECT_ROOT>/src/core_modules/capture-ui'
module.name_mapper='^capture-core-utils' ->'<PROJECT_ROOT>/src/core_modules/capture-core-utils'
module.name_mapper='^@dhis2/rules-engine-javascript' ->'<PROJECT_ROOT>/packages/rules-engine/src'
esproposal.optional_chaining=enable
Loading

0 comments on commit 9b1a523

Please sign in to comment.