mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 06:41:45 +08:00
17 lines
341 B
JavaScript
17 lines
341 B
JavaScript
'use strict';
|
|
// This file is ES6 because it needs to be executed as is.
|
|
|
|
if ('NG_CLI_ANALYTICS' in process.env) {
|
|
return;
|
|
}
|
|
|
|
(async () => {
|
|
try {
|
|
const analytics = require('../../models/analytics');
|
|
|
|
if (!analytics.hasGlobalAnalyticsConfiguration()) {
|
|
await analytics.promptGlobalAnalytics();
|
|
}
|
|
} catch (_) {}
|
|
})();
|