Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(({ fileName }) => log.notice(`Generated new page [${fileName}]`))
.catch(log.error)
function deployWithoutPrompt(config) {
log.notice('Deploy command run with "--yes", skipping confirmation')
return deploy(config)
}
static list = () => {
const { current, themes } = getThemes()
const { text, duplicates } = getThemeList(themes, current)
log.notice('The following themes are available:', '\n', text)
if (duplicates.length) {
log.notice('Duplicate themes have been found in both the [node_modules] and [themes] directory')
log.notice(
'Resolve this issue by either removing the duplicate directory from [themes] or by running [npm rm ]'
)
}
}
.then(() => !force && log.notice('Updated theme to', name))
.catch(log.error)
.then(() => log.notice(`Created new project [${this.name}]`))
.catch(log.error)
const handler = yargs => {
const build = (String(yargs.argv._[1]) || 'web').toLowerCase()
if (build !== 'web' && build !== 'reader') return fail('', '', yargs)
log.notice(`Serving [b-ber-${build}]`)
return serve({ build })
}
static list = () => {
const { current, themes } = getThemes()
const { text, duplicates } = getThemeList(themes, current)
log.notice('The following themes are available:', '\n', text)
if (duplicates.length) {
log.notice('Duplicate themes have been found in both the [node_modules] and [themes] directory')
log.notice(
'Resolve this issue by either removing the duplicate directory from [themes] or by running [npm rm ]'
)
}
}
static list = () => {
const { current, themes } = getThemes()
const { text, duplicates } = getThemeList(themes, current)
log.notice('The following themes are available:', '\n', text)
if (duplicates.length) {
log.notice('Duplicate themes have been found in both the [node_modules] and [themes] directory')
log.notice(
'Resolve this issue by either removing the duplicate directory from [themes] or by running [npm rm ]'
)
}
}