Updates to the template/goal feature (#588)
* Dedupe loot-core webpack configs * Swap to parsing using Peggy * Actually record syntax errors * Refactor template types * Add notifications after applying the templates * “Successfully” * Try a Nearley grammar * Revert "Try a Nearley grammar" This reverts commit 1e11c07b855a492b905f1291c3eadd93f78ac3de. Not going with this approach since the error messages are inscrutable. * switch to PEG.js which has slightly better tooling support * fix parser * Fix error reporting * Adjust grammar for better error messages Also allow spaces between currency symbol and number * Fix grammar * Make #template prefix case insensitive * Trailing commas * Remove patch-package from loot-core
Showing
- packages/desktop-client/src/components/Notifications.js 18 additions, 1 deletionpackages/desktop-client/src/components/Notifications.js
- packages/loot-core/jest.config.js 6 additions, 3 deletionspackages/loot-core/jest.config.js
- packages/loot-core/jest.web.config.js 6 additions, 3 deletionspackages/loot-core/jest.web.config.js
- packages/loot-core/package.json 4 additions, 0 deletionspackages/loot-core/package.json
- packages/loot-core/src/client/actions/queries.js 9 additions, 3 deletionspackages/loot-core/src/client/actions/queries.js
- packages/loot-core/src/server/budget/goal-template.pegjs 52 additions, 0 deletionspackages/loot-core/src/server/budget/goal-template.pegjs
- packages/loot-core/src/server/budget/goaltemplates.js 65 additions, 124 deletionspackages/loot-core/src/server/budget/goaltemplates.js
- packages/loot-core/webpack/webpack.browser.config.js 27 additions, 16 deletionspackages/loot-core/webpack/webpack.browser.config.js
- packages/loot-core/webpack/webpack.desktop.config.js 13 additions, 24 deletionspackages/loot-core/webpack/webpack.desktop.config.js
- yarn.lock 497 additions, 23 deletionsyarn.lock
Loading
Please register or sign in to comment