gulp.task('default', ['help']);
/**
+ * @ngdoc function
+ *
+ * @description
* vet (evaluate) the code and create coverage report.
*
- * @return {stream}
+ * @returns {stream}
*/
gulp.task('vet', function() {
});
/**
+ * @ngdoc function
+ *
+ * @description
* wire up bower dependencies and inject files in index.html
*
- * @return {Stream}
+ * @returns {Stream}
*/
gulp.task('wiredep', function() {
});
/**
+ * @ngdoc function
+ *
+ * @description
* wire up bower dependencies and inject files in karma.conf.js
*
- * @return {Stream}
+ * @returns {Stream}
*/
gulp.task('wiredepkarma', function() {
});
/**
+ * @ngdoc function
+ *
+ * @description
* Runs HTTP server.
*/
gulp.task('server', ['wiredep'], function(done) {
});
/**
+ * @ngdoc function
+ *
+ * @description
* Runs specs once and exit.
*
- * @return {Stream}
+ * @returns {Stream}
*/
gulp.task('test', ['vet', 'wiredepkarma'], function(done) {
});
/**
+ * @ngdoc function
+ *
+ * @description
* Run specs and wait. Watch for file changes and re-run tests on each change
*/
gulp.task('autotest', ['wiredepkarma'], function(done) {
});
/**
+ * @ngdoc function
+ *
+ * @description
* Builds application for production.
*
- * @return {stream} The stream.
+ * @returns {stream} The stream.
*/
gulp.task('build', ['wiredep', 'test', 'templatecache'], function() {
.pipe(gulp.dest(config.build.directory));
/**
+ * @ngdoc function
+ *
+ * @description
* Format and return the header for files
*
- * @return {stream} The stream.
+ * @returns {stream} The stream.
*/
function getHeader() {
var pkg = require('./package.json');
});
/**
+ * @ngdoc function
+ *
+ * @description
* Cleans up files in distribution directory.
*
- * @return {undefined}
+ * @returns {undefined}
*/
gulp.task('clean', function(done) {
});
/**
+ * @ngdoc function
+ *
+ * @description
* Creates $templateCache from html templates
*
- * @return {stream}
+ * @returns {stream}
*/
gulp.task('templatecache', ['clean'], function() {
});
/**
+ * @ngdoc function
+ *
+ * @description
* Inject files in a sorted sequence at a specified inject label.
*
* @param {Array|string} source Source files (glob patterns)
* @param {string=} label The label name to be used by gulp-inject.
- * @return {stream} The stream.
+ * @returns {stream} The stream.
*/
function inject(source, label) {
var options = {relative: false};
}
/**
+ * @ngdoc function
+ *
+ * @description
* Runs HTTP server.
*
* @param {string=} [environment='development'] development or production environments.
- * @return {undefined}
+ * @returns {undefined}
*/
function server(environment) {
var nodeOptions = {
}
/**
+ * @ngdoc function
+ *
+ * @description
* Tests runner, karma launcher.
*
* @param {boolean} singleRun True means run once and end (continuous integration), or keep running (development)
* @param {function} done Callback to fire when karma is done
- * @return {undefined}
+ * @returns {undefined}
*/
function startTests(singleRun, done) {
var excludeFiles = [];
}
}
+/**
+ * @ngdoc function
+ *
+ * @description
+ * Log messages to CLI.
+ *
+ * @param {string} message The message to be shown.
+ * @returns {undefined}
+ */
function log(message) {
plugins.util.log(plugins.util.colors.blue(message));
}
+/**
+ * @ngdoc function
+ *
+ * @description
+ * Format data generated by the gulp-bytediff plugin.
+ *
+ * @param {Object} data The data created by gulp-bytediff plugin.
+ * @returns {string}
+ */
function byteDiffFormat(data) {
var difference = (data.savings > 0) ? ' smaller.' : ' larger.';
return data.fileName + ' is ' + data.percent + '%' + difference;