QuantumJS
Edit Page
quantum-core changelog
What has changed in quantum-core for each release.
Initial public release of quantum-core.
FileInfo
Added
An object which holds filename information. Chances are this object is something you'll never have to use, unless writing a file transform which needs to modify the output filename.
Every File instance has a info property, which is one of these guys.
File
Added
An object which represents a html page, css file or javascript file (or any other file type that a transform decides to export)
Selection
Added
An object that wraps an entity. This object has useful methods for extracting information from, and updating entities.
Do not create one of these directly; instead use quantum.select()
api
Added
This object exposes the functionality that the CLI provides as an api that can be called from within your own code.
The running the build() function results in the same thing as running quantum build and the watch() function builds the site and watches for changes, in the same way that quantum watch does.
api
buildconfigObjectPromise
Added
Build a quantum site using the config passed in.
api
watchconfigObject
Added
Build a quantum site and watch for changes using the config passed in.
This function does not return anything as it watches files for changes and must be killed by ending the current process.
parseinputStringEntity
Added
A function for parsing string containing quantum markup into JavaScript objects. The parser always returns a single entity with no type, called the root entity. The contents property of the root entity contains the content parsed content.
readfilenameStringoptionsObjectPromise[Entity]
Added
Reads and parses the contents of a file
readAsFilefileString / FileInfooptionsObjectPromise[File]
Added
Reads and parses the contents of a file
cloneentityEntityObject
Added
Creates a deep clone of some AST:
stringifyentityEntityString
Added
Converts AST back into quantum markdown. Does the opposite to parse
Added
A file transform that converts a file with AST content into one with a JSON string as its content. This is mainly useful for debugging.
selectentityEntitySelection
Added
A helper api for extracting values from parsed AST. Pass in parsed AST, and use the methods on Selection to make working with the AST easier.
writefileFilePromise[File]
Added
Writes a File to disk.
Added
Writes an array of File to disk.
watchspecsString / Object / ArrayhandlerFunctionoptionsObjectPromise[Object]
Added
Watches a collection of files for changes. This also detects changes when inlined files are changed.
watcherspecsString / Object / ArrayoptionsObjectWatcher
Added
Creates a new Watcher instance that watches files for changes.
WatcherextendsEventEmitter
Added
An instance of one of these is returned by quantum.watcher. It provides a way to stop watching the files. Do not create one of these directly; instead use the quantum.watcher function.
1.0.0
Version 1.0.0 is an unsupported version of the library.