Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

35 lines
815 B

/*!
* multilang-extract-comments <https://github.com/nknapp/multilang-extract-comments>
*
* Copyright (c) 2015 Nils Knappmeier.
* Released under the MIT license.
*/
var verb = require('verb')
verb.helper('extract', require('./'))
verb.helper('extractHbs', function (string) {
return require('./')(string, {
filename: 'filename.hbs'
})
})
verb.helper('extractCustom', function (string) {
return require('./')(string, {
pattern: {
name: 'Powershell',
nameMatchers: ['.ps1'],
singleLineComment: [{ start: '#' }],
multiLineComment: [{ start: '<#', middle: '', end: '#>' }]
}
})
})
verb.helper('stringifyPretty', function (obj) {
return JSON.stringify(obj, undefined, 2)
})
verb.task('default', function () {
verb.src(['.verb.md'])
.pipe(verb.dest('./'))
})