build(gulp): use strict mode for gulpfile

- a variable `public` was renamed since it is a reserved keyword in the strict mode
This commit is contained in:
Igor Minar 2015-04-25 14:45:08 -07:00
parent 649fd5a7a9
commit 6aea629cd3
1 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,5 @@
'use strict';
var autoprefixer = require('gulp-autoprefixer');
var format = require('gulp-clang-format');
var fork = require('child_process').fork;
@ -376,10 +378,10 @@ gulp.task('docs/bower', function() {
});
function createDocsTasks(public) {
var dgeniPackage = public ? './docs/public-docs-package' : './docs/dgeni-package';
var distDocsPath = public ? 'dist/public_docs' : 'dist/docs';
var taskPrefix = public ? 'public_docs' : 'docs';
function createDocsTasks(publicBuild) {
var dgeniPackage = publicBuild ? './docs/public-docs-package' : './docs/dgeni-package';
var distDocsPath = publicBuild ? 'dist/public_docs' : 'dist/docs';
var taskPrefix = publicBuild ? 'public_docs' : 'docs';
gulp.task(taskPrefix + '/dgeni', function() {
try {