create-amp-page
Version:
Full fledged static side generator composed out of extendable gulp tasks, optimized for - but not limited to - AMP.
17 lines (16 loc) • 555 B
JavaScript
export const getOptions = function getOptions(
{
// setting defaults and so on for some easier usages
watchFolders = {},
cleanFolders = [],
watchOptions = {ignoreInitial: false},
serveStaticMiddleware = [],
...options
},
) {
watchFolders = {...watchFolders}
watchFolders.sass = watchFolders.sass || []
watchFolders.twig = watchFolders.twig || []
watchFolders.media = watchFolders.media || []
return {watchFolders, cleanFolders, watchOptions, serveStaticMiddleware, ...options}
}