Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc66d470

Browse files
authored
Build: remove stale Insight package from custom builds
Closegh-5182
1 parent09d988b commitc66d470

File tree

2 files changed

+1
-42
lines changed

2 files changed

+1
-42
lines changed

‎build/tasks/build.js

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ module.exports = function( grunt ) {
1212
constrollup=require("rollup");
1313
constslimBuildFlags=require("./lib/slim-build-flags");
1414
constrollupFileOverrides=require("./lib/rollup-plugin-file-overrides");
15-
constInsight=require("insight");
16-
constpkg=require("../../package.json");
1715
constsrcFolder=path.resolve(`${__dirname}/../../src`);
1816
constread=function(fileName){
1917
returngrunt.file.read(`${srcFolder}/${fileName}`);
@@ -339,46 +337,8 @@ module.exports = function( grunt ) {
339337
constmodules=args.length ?
340338
args[0].split(",").join(":") :
341339
"";
342-
constdone=this.async();
343-
constinsight=newInsight({
344-
trackingCode:"UA-1076265-4",
345-
pkg:pkg
346-
});
347-
348-
functionexec(trackingAllowed){
349-
lettracks=args.length ?args[0].split(",") :[];
350-
constdefaultPath=["build","custom"];
351-
352-
tracks=tracks.map(function(track){
353-
returntrack.replace(/\//g,"+");
354-
});
355-
356-
if(trackingAllowed){
357-
358-
// Track individuals
359-
tracks.forEach(function(module){
360-
constpath=defaultPath.concat(["individual"],module);
361-
362-
insight.track.apply(insight,path);
363-
});
364-
365-
// Track full command
366-
insight.track.apply(insight,defaultPath.concat(["full"],tracks));
367-
}
368-
369-
grunt.task.run(["build:*:*"+(modules ?":"+modules :""),"uglify","dist"]);
370-
done();
371-
}
372340

373341
grunt.log.writeln("Creating custom build...\n");
374-
375-
// Ask for permission the first time
376-
if(insight.optOut===undefined){
377-
insight.askPermission(null,function(_error,result){
378-
exec(result);
379-
});
380-
}else{
381-
exec(!insight.optOut);
382-
}
342+
grunt.task.run(["build:*:*"+(modules ?":"+modules :""),"uglify","dist"]);
383343
});
384344
};

‎package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"grunt-npmcopy":"0.2.0",
4747
"gzip-js":"0.3.2",
4848
"husky":"4.2.5",
49-
"insight":"0.10.3",
5049
"jsdom":"19.0.0",
5150
"karma":"^6.3.17",
5251
"karma-browserstack-launcher":"1.6.0",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp