mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-27 18:29:47 +08:00
This is in preparation for conversion from the experimental workspace API to the stable workspace API.
17 lines
363 B
JavaScript
17 lines
363 B
JavaScript
'use strict';
|
|
// This file is ES6 because it needs to be executed as is.
|
|
|
|
if ('NG_CLI_ANALYTICS' in process.env) {
|
|
return;
|
|
}
|
|
|
|
try {
|
|
var analytics = require('../../models/analytics');
|
|
|
|
analytics.hasGlobalAnalyticsConfiguration().then(hasGlobalConfig => {
|
|
if (!hasGlobalConfig) {
|
|
return analytics.promptGlobalAnalytics();
|
|
}
|
|
});
|
|
} catch (_) {}
|