aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimmy Willison <4timmywil@gmail.com>2022-12-20 20:53:12 +0000
committerGitHub <noreply@github.com>2022-12-20 20:53:12 +0000
commit81d5bd17fd2f82779351c101de280f89c22948ac (patch)
tree7ad705d56abb3f37ad2ef1b8e9b9d8394a7baa83
parent8989500e6c695d10806400d20381da4d1ed34a7b (diff)
downloadjquery-81d5bd17fd2f82779351c101de280f89c22948ac.tar.gz
jquery-81d5bd17fd2f82779351c101de280f89c22948ac.zip
Build: remove stale Insight package from custom builds
Close gh-5180
-rw-r--r--build/tasks/build.js44
-rw-r--r--package.json1
2 files changed, 2 insertions, 43 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js
index 71c20a81a..4a31315a5 100644
--- a/build/tasks/build.js
+++ b/build/tasks/build.js
@@ -10,8 +10,6 @@ module.exports = function( grunt ) {
var fs = require( "fs" ),
requirejs = require( "requirejs" ),
slimBuildFlags = require( "./lib/slim-build-flags" ),
- Insight = require( "insight" ),
- pkg = require( "../../package.json" ),
srcFolder = __dirname + "/../../src/",
rdefineEnd = /\}\s*?\);[^}\w]*$/,
read = function( fileName ) {
@@ -354,47 +352,9 @@ module.exports = function( grunt ) {
), [] )
.join( ":" ) :
- "",
- done = this.async(),
- insight = new Insight( {
- trackingCode: "UA-1076265-4",
- pkg: pkg
- } );
-
- function exec( trackingAllowed ) {
- var tracks = args.length ? args[ 0 ].split( "," ) : [];
- var defaultPath = [ "build", "custom" ];
-
- tracks = tracks.map( function( track ) {
- return track.replace( /\//g, "+" );
- } );
-
- if ( trackingAllowed ) {
-
- // Track individuals
- tracks.forEach( function( module ) {
- var path = defaultPath.concat( [ "individual" ], module );
-
- insight.track.apply( insight, path );
- } );
-
- // Track full command
- insight.track.apply( insight, defaultPath.concat( [ "full" ], tracks ) );
- }
-
- grunt.task.run( [ "build:*:*" + ( modules ? ":" + modules : "" ), "uglify", "dist" ] );
- done();
- }
+ "";
grunt.log.writeln( "Creating custom build...\n" );
-
- // Ask for permission the first time
- if ( insight.optOut === undefined ) {
- insight.askPermission( null, function( _error, result ) {
- exec( result );
- } );
- } else {
- exec( !insight.optOut );
- }
+ grunt.task.run( [ "build:*:*" + ( modules ? ":" + modules : "" ), "uglify", "dist" ] );
} );
};
diff --git a/package.json b/package.json
index 4789a689c..0185707b6 100644
--- a/package.json
+++ b/package.json
@@ -44,7 +44,6 @@
"grunt-npmcopy": "0.2.0",
"gzip-js": "0.3.2",
"husky": "4.2.5",
- "insight": "0.10.3",
"jsdom": "19.0.0",
"karma": "^6.3.17",
"karma-browserstack-launcher": "1.6.0",