diff --git a/changelog.yml b/changelog.yml index 2250f57..e22a206 100644 --- a/changelog.yml +++ b/changelog.yml @@ -1,3 +1,7 @@ +v0.14.7: + date: "2018-02-15" + changes: + - "Fix issue in the header-js:tmp template" v0.14.6: date: "2018-02-09" fixes: diff --git a/lib/tasks/header.js b/lib/tasks/header.js index 27b0edf..2f7f13a 100644 --- a/lib/tasks/header.js +++ b/lib/tasks/header.js @@ -11,13 +11,20 @@ function HeaderTasks(gulp, plugins, config, taskUtils) { * @param done */ const header = function (taskConfig, done) { + console.log('taskConfig', taskConfig); return gulp.src(taskConfig.src) .pipe(taskUtils.debug(taskConfig)) .pipe(plugins.header(taskConfig.opts.template, taskConfig.opts.context)) .on('error', function (err) { console.log('err', err); }) + .on('error', function (err) { + console.log('err', err); + }) .pipe(gulp.dest(taskConfig.dest)) + .on('error', function (err) { + console.log('err', err); + }) .on('end', function () { if (typeof done === 'function') { done(); @@ -30,19 +37,21 @@ function HeaderTasks(gulp, plugins, config, taskUtils) { // Normalize the pkg, in case that some information is missing in the project's package.json file let pkgNormalized = { name: _.get(config.pkg, 'name', ''), - description: _.get(config.pkg, 'description', ''), version: _.get(config.pkg, 'version', ''), + description: _.get(config.pkg, 'description', ''), link: _.get(config.pkg, 'homepage', _.get(config.pkg, 'repository.url', '')), - author: _.get(config.pkg, 'author.name', _.get(config.pkg, 'author', '')), + author: _.get(config.pkg, 'author', _.get(config.pkg, 'author.name', '')), license: _.get(config.pkg, 'license', 'unknown') }; + // console.log('pkgNormalized', pkgNormalized); + let tmpl = [ '/*!\n', '* <%= pkg.name %> - <%= pkg.description %>', '* --', '* @version v<%= pkg.version %>', - '* @link <%= pkg.link', + '* @link <%= pkg.link %>', '* @author <%= pkg.author %>', '* @license <%= pkg.license %>', '*/'].join('\n'); diff --git a/package.json b/package.json index c6b4983..dcda8c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sense-go", - "version": "0.14.6", + "version": "0.14.7", "description": "Validate, package and deploy your Qlik Sense Visualization Extension projects with ease.", "keywords": [ "deployment",