-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from virginiacommonwealthuniversity/release/1.6.1
Release 1.6.1_2017.03.20
- Loading branch information
Showing
11 changed files
with
82 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = { | ||
dest: 'dist', /* Save the build to the destination directory */ | ||
src: 'src/*.js', /* Build all .js files at the root of the source directory */ | ||
watch: 'src/**/*.js' /* Watch all .js files throughout the source directory */ | ||
dest: 'dist', | ||
src: 'src/*.js', | ||
watch: 'src/**/*.js' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Export | ||
module.exports = function () { | ||
module.exports = () => { | ||
let today = new Date(), | ||
month = leftPad(today.getMonth() + 1), | ||
day = leftPad(today.getDate()), | ||
year = today.getFullYear(); | ||
return year + '.' + month + '.' + day; | ||
function leftPad(int) {return int < 10 ? '0' + int : int;} | ||
return `${year}.${month}.${day}`; | ||
function leftPad(int) { | ||
return int < 10 ? '0' + int : int; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
// Required Modules | ||
let datestamp = require('./datestamp.js'), | ||
header = require('gulp-header'), | ||
pkg = require('../package.json'); | ||
|
||
module.exports = function(version) { | ||
let banner = | ||
module.exports = format => { | ||
let banner, | ||
info = { | ||
date: datestamp() | ||
}; | ||
switch (format) { | ||
case 'exp': | ||
banner = | ||
`/** | ||
* T4Utils 2 | ||
* @author <%= pkg.author %> | ||
* @version <%= pkg.version %>_<%= info.date %> (<%= info.version %>) | ||
* @version <%= pkg.version %>_<%= info.date %> | ||
* @license <%= pkg.license %> | ||
*/ | ||
`, | ||
info = { | ||
version: version, | ||
date: datestamp() | ||
}; | ||
`; | ||
break; | ||
case 'min': | ||
banner = | ||
`/* T4Utils2 <%= pkg.version %>_<%= info.date %> | <%= pkg.license %> | <%= pkg.author %> */ | ||
`; | ||
break; | ||
} | ||
return header(banner, {pkg, info}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "t4-utils-2", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "A Javascript Library of Utility Classes and Extensions for TerminalFour Programmable Layouts", | ||
"main": "dist/8.4/T4Utils.min.js", | ||
"author": "Joel Eisner <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters