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:
parent
649fd5a7a9
commit
6aea629cd3
10
gulpfile.js
10
gulpfile.js
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue