Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created July 5, 2024 13:05
Show Gist options
  • Save LeaVerou/54e4130e754829942f4a83fc9a893714 to your computer and use it in GitHub Desktop.
Save LeaVerou/54e4130e754829942f4a83fc9a893714 to your computer and use it in GitHub Desktop.
eleventyConfig properties
function getAllProperties(obj){
var allProps = []
, curr = obj
do{
var props = Object.getOwnPropertyNames(curr)
props.forEach(function(prop){
if (allProps.indexOf(prop) === -1)
allProps.push(prop)
})
}while(curr = Object.getPrototypeOf(curr))
return allProps
}
// In config:
console.log(getAllProperties(config).map(k => [k, typeof config[k]].join(": ")).join("\n"));
_uniqueId: number
events: object
benchmarkManager: object
benchmarks: object
directoryAssignments: object
collections: object
precompiledCollections: object
templateFormats: undefined
templateFormatsAdded: object
liquidOptions: object
liquidTags: object
liquidFilters: object
liquidShortcodes: object
liquidPairedShortcodes: object
nunjucksEnvironmentOptions: object
nunjucksPrecompiledTemplates: object
nunjucksFilters: object
nunjucksAsyncFilters: object
nunjucksTags: object
nunjucksGlobals: object
nunjucksShortcodes: object
nunjucksAsyncShortcodes: object
nunjucksPairedShortcodes: object
nunjucksAsyncPairedShortcodes: object
javascriptFunctions: object
markdownHighlighter: object
libraryOverrides: object
passthroughCopies: object
layoutAliases: object
layoutResolution: boolean
linters: object
transforms: object
activeNamespace: string
DateTime: function
dynamicPermalinks: boolean
useGitIgnore: boolean
ignores: object
watchIgnores: object
dataDeepMerge: boolean
extensionMap: object
extensionConflictMap: object
watchJavaScriptDependencies: boolean
additionalWatchTargets: object
serverOptions: object
globalData: object
chokidarConfig: object
watchThrottleWaitTime: number
dataExtensions: object
quietMode: boolean
plugins: object
useTemplateCache: boolean
dataFilterSelectors: object
libraryAmendments: object
serverPassthroughCopyBehavior: string
urlTransforms: object
dataFileSuffixesOverride: boolean
dataFileDirBaseNameOverride: boolean
frontMatterParsingOptions: object
virtualTemplates: object
freezeReservedData: boolean
directories: object
addBundle: function
getBundleManagers: function
htmlTransformer: object
constructor: function
_getUniqueId: function
reset: function
versionCheck: function
on: function
emit: function
_enablePluginExecution: function
isPluginExecution: function
addMarkdownHighlighter: function
addLiquidTag: function
addLiquidFilter: function
addNunjucksAsyncFilter: function
addNunjucksFilter: function
addHandlebarsHelper: function
addFilter: function
addAsyncFilter: function
getFilter: function
addNunjucksTag: function
addGlobalData: function
addNunjucksGlobal: function
addTransform: function
addLinter: function
addLayoutAlias: function
setLayoutResolution: function
enableLayoutResolution: function
getCollections: function
addCollection: function
addPlugin: function
resolvePlugin: function
hasPlugin: function
_getPluginName: function
_executePlugin: function
getNamespacedName: function
namespace: function
addPassthroughCopy: function
_normalizeTemplateFormats: function
setTemplateFormats: function
addTemplateFormats: function
setLibrary: function
amendLibrary: function
setPugOptions: function
setLiquidOptions: function
setNunjucksEnvironmentOptions: function
setNunjucksPrecompiledTemplates: function
setEjsOptions: function
setDynamicPermalinks: function
setUseGitIgnore: function
addShortcode: function
addAsyncShortcode: function
addNunjucksAsyncShortcode: function
addNunjucksShortcode: function
addLiquidShortcode: function
addHandlebarsShortcode: function
addPairedShortcode: function
addPairedAsyncShortcode: function
addPairedNunjucksAsyncShortcode: function
addPairedNunjucksShortcode: function
addPairedLiquidShortcode: function
addPairedHandlebarsShortcode: function
addJavaScriptFunction: function
setDataDeepMerge: function
isDataDeepMergeModified: function
addWatchTarget: function
setWatchJavaScriptDependencies: function
setServerOptions: function
setBrowserSyncConfig: function
setChokidarConfig: function
setWatchThrottleWaitTime: function
setFrontMatterParsingOptions: function
_setQuietModeOverride: function
setQuietMode: function
addExtension: function
addDataExtension: function
setUseTemplateCache: function
setPrecompiledCollections: function
setServerPassthroughCopyBehavior: function
addUrlTransform: function
setDataFileSuffixes: function
setDataFileBaseName: function
addTemplate: function
setInputDirectory: function
setOutputDirectory: function
setDataDirectory: function
setIncludesDirectory: function
setLayoutsDirectory: function
setFreezeReservedData: function
getMergingConfigObject: function
__defineGetter__: function
__defineSetter__: function
hasOwnProperty: function
__lookupGetter__: function
__lookupSetter__: function
isPrototypeOf: function
propertyIsEnumerable: function
toString: function
valueOf: function
__proto__: object
toLocaleString: function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment