Module: @bldr/songbook-intermediate-files

@bldr/songbook-intermediate-files

This package bundles all objects functions together, which are used to generate the intermediate files for the songbook. It has to be it’s own package, because the dependency better-sqlite3 must be complied and that causes trouble in the electron app.

Classes

FileMonitor
Folder
IntermediateLibrary
IntermediateSong
Library
PianoFilesCountTree
PianoScore
Song
SongMetaData
Sqlite
TextFile

Members

config innerconstant

See /etc/baldr.json.

Methods

buildVueApp () inner

Build the Vue app. All image files must be copied into the Vue working directory.

collectSongs ()object inner

Collect all songs of a song tree by walking through the folder tree structur.

Returns:
Type Description
object An object indexed with the song ID containing the song objects.

exportToMediaServer () inner

Export the intermediate SVG files to the media server. Adjust the info.yml and copy it to the destination folder of the media server.

listFiles (basePath, filter)array inner

List files in a a directory. You have to use a filter to select the files.

Name Type Description
basePath string

A directory

filter string

String to filter, e. g. “.eps”

Returns:
Type Description
array An array of file names.

Type Definitions

An array of song objects.