Commit Graph

30 Commits (9652846be5c92840449bca0e7eb332820b2a09f1)

Author SHA1 Message Date
Gabriel Horner 2685cd1325 Fix bug with certain plugins and misc cleanup
- Plugins that used effects weren't loading correctly e.g.
  logseq-power-plugin
- Cleaned up translation, docs and some fn naming
2022-10-17 10:31:07 -04:00
Gabriel Horner 784ad7cce3 Add unit tests for create-if-not-exists and misc test improvements
- Added unit test as it is used by several handlers
- Fixed test suite failing from last commit now that a test fs is used
- Fixed test stat implementation
- Extracted out Plugin schema to make usage of it less impl dependent
- Made test.helper alias consistent
- Made async testing consistent for export-test
2022-10-17 10:13:27 -04:00
Gabriel Horner c8cda90373 Fix plugin install bugs and add plugin-config tests
- Add validation for plugins.edn with malli
- Add bb task using malli schema
- Add first async test that interacts with frontend.fs
- Add test helpers to make future async testing easier
2022-10-17 10:13:27 -04:00
Gabriel Horner 1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Gabriel Horner a368cab5e4 Add ns linter to deps libs and then add+update ns docstrings 2022-09-21 10:17:15 +08:00
Konstantinos Kaloutas fc7141518d feat: accessibility guidelines 2022-08-26 11:52:23 +08:00
Gabriel Horner f26681c2ee Skip intermittent failing test and add more testing advice 2022-07-25 14:17:46 -04:00
Gabriel Horner 981b1ad69e Fix autorun tests doc, close #5967 2022-07-19 21:04:02 -04:00
Gabriel Horner f39f26c8d3 Improve and update lint documentation 2022-07-07 09:34:08 -04:00
Gabriel Horner ee9f390761 Localize bb-tasks for deps
Deps need to be independent to not introduce testing bugs.
These bb tasks are good candidates to move into bb-tasks gitlib
2022-06-10 15:39:11 +08:00
Gabriel Horner 17d2462343 Move rules into db dep as it's useful for external apps
- rules is already used by logseq-query and will be useful for
  nbb-logseq
- Updated db jobs to run in deps/db by default. Less typing but
  more importantly discourages independent libraries from depending on
  external scripts.
- Moved lint-rules task into db since it is db specific now
- Also remove nbb-logseq from top-level as all nbb compatibility is in
  deps.
2022-06-10 15:39:11 +08:00
Gabriel Horner 29f73549aa Moved nbb tasks to another repo
They are useful outside of logseq development and don't need to be
embedded in the Logseq app
2022-06-01 01:17:29 -04:00
Gabriel Horner b142327491 Finish up logseq.graph-parser
- Parser now parses all graph files like the app does, not just pages and journals.
  This required extracting another fn from repo-handler
- Add and tweak CI steps that are specific to graph-parser. All
  namespaces in this library are checked for nbb compatibility
- Cleaned up parser cli API so only one fn is needed for scripts
- Tests were updated to match new parsing behavior
- large_vars.clj can run with a smaller max-line-count after only refactoring two fns
- Add docs
2022-05-27 00:54:30 -04:00
Gabriel Horner 65804b4183 Split out text ns to graph-parser 2022-05-10 20:22:48 -04:00
Gabriel Horner 823b8ec39e Add basic docs explaining nbb compatibility 2022-05-04 12:27:52 -04:00
Gabriel Horner 0ccbe4d046
Enhance: validate local storage (#4784)
* Validate localStorage with spec

This will help get at the source of errors like #4706 quicker

* Fix settings bugs

Close #4679 as shortcut tooltip setting is now visible.
No need to js/alert when a setting is changed. Probably leftover bugging

* Add docs and example of reusing specs in bb task

Co-authored-by: Andelf <andelf@gmail.com>
2022-04-01 15:46:52 +08:00
Gabriel Horner 320fbea9b9 Document datalog linter introduced in #4503 2022-03-15 12:30:41 +08:00
Gabriel Horner 8d40c4667b Node test runner improvements
- Print stacktrace when exception occurs!
- No longer depend on old test runner
- AND multiple test selections
- Add -v for compatibility with old test runner
2022-03-15 12:30:41 +08:00
Gabriel Horner 669a56911e Document logging setup and bump to latest devtools 2022-03-03 13:31:58 -05:00
Gabriel Horner 50e5764369 Fix --exclude option
Subtle annoying bug with symbol. Also allos multiple exclude options
2022-02-28 16:27:22 +08:00
Gabriel Horner 35d2023e24 Add shadow test runner that provides most test-runner like options 2022-02-24 22:45:52 +08:00
Gabriel Horner e353738c67 Improve develop docs based on onboarding with Jakob 2022-02-24 00:32:30 +08:00
Gabriel Horner 163d31005f Add testing library and document workflow
Also moved testing instruction to dev-practices as it didn't make sense
to have them split
2022-02-24 00:32:30 +08:00
Gabriel Horner a3ff4442e8 Add large vars linter to dev practices 2022-02-07 10:18:43 -05:00
Gabriel Horner 821ebcb888 Add docs 2022-01-27 15:26:14 -05:00
Gabriel Horner 2f86f6859e Remove unnecessary additional target thanks to cmdline option 2022-01-22 00:01:11 +08:00
Gabriel Horner 558784a8bd Add shadow build for auto testing 2022-01-22 00:01:11 +08:00
Gabriel Horner 2b46cc4938 Fix kondo invocation and output progress 2022-01-16 12:42:34 +08:00
Gabriel Horner 8b0026f34b Tweak lint docs 2022-01-16 12:42:34 +08:00
Gabriel Horner 38d9cb7fbd Add dev practices doc to explain current state of linting 2022-01-12 17:00:11 -05:00