mirror of
https://github.com/foambubble/foam.git
synced 2026-04-24 03:01:01 -04:00
* Add Note.definitions and Note.end * Use stringifyMarkdownLinkReferenceDefinition in foam-vscode This commit also applies prettier to previously badly formatted files, so the diff is larger than necessary * Add Note.end and Note.definitions to foam-core tests * Export stringifyMarkdownLinkReferenceDefinition from foam-core * Implement first version of generateLinkReferenceDefinitions janitor method * Add partial tests for generateLinkReferenceDefinitions * Setup Jest * Add remove link definitions test to generateLinkReferences janitor method * Add update link definitions test to generateLinkReferences janitor method * export TextEdit interface * Implement first version of applyText method * Add no change in link definitions test to generateLinkReferences janitor method * Add partial tests for writeFileToDisk method * Implement generateHeading janitor method Co-authored-by: CHIRAG SINGHAL <csinghal208@gmail.com> * Move noteGraph scaffolding to utils * Implement basic foam-cli janitor command * kebab case file names while running janitor * added generate Heading function to janitor * added tests for generateHeading in janitor * PR changes * Add ora spinner * Store endOfLine inside Note * Use note.eol to append line endings * check if given path is valid directory * minor fixes * added glob as dependency * ignore link refrences with no file * added tests files for migration * Solves issue with roam migration * fixed core tests * Replace dashify by github-slugger * used github slagger instead of dashify * Add foam-core as dependency * added foam migrate command * updated foam janitor command * minor fixes * removed extra test files * removed excess white space * Refactor (PR changes) 1. Renamed initializeNoteGraph.ts to initialize-note-graph.ts to be consistent with naming 2. Refactored code in janitor and migrate commands * Mock fs for tests * Use Promise.resolve(null) * Make fs tests no blocking by using promises * Refactor renameFile to use path module * Propagate the error from writeFileToDisk method * Remove posttest command * Run prettier before merge to get a cleaner diff * Fix typo in variable name * yarn lint --fix * Update markdown-provider tests to support new API * Add missing includeExtension argument Co-authored-by: Jani Eväkallio <jani.evakallio@gmail.com> Co-authored-by: chirag-singhal <csinghal208@gmail.com>
6 lines
127 B
JavaScript
6 lines
127 B
JavaScript
module.exports = {
|
|
presets: [
|
|
['@babel/preset-env', {targets: {node: 'current'}}],
|
|
'@babel/preset-typescript',
|
|
],
|
|
}; |