@@ -7,6 +7,7 @@ var concat = require('gulp-concat');
7
7
var header = require ( 'gulp-header' ) ;
8
8
var jasmine = require ( 'gulp-jasmine' ) ;
9
9
var uglify = require ( 'gulp-uglify' ) ;
10
+ var gutil = require ( 'gulp-util' ) ;
10
11
var pkg = require ( './package.json' ) ;
11
12
12
13
@@ -41,7 +42,7 @@ var banner = ['/**',
41
42
// -- TASKS --------------------------------------------------------------------
42
43
gulp . task ( 'modules' , function ( ) {
43
44
gulp . src ( path . modules )
44
- . pipe ( coffee ( ) )
45
+ . pipe ( coffee ( ) . on ( 'error' , gutil . log ) )
45
46
. pipe ( gulp . dest ( path . temp ) )
46
47
. pipe ( uglify ( { mangle : true } ) )
47
48
. pipe ( header ( banner , { pkg : pkg } ) )
@@ -51,7 +52,17 @@ gulp.task('modules', function() {
51
52
gulp . task ( 'gestures' , function ( ) {
52
53
gulp . src ( path . gestures )
53
54
. pipe ( concat ( 'quo.gestures.coffee' ) )
54
- . pipe ( coffee ( ) )
55
+ . pipe ( coffee ( ) . on ( 'error' , gutil . log ) )
56
+ . pipe ( gulp . dest ( path . temp ) )
57
+ . pipe ( uglify ( { mangle : true } ) )
58
+ . pipe ( header ( banner , { pkg : pkg } ) )
59
+ . pipe ( gulp . dest ( path . bower ) )
60
+ } ) ;
61
+
62
+ gulp . task ( 'standalone' , function ( ) {
63
+ gulp . src ( path . modules . concat ( path . gestures ) )
64
+ . pipe ( concat ( 'quo.standalone.coffee' ) )
65
+ . pipe ( coffee ( ) . on ( 'error' , gutil . log ) )
55
66
. pipe ( gulp . dest ( path . temp ) )
56
67
. pipe ( uglify ( { mangle : true } ) )
57
68
. pipe ( header ( banner , { pkg : pkg } ) )
@@ -61,7 +72,7 @@ gulp.task('gestures', function() {
61
72
gulp . task ( 'spec' , function ( ) {
62
73
gulp . src ( path . spec )
63
74
. pipe ( concat ( 'spec.coffee' ) )
64
- . pipe ( coffee ( ) )
75
+ . pipe ( coffee ( ) . on ( 'error' , gutil . log ) )
65
76
. pipe ( gulp . dest ( path . temp ) )
66
77
67
78
var spec = [
@@ -73,11 +84,11 @@ gulp.task('spec', function() {
73
84
} ) ;
74
85
75
86
gulp . task ( 'init' , function ( ) {
76
- gulp . run ( [ 'modules' , 'gestures' , 'spec' ] ) ;
87
+ gulp . run ( [ 'modules' , 'gestures' , 'standalone' , ' spec'] ) ;
77
88
} ) ;
78
89
79
90
gulp . task ( 'default' , function ( ) {
80
- gulp . watch ( path . modules , [ 'source ' , 'spec' ] ) ;
81
- gulp . watch ( path . gestures , [ 'gestures' , 'spec' ] ) ;
91
+ gulp . watch ( path . modules , [ 'modules' , 'standalone ', 'spec' ] ) ;
92
+ gulp . watch ( path . gestures , [ 'gestures' , 'standalone' , ' spec'] ) ;
82
93
gulp . watch ( path . spec , [ 'spec' ] ) ;
83
94
} ) ;
0 commit comments