@@ -10,8 +10,6 @@ module.exports = function( grunt ) {
1010 var fs = require ( "fs" ) ,
1111 requirejs = require ( "requirejs" ) ,
1212 slimBuildFlags = require ( "./lib/slim-build-flags" ) ,
13- Insight = require ( "insight" ) ,
14- pkg = require ( "../../package.json" ) ,
1513 srcFolder = __dirname + "/../../src/" ,
1614 rdefineEnd = / \} \s * ?\) ; [ ^ } \w ] * $ / ,
1715 read = function ( fileName ) {
@@ -357,47 +355,9 @@ module.exports = function( grunt ) {
357355 ) , [ ] )
358356
359357 . 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+ "" ;
391359
392360 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" ] ) ;
402362 } ) ;
403363} ;
0 commit comments