0.0.5 • Published 3 years ago
faunadna v0.0.5
Goals
File based management
- Create a
faunadirectory at the root of your project. - Create a
functionsdirectory inside of that. - Any file inside of functions can export functions.
CommonJS
module.exports = {
hello: q.Query(q.Lambda("_", "hello")),
moreOptions: {
name: 'goodbye',
body: q.Lambda("_", "goodbye")
}
}ESM
export const hello = q.Query(q.Lambda("_", "hello"));
export const moreOptions = {
name: 'goodbye',
body: q.Lambda("_", "goodbye")
}Command Line Arguments
You can also choose to pass in arguments to specific directories or files
--path: The path to the directory or single file where functions are exported.--force: Force overwrite functions