Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// generate watch task
if (this.watchableRecipes().length < 1) {
this.debug(`No watchable recipes for task: ${coloredTask}`)
return
}
this.debug(`Registering task: ${coloredTask}`)
// https://github.com/alienfast/gulp-pipeline/issues/29
// aggregate all globs into an array for a single watch fn call
let globs = []
for (let recipe of this.watchableRecipes()) {
globs = globs.concat(this.watchToGlobs(recipe))
}
globs = unique(globs)
this.debugDump('globs', globs)
let watchFn = () => {
this.log(`${coloredTask} watching ${globs.join(', ')}`)
let watcher = this.gulp.watch(globs, {}, (done) => {
// set this global so that BasGulp#notifyError can make sure not to exit if we are watching
this.gulp.watching = true
this.debug(`setting gulp.watching: ${this.gulp.watching}`)
let result = this.taskFn(done)
return result
})
// watcher.on('error', (error) => {
// this.notifyError(`${coloredTask} ${error}`)
// })
// generate watch task
if (this.watchableRecipes().length < 1) {
this.debug(`No watchable recipes for task: ${coloredTask}`)
return
}
this.debug(`Registering task: ${coloredTask}`)
// https://github.com/alienfast/gulp-pipeline/issues/29
// aggregate all globs into an array for a single watch fn call
let globs = []
for (let recipe of this.watchableRecipes()) {
globs = globs.concat(this.watchToGlobs(recipe))
}
globs = unique(globs)
this.debugDump('globs', globs)
let watchFn = () => {
this.log(`${coloredTask} watching ${globs.join(', ')}`)
let watcher = this.gulp.watch(globs, {}, (done) => {
// set this global so that BasGulp#notifyError can make sure not to exit if we are watching
this.gulp.watching = true
this.debug(`setting gulp.watching: ${this.gulp.watching}`)
let result = this.taskFn(done)
return result
})
// watcher.on('error', (error) => {
// this.notifyError(`${coloredTask} ${error}`)
// })
get taxCodes () {
const taxableItems = this.taxableAdjustments.concat(this.taxableSubscriptions);
return uniq(taxableItems.map(item => item.taxCode));
}
id="new-build-commit-suggestions"
values={unique(commitSuggestions)}
/>
this.buildCommitTextField = tf}
/>
this.buildBranchTextField = tf}
/>
get subscriptionPlanCodes () {
return uniq(this.validSubscriptions.map(s => s.items.plan.code));
}
<input value="{window._csrf.token}" name="{window._csrf.param}" type="hidden">
<div>
<h1>New Build</h1>
this.buildMessageTextField = tf}
/>
this.buildCommitTextField = tf}
/>
</div>