diff --git a/AISKU/Tests/es6-module-type-check/package.json b/AISKU/Tests/es6-module-type-check/package.json index fd101847e..dd40b8ca4 100644 --- a/AISKU/Tests/es6-module-type-check/package.json +++ b/AISKU/Tests/es6-module-type-check/package.json @@ -10,7 +10,7 @@ "module": "dist-es5/applicationinsights-test-module-type-check.js", "types": "types/applicationinsights-test-module-type-check.d.ts", "scripts": { - "clean": "grunt clean", + "clean": "git clean -xdf", "build": "tsc --project tsconfig.json --noEmit", "rebuild": "npm run build", "test": "", diff --git a/AISKU/package.json b/AISKU/package.json index 64ec5d374..c241dfb11 100644 --- a/AISKU/package.json +++ b/AISKU/package.json @@ -13,7 +13,7 @@ "url": "https://github.com/microsoft/ApplicationInsights-JS" }, "scripts": { - "clean": "rm -rfv browser types build dist dist-es5", + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt aisku", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/AISKULight/package.json b/AISKULight/package.json index cf9ee2956..262fe3f26 100644 --- a/AISKULight/package.json +++ b/AISKULight/package.json @@ -9,6 +9,7 @@ "types": "types/applicationinsights-web-basic.d.ts", "sideEffects": false, "scripts": { + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt aiskulite", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/channels/applicationinsights-channel-js/package.json b/channels/applicationinsights-channel-js/package.json index dc35f192e..a947f59e5 100644 --- a/channels/applicationinsights-channel-js/package.json +++ b/channels/applicationinsights-channel-js/package.json @@ -10,7 +10,7 @@ "sideEffects": false, "repository": "github:Microsoft/applicationinsights-js", "scripts": { - "clean": "rm -rf browser build dist dist-es5 types", + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt aichannel", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/channels/tee-channel-js/package.json b/channels/tee-channel-js/package.json index a2a38ce31..6e2cede0b 100644 --- a/channels/tee-channel-js/package.json +++ b/channels/tee-channel-js/package.json @@ -10,7 +10,7 @@ "sideEffects": false, "repository": "github:Microsoft/applicationinsights-js", "scripts": { - "clean": "rm -rf browser build dist dist-es5 types", + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt teechannel", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/common/Tests/Framework/package.json b/common/Tests/Framework/package.json index 2a95e8204..4bce6ead3 100644 --- a/common/Tests/Framework/package.json +++ b/common/Tests/Framework/package.json @@ -16,7 +16,7 @@ "module": "dist-es5/ai-test-framework.js", "types": "types/ai-test-framework.d.ts", "scripts": { - "clean": "grunt clean", + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser", "build:esm": "grunt tst-framework", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/common/config/rush/command-line.json b/common/config/rush/command-line.json index 463c4f0ce..0fbbbf87b 100644 --- a/common/config/rush/command-line.json +++ b/common/config/rush/command-line.json @@ -81,6 +81,16 @@ "enableParallelism": true, "ignoreMissingScript": true, "allowWarningsInSuccessfulBuild": true + }, + { + "commandKind": "bulk", + "name": "clean", + "summary": "Run all clean tasks to clean each project", + "description": "Run all clean tasks to clean each project", + "safeForSimultaneousRushProcesses": true, + "enableParallelism": true, + "ignoreMissingScript": true, + "allowWarningsInSuccessfulBuild": true } ] } \ No newline at end of file diff --git a/common/config/rush/npm-shrinkwrap.json b/common/config/rush/npm-shrinkwrap.json index a34371eee..15650f408 100644 --- a/common/config/rush/npm-shrinkwrap.json +++ b/common/config/rush/npm-shrinkwrap.json @@ -2946,19 +2946,6 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", @@ -8175,12 +8162,6 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "optional": true - }, "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", diff --git a/examples/AISKU/package.json b/examples/AISKU/package.json index 0e60a82e7..5949d6ea7 100644 --- a/examples/AISKU/package.json +++ b/examples/AISKU/package.json @@ -15,7 +15,7 @@ "example" ], "scripts": { - "clean": "grunt clean", + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser", "build:esm": "grunt example-aisku", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/examples/dependency/package.json b/examples/dependency/package.json index 61f994447..0f8e0fbb4 100644 --- a/examples/dependency/package.json +++ b/examples/dependency/package.json @@ -15,7 +15,7 @@ "example" ], "scripts": { - "clean": "grunt clean", + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser", "build:esm": "grunt example-dependency", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/examples/shared-worker/package.json b/examples/shared-worker/package.json index 216a7205d..17d4cbb32 100644 --- a/examples/shared-worker/package.json +++ b/examples/shared-worker/package.json @@ -17,7 +17,7 @@ "module": "dist-es5/applicationinsights-example-shared-worker.js", "types": "types/applicationinsights-example-shared-worker.d.ts", "scripts": { - "clean": "grunt clean", + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser", "build:esm": "grunt example-shared-worker", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/extensions/applicationinsights-analytics-js/package.json b/extensions/applicationinsights-analytics-js/package.json index 93393007f..97d36444d 100644 --- a/extensions/applicationinsights-analytics-js/package.json +++ b/extensions/applicationinsights-analytics-js/package.json @@ -13,6 +13,7 @@ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-analytics-js" }, "scripts": { + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt ai", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/extensions/applicationinsights-clickanalytics-js/package.json b/extensions/applicationinsights-clickanalytics-js/package.json index 3fb9faacb..0ad094c51 100644 --- a/extensions/applicationinsights-clickanalytics-js/package.json +++ b/extensions/applicationinsights-clickanalytics-js/package.json @@ -9,6 +9,7 @@ "types": "types/applicationinsights-clickanalytics-js.d.ts", "sideEffects": false, "scripts": { + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt clickanalytics", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/extensions/applicationinsights-debugplugin-js/package.json b/extensions/applicationinsights-debugplugin-js/package.json index 583dd44fe..08e034f57 100644 --- a/extensions/applicationinsights-debugplugin-js/package.json +++ b/extensions/applicationinsights-debugplugin-js/package.json @@ -13,6 +13,7 @@ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-debugplugin-js" }, "scripts": { + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt debugplugin", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/extensions/applicationinsights-dependencies-js/package.json b/extensions/applicationinsights-dependencies-js/package.json index e359b0f3b..4a451a8ea 100644 --- a/extensions/applicationinsights-dependencies-js/package.json +++ b/extensions/applicationinsights-dependencies-js/package.json @@ -13,6 +13,7 @@ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-dependencies-js" }, "scripts": { + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt deps", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/extensions/applicationinsights-perfmarkmeasure-js/package.json b/extensions/applicationinsights-perfmarkmeasure-js/package.json index f0541a580..485ee3990 100644 --- a/extensions/applicationinsights-perfmarkmeasure-js/package.json +++ b/extensions/applicationinsights-perfmarkmeasure-js/package.json @@ -13,6 +13,7 @@ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-perfmarkmeasure-js" }, "scripts": { + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt perfmarkmeasure", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/extensions/applicationinsights-properties-js/package.json b/extensions/applicationinsights-properties-js/package.json index d5746cbe6..6db9f1079 100644 --- a/extensions/applicationinsights-properties-js/package.json +++ b/extensions/applicationinsights-properties-js/package.json @@ -13,6 +13,7 @@ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-properties-js" }, "scripts": { + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt properties", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/package.json b/package.json index 20631d5bc..e3a825864 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,8 @@ "serve": "grunt serve", "setVersion": "node ./tools/release-tools/setVersion.js", "purge": "node common/scripts/install-run-rush.js purge", - "fullClean": "git clean -xdf && npm install && rush update --recheck --full", + "rushClean": "node common/scripts/install-run-rush.js clean", + "fullClean": "npm run rushClean && git clean -xdf && npm install && rush update --recheck --full", "fullCleanBuild": "npm run fullClean && npm run rebuild", "ai-min": "node common/scripts/install-run-rush.js ai-min", "ai-restore": "node common/scripts/install-run-rush.js ai-restore", diff --git a/shared/AppInsightsCommon/package.json b/shared/AppInsightsCommon/package.json index a776ae36a..3c8897821 100644 --- a/shared/AppInsightsCommon/package.json +++ b/shared/AppInsightsCommon/package.json @@ -13,6 +13,7 @@ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/shared/AppInsightsCommon" }, "scripts": { + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt common", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/shared/AppInsightsCore/package.json b/shared/AppInsightsCore/package.json index fe7688cb3..90aa778e1 100644 --- a/shared/AppInsightsCore/package.json +++ b/shared/AppInsightsCore/package.json @@ -17,7 +17,7 @@ "module": "dist-es5/applicationinsights-core-js.js", "types": "types/applicationinsights-core-js.d.ts", "scripts": { - "clean": "grunt clean", + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen", "build:esm": "grunt core", "build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/tools/applicationinsights-web-snippet/package.json b/tools/applicationinsights-web-snippet/package.json index e072e9160..4ae1b973e 100644 --- a/tools/applicationinsights-web-snippet/package.json +++ b/tools/applicationinsights-web-snippet/package.json @@ -11,6 +11,7 @@ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-web-snippet" }, "scripts": { + "clean": "git clean -xdf", "build": " npm run replace && npm run build:esm && npm run build:browser", "replace": "grunt websnippetReplace", "build:esm": "grunt websnippet", diff --git a/tools/chrome-debug-extension/package.json b/tools/chrome-debug-extension/package.json index 8e00a8f06..d5e08a519 100644 --- a/tools/chrome-debug-extension/package.json +++ b/tools/chrome-debug-extension/package.json @@ -24,6 +24,7 @@ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/tools/chrome-debug-extension" }, "scripts": { + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:browser && npm run pack && npm run sri", "build:esm": "grunt chromedebugextension", "build:browser": "npm run update_manifest && npx rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/tools/config/package.json b/tools/config/package.json index 5af800c2d..34b5cd282 100644 --- a/tools/config/package.json +++ b/tools/config/package.json @@ -9,6 +9,7 @@ "url": "git+https://github.com/microsoft/ApplicationInsights-JS.git" }, "scripts": { + "clean": "git clean -xdf", "build": "npm run build:browser", "build:browser": "grunt copy-config", "rebuild": "npm run build", diff --git a/tools/release-tools/package.json b/tools/release-tools/package.json index 9c4ac730f..e1e1b4bb5 100644 --- a/tools/release-tools/package.json +++ b/tools/release-tools/package.json @@ -6,6 +6,7 @@ "homepage": "https://1dsdocs.azurewebsites.net/sdk.html", "sideEffects": false, "scripts": { + "clean": "git clean -xdf", "update": "rush update", "build": "", "rebuild": "", diff --git a/tools/rollup-es5/package.json b/tools/rollup-es5/package.json index 11f332879..dd40d41f1 100644 --- a/tools/rollup-es5/package.json +++ b/tools/rollup-es5/package.json @@ -17,7 +17,7 @@ "module": "dist-es5/applicationinsights-rollup-es5.js", "types": "types/applicationinsights-rollup-es5.d.ts", "scripts": { - "clean": "grunt clean", + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:bundle", "build:esm": "grunt rollupes5", "build:bundle": "rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/tools/rollup-plugin-uglify3-js/package.json b/tools/rollup-plugin-uglify3-js/package.json index d48e2bfea..533c76862 100644 --- a/tools/rollup-plugin-uglify3-js/package.json +++ b/tools/rollup-plugin-uglify3-js/package.json @@ -12,7 +12,7 @@ "rollup-plugin" ], "scripts": { - "clean": "grunt clean", + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:bundle", "build:esm": "grunt rollupuglify", "build:bundle": "npx rollup -c rollup.config.js --bundleConfigAsCjs", diff --git a/tools/shims/package.json b/tools/shims/package.json index 309fe0a0b..def95e76e 100644 --- a/tools/shims/package.json +++ b/tools/shims/package.json @@ -16,7 +16,7 @@ "module": "dist-es5/applicationinsights-shims.js", "types": "types/applicationinsights-shims.d.ts", "scripts": { - "clean": "grunt clean", + "clean": "git clean -xdf", "build": "npm run build:esm && npm run build:bundle", "build:esm": "grunt shims", "build:bundle": "rollup -c rollup.config.js --bundleConfigAsCjs",