@@ -23,7 +23,7 @@ gulp.task("clear", function (cb) {
23
23
}
24
24
} ) ;
25
25
26
- gulp . task ( "buildjs " , [ "clear" ] , function ( cb ) {
26
+ gulp . task ( "bundlejs " , [ "clear" ] , function ( cb ) {
27
27
//return gulp.src("js/**/*.js").pipe(concat("world.js")).pipe(gulp.dest("build"));
28
28
//r.js.cmd -o build-config.js
29
29
var p = path . join ( __dirname , "node_modules/requirejs/bin/r.js" ) ;
@@ -38,7 +38,19 @@ gulp.task("buildjs", ["clear"], function (cb) {
38
38
} ) ;
39
39
} ) ;
40
40
41
- gulp . task ( "buildts" , [ "clear" ] , function ( ) {
41
+ gulp . task ( "compilets" , [ "clear" ] , function ( ) {
42
+ var tsResult = gulp . src ( "ts/**/*.ts" ) . pipe ( ts ( {
43
+ "module" : "amd" ,
44
+ "target" : "es5" ,
45
+ "noImplicitAny" : true ,
46
+ "removeComments" : true ,
47
+ "preserveConstEnums" : true
48
+ //"outDir": "buildOutput/amd"
49
+ } ) ) ;
50
+ return tsResult . js . pipe ( gulp . dest ( "buildOutput/amd" ) ) ;
51
+ } ) ;
52
+
53
+ gulp . task ( "bundlets" , [ "clear" ] , function ( ) {
42
54
var tsResult = gulp . src ( "ts/**/*.ts" ) . pipe ( ts ( {
43
55
"module" : "amd" ,
44
56
"target" : "es5" ,
@@ -50,6 +62,6 @@ gulp.task("buildts", ["clear"], function () {
50
62
return tsResult . js . pipe ( uglify ( ) ) . pipe ( gulp . dest ( "." ) ) ;
51
63
} ) ;
52
64
53
- gulp . task ( "build" , [ "buildjs " , "buildts " ] ) ;
65
+ gulp . task ( "build" , [ "bundlejs " , "compilets" , "bundlets "] ) ;
54
66
55
67
gulp . task ( "default" , [ "build" ] ) ;
0 commit comments