@@ -10,8 +10,6 @@ module.exports = function( grunt ) {
10
10
var fs = require ( "fs" ) ,
11
11
requirejs = require ( "requirejs" ) ,
12
12
slimBuildFlags = require ( "./lib/slim-build-flags" ) ,
13
- Insight = require ( "insight" ) ,
14
- pkg = require ( "../../package.json" ) ,
15
13
srcFolder = __dirname + "/../../src/" ,
16
14
rdefineEnd = / \} \s * ?\) ; [ ^ } \w ] * $ / ,
17
15
read = function ( fileName ) {
@@ -357,47 +355,9 @@ module.exports = function( grunt ) {
357
355
) , [ ] )
358
356
359
357
. join ( ":" ) :
360
- "" ,
361
- done = this . async ( ) ,
362
- insight = new Insight ( {
363
- trackingCode : "UA-1076265-4" ,
364
- pkg : pkg
365
- } ) ;
366
-
367
- function exec ( trackingAllowed ) {
368
- var tracks = args . length ? args [ 0 ] . split ( "," ) : [ ] ;
369
- var defaultPath = [ "build" , "custom" ] ;
370
-
371
- tracks = tracks . map ( function ( track ) {
372
- return track . replace ( / \/ / g, "+" ) ;
373
- } ) ;
374
-
375
- if ( trackingAllowed ) {
376
-
377
- // Track individuals
378
- tracks . forEach ( function ( module ) {
379
- var path = defaultPath . concat ( [ "individual" ] , module ) ;
380
-
381
- insight . track . apply ( insight , path ) ;
382
- } ) ;
383
-
384
- // Track full command
385
- insight . track . apply ( insight , defaultPath . concat ( [ "full" ] , tracks ) ) ;
386
- }
387
-
388
- grunt . task . run ( [ "build:*:*" + ( modules ? ":" + modules : "" ) , "uglify" , "dist" ] ) ;
389
- done ( ) ;
390
- }
358
+ "" ;
391
359
392
360
grunt . log . writeln ( "Creating custom build...\n" ) ;
393
-
394
- // Ask for permission the first time
395
- if ( insight . optOut === undefined ) {
396
- insight . askPermission ( null , function ( _error , result ) {
397
- exec ( result ) ;
398
- } ) ;
399
- } else {
400
- exec ( ! insight . optOut ) ;
401
- }
361
+ grunt . task . run ( [ "build:*:*" + ( modules ? ":" + modules : "" ) , "uglify" , "dist" ] ) ;
402
362
} ) ;
403
363
} ;
0 commit comments