@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
31 lines (26 loc) • 1.04 kB
text/typescript
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import './polyfills.ts';
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { CoreEnvironment } from '@msft-sme/core';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
import { PowerShellScripts } from './generated/powershell-scripts';
import { RuntimeVersion } from './version';
if (environment.production) {
enableProdMode();
}
// initialize SME module environment with localization settings.
CoreEnvironment.initialize(
{
name: '{!company-name}.{!product-name}',
version: RuntimeVersion.version,
powerShellModuleName: PowerShellScripts.module,
isProduction: environment.production,
shellOrigin: '*'
},
{
resourcesPath: 'assets/strings'
})
.then(() => platformBrowserDynamic().bootstrapModule(AppModule));