-
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 #7 from virginiacommonwealthuniversity/release/1.6.0
Release 1.6.0
- Loading branch information
Showing
16 changed files
with
236 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"globals": { | ||
"com": true, | ||
"content": true, | ||
"ContentHierarchy": true, | ||
"ContentManager": true, | ||
"currentSection": true, | ||
"dbStatement": true, | ||
"importClass": true, | ||
"importPackage": true, | ||
"isPreview": true, | ||
"java": true, | ||
"language": true, | ||
"MediaManager": true, | ||
"MediaUtils": true, | ||
"MessageDigest": true, | ||
"PathBuilder": true, | ||
"publishCache": true, | ||
"section": true, | ||
"T4Utils": true, | ||
"TreeTraversalUtils": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
}, | ||
"rules": { | ||
"indent": ["warn", 4], | ||
"linebreak-style": ["warn", "unix"], | ||
"quotes": ["warn", "single"], | ||
"semi": ["warn", "always"], | ||
"valid-jsdoc": ["error"] | ||
} | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"-W060": false // disable: document.write can be a form of eval. | ||
"-W060": false | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
// Gulp Config | ||
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 */ | ||
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 */ | ||
}; |
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,9 @@ | ||
// Export | ||
module.exports = function () { | ||
var today = new Date(), | ||
let today = new Date(), | ||
month = leftPad(today.getMonth() + 1), | ||
day = leftPad(today.getDate()), | ||
year = today.getFullYear(); | ||
function leftPad(int) {return int < 10 ? '0' + int : int;} | ||
day = leftPad(today.getDate()), | ||
year = today.getFullYear(); | ||
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,25 +1,21 @@ | ||
// Required Modules | ||
var datestamp = require('./datestamp.js'), | ||
header = require('gulp-header'), | ||
pkg = require('../package.json'); | ||
let datestamp = require('./datestamp.js'), | ||
header = require('gulp-header'), | ||
pkg = require('../package.json'); | ||
|
||
// Export | ||
module.exports = function(version) { | ||
// Define banner structure | ||
var banner = [ | ||
'/**', | ||
' * T4Utils 2', | ||
' * @author <%= pkg.author %>', | ||
' * @version <%= pkg.version %>_<%= info.date %> (<%= info.version %>)', | ||
' * @license <%= pkg.license %>', | ||
' */', | ||
'\n' | ||
].join('\n'); | ||
// Define the build information | ||
var info = { | ||
version: version, | ||
date: datestamp() | ||
}; | ||
// Return | ||
return header(banner, { pkg:pkg, info:info }); | ||
let banner = | ||
`/** | ||
* T4Utils 2 | ||
* @author <%= pkg.author %> | ||
* @version <%= pkg.version %>_<%= info.date %> (<%= info.version %>) | ||
* @license <%= pkg.license %> | ||
*/ | ||
`, | ||
info = { | ||
version: version, | ||
date: datestamp() | ||
}; | ||
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.5.1", | ||
"version": "1.6.0", | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
// Dependencies ---------------------------------------------------------------- | ||
/* Dependencies */ | ||
|
||
// Get Section Info (getSectionInfo) | ||
importClass(com.terminalfour.publish.PathBuilder); /* Path builder package */ | ||
importClass(com.terminalfour.publish.PathBuilder); // Path builder package | ||
|
||
// Java | ||
importPackage(java.lang); /* Java language package */ | ||
importPackage(java.lang); // Java language package | ||
|
||
// Media (media) | ||
importPackage(com.terminalfour.media); /* Media package */ | ||
importPackage(com.terminalfour.media.utils); /* Media utilities package */ | ||
importPackage(com.terminalfour.media); // Media package | ||
importPackage(com.terminalfour.media.utils); // Media utilities package | ||
|
||
// Ordinal Indicators (ordinalIndicators) | ||
importClass(com.terminalfour.sitemanager.cache.utils.CSHelper); /* CS helper class */ | ||
importClass(com.terminalfour.sitemanager.cache.CachedContent); /* Cached content class */ | ||
importPackage(com.terminalfour.sitemanager); /* Site manager package */ | ||
importPackage(com.terminalfour.content); /* Content package */ | ||
importClass(com.terminalfour.sitemanager.cache.utils.CSHelper); // CS helper class | ||
importClass(com.terminalfour.sitemanager.cache.CachedContent); // Cached content class | ||
importPackage(com.terminalfour.sitemanager); // Site manager package | ||
importPackage(com.terminalfour.content); // Content package | ||
|
||
// Publish Cache (publishCache) | ||
importClass(com.terminalfour.publish.utils.TreeTraversalUtils); // Tree traversal utility class | ||
|
||
// Security (security) | ||
importPackage(java.security); /* Java security package */ | ||
importPackage(java.security); // Java security package |
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
Oops, something went wrong.