Skip to content

Commit 7f81f24

Browse files
committed
gulpfile fixes
1 parent 2a10f56 commit 7f81f24

File tree

1 file changed

+53
-47
lines changed

1 file changed

+53
-47
lines changed

gulpfile.js

Lines changed: 53 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var colors = $.util.colors;
1616
var envenv = $.util.env;
1717
var gulp_typedoc = require("gulp-typedoc");
1818
var typedoc = require('typedoc');
19-
19+
2020

2121

2222
/**
@@ -29,15 +29,15 @@ var typedoc = require('typedoc');
2929
* --debug-brk: Launch debugger and break on 1st line with node-inspector.
3030
* --startServers: Will start servers for midway tests on the test task.
3131
*/
32-
32+
3333
/**
3434
* List the available gulp tasks
3535
*/
3636
gulp.task('help', $.taskListing);
3737
gulp.task('default', ['help']);
3838

3939
gulp.task('build', ['ts-compile']);
40-
gulp.task('build-all', ['ts-compile', 'ts-compile-amd', 'ts-compile-tests', 'ts-compile-amd-tests']);
40+
gulp.task('build-all', ['ts-compile', 'ts-compile-amd']);//, 'ts-compile-tests', 'ts-compile-amd-tests']);
4141

4242
//gulp.task('ts-clean', function(done) {
4343
// clean(config.ts.output, done);
@@ -135,8 +135,8 @@ gulp.task('ts-compile-amd', function (done) {
135135

136136
gulp.task('tests', [], function (done) {
137137
return gulp.src([
138-
'./build/output/node/test/mocha/**/*.js',
139-
], { read: false })
138+
'./build/output/node/test/mocha/**/*.js',
139+
], { read: false })
140140
.pipe(mocha({ reporter: 'spec' }))
141141
.on('error', gutil.log);
142142
});
@@ -173,7 +173,7 @@ gulp.task('serve-dev', function (done) {
173173
});
174174

175175
gulp.task("npm-prep", function () {
176-
return gulp.src([
176+
gulp.src([
177177
"./README.md",
178178
"./LICENSE",
179179
"./COPYRIGHT",
@@ -253,68 +253,74 @@ function log(msg) {
253253
/**
254254
* replace line [reflection.name = '"' + _this.basePath.trim(name) + '"';] with [reflection.name = _this.basePath.trim(name);] to avoid '"' in names
255255
*/
256-
gulp.task("typedocX", function() {
256+
gulp.task("typedocX", function () {
257257
process.chdir("./src/js/");
258-
return gulp
259-
.src(config.typedocFiles)
260-
.pipe(gulp_typedoc({
261-
// TypeScript options (see typescript docs)
262-
module: "commonjs",
263-
target: "es5",
264-
includeDeclarations: true,
265-
266-
// Output options (see typedoc docs)
267-
out: "./build/docs",
268-
//json: "./build/docs/file.json",
269-
270-
// TypeDoc options (see typedoc docs)
271-
name: "EWS JavaScript Api",
272-
theme: "default",
273-
//plugins: ["my", "plugins"],
274-
ignoreCompilerErrors: true,
275-
//version: true,
276-
}));
258+
return gulp
259+
.src(config.typedocFiles)
260+
.pipe(gulp_typedoc({
261+
// TypeScript options (see typescript docs)
262+
module: "commonjs",
263+
target: "es5",
264+
includeDeclarations: true,
265+
266+
// Output options (see typedoc docs)
267+
out: "./build/docs",
268+
//json: "./build/docs/file.json",
269+
270+
// TypeDoc options (see typedoc docs)
271+
name: "EWS JavaScript Api",
272+
theme: "default",
273+
//plugins: ["my", "plugins"],
274+
ignoreCompilerErrors: true,
275+
//version: true,
276+
}));
277277
});
278278

279279

280-
gulp.task("typedocFile", function() {
280+
gulp.task("typedocFile", function () {
281281
var options = {
282-
target:"ES5",
283-
module:"commonjs",
284-
ignoreCompilerErrors:true,
285-
name:"Ews JavaScript Api",
286-
verbose:false,
282+
target: "ES5",
283+
module: "commonjs",
284+
//experimentalDecorators: true,
285+
//emitDecoratorMetadata: true,
286+
//allowUnreachableCode: true,
287+
ignoreCompilerErrors: true,
288+
name: "Ews JavaScript Api",
289+
verbose: false,
287290
//entryPoint:'"Core/ExchangeService"',
288291
exclude: "**/*.d*.ts",
289-
excludeExternals:true,
290-
theme:"default",
291-
mode:"File",
292-
readme:"none"
292+
excludeExternals: true,
293+
theme: "default",
294+
mode: "File",
295+
readme: "none"
293296
}
294297
var app = new typedoc.Application(options);
295298
return app.generateDocs(app.expandInputFiles(['.\\src\\js']), ".\\build\\docs\\FileMode");
296299
//return app.generateDocs(app.expandInputFiles(['.\\src\\js\\Core\\ServiceObjects\\Items']), ".\\build\\doc\\File");
297300

298301
});
299-
gulp.task("typedocModules", function() {
302+
gulp.task("typedocModules", function () {
300303
var options = {
301-
target:"ES5",
302-
module:"commonjs",
303-
ignoreCompilerErrors:true,
304-
name:"Ews JavaScript Api",
305-
verbose:false,
304+
target: "ES5",
305+
module: "commonjs",
306+
//experimentalDecorators: true,
307+
//emitDecoratorMetadata: true,
308+
//allowUnreachableCode: true,
309+
ignoreCompilerErrors: true,
310+
name: "Ews JavaScript Api",
311+
verbose: false,
306312
//entryPoint:'Core/ExchangeService',
307313
exclude: "**/*.d*.ts",
308-
excludeExternals:true,
309-
theme:"default",
310-
mode:"Modules" ,
311-
readme:"none"
314+
excludeExternals: true,
315+
theme: "default",
316+
mode: "Modules",
317+
readme: "none"
312318
}
313319
var app = new typedoc.Application(options);
314320
return app.generateDocs(app.expandInputFiles(['.\\src\\js']), ".\\build\\docs\\ModulesMode");
315321

316322
});
317323

318-
gulp.task("typedoc",["typedocFile","typedocModules"]);
324+
gulp.task("typedoc", ["typedocFile", "typedocModules"]);
319325

320326
module.exports = gulp;

0 commit comments

Comments
 (0)