Skip to content

Commit

Permalink
CPD-11736: Updated javascript task to output a versioned js file. (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrodrigues authored Feb 7, 2018
1 parent 5660830 commit d733764
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

v7.11.0
------------------------------
*February 7, 2018*

### Changed
- Javascript task to handle versioning if `usePackageVersion` is set to `true`.


v7.10.0
------------------------------
*February 2, 2018*
*February 7, 2018*

### Changed
- Changed `imagemin` config to maintain svg `viewBox`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@justeat/gulp-build-fozzie",
"version": "7.10.0",
"version": "7.11.0",
"description": "Gulp build tasks for use across Fozzie modules",
"main": "index.js",
"author": "Damian Mullins <[email protected]> (http://www.damianmullins.com)",
Expand Down
5 changes: 5 additions & 0 deletions tasks/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ gulp.task('scripts:bundle', () => {

.pipe(rename(distFile))

// If the package version name is set to `true`, version the js file name with the package number.
.pipe(gulpif(config.js.usePackageVersion,
rename({ suffix: `-${config.packageVersion}` })
))

// output the unminified JS files
.pipe(gulp.dest(pathBuilder.jsDistDir))

Expand Down

0 comments on commit d733764

Please sign in to comment.