Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated some Hugo CLI flags #14

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudcannon/command-builder",
"version": "1.1.1",
"version": "1.1.2",
"description": "A script that builds the script that builds your site",
"main": "src/index.js",
"scripts": {
Expand Down
54 changes: 41 additions & 13 deletions src/options/hugo-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,6 @@ module.exports = {
type: 'boolean',
default: false
},
i18nWarnings: {
name: 'I18n Warnings',
description: 'Print missing translations.',
option: '--i18n-warnings',
type: 'boolean',
default: false
},
ignoreCache: {
name: 'Ignore Cache',
description: 'Ignores the cache directory.',
Expand Down Expand Up @@ -230,17 +223,31 @@ module.exports = {
type: 'boolean',
default: true
},
pathWarnings: {
name: 'Path Warnings',
description: 'Print warnings on duplicate target paths, etc.',
option: '--path-warnings',
printI18nWarnings: {
name: 'Print I18n Warnings',
description: 'Print missing translations.',
option: '--printI18nWarnings',
type: 'boolean',
default: false
},
mem: {
printMemoryUsage: {
name: 'Print Memory',
description: 'Print memory usage to screen at intervals.',
option: '--print-mem',
option: '--printMemoryUsage',
type: 'boolean',
default: false
},
printPathWarnings: {
name: 'Path Warnings',
description: 'Print warnings on duplicate target paths, etc.',
option: '--printPathWarnings',
type: 'boolean',
default: false
},
printUnusedTemplates: {
name: 'Print Unused Templates',
description: 'Print warnings on unused templates.',
option: '--printUnusedTemplates',
type: 'boolean',
default: false
},
Expand Down Expand Up @@ -279,6 +286,27 @@ module.exports = {
option: '--verboseLog',
type: 'boolean',
default: false
},
i18nWarnings: {
name: 'I18n Warnings (Deprecated)',
description: '[Deprecated in Hugo version >=0.93.0] Print missing translations.',
option: '--i18n-warnings',
type: 'boolean',
default: false
},
pathWarnings: {
name: 'Path Warnings (Deprecated)',
description: '[Deprecated in Hugo version >=0.93.0] Print warnings on duplicate target paths, etc.',
option: '--path-warnings',
type: 'boolean',
default: false
},
mem: {
name: 'Print Memory (Deprecated)',
description: '[Deprecated in Hugo version >=0.93.0] Print memory usage to screen at intervals.',
option: '--print-mem',
type: 'boolean',
default: false
}
}
};
Loading