update angular package name
This commit is contained in:
Родитель
81afc5400d
Коммит
f21d9cc145
|
@ -1,4 +1,4 @@
|
|||
cd extensions/applicationinsights-angular-js
|
||||
cd extensions/applicationinsights-angularplugin-js
|
||||
npm install
|
||||
npm run build
|
||||
npm run test
|
||||
|
|
|
@ -14,7 +14,7 @@ Angular Plugin for the Application Insights Javascript SDK
|
|||
Install npm package:
|
||||
|
||||
```bash
|
||||
npm install @microsoft/applicationinsights-angular-js
|
||||
npm install @microsoft/applicationinsights-angularplugin-js
|
||||
```
|
||||
|
||||
## Basic Usage
|
||||
|
@ -22,7 +22,7 @@ npm install @microsoft/applicationinsights-angular-js
|
|||
```js
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ApplicationInsights } from '@microsoft/applicationinsights-web';
|
||||
import { AngularPlugin } from '@microsoft/applicationinsights-angular-js';
|
||||
import { AngularPlugin } from '@microsoft/applicationinsights-angularplugin-js';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
|
@ -69,7 +69,7 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio
|
|||
### Note
|
||||
|
||||
Angular plugin is using newer version of typescript, make sure to build and test before you create a pull request.
|
||||
Navigate to the oot folder of Angular plugin, under /extensions/applicationinsights-angular-js:
|
||||
Navigate to the root folder of Angular plugin, under /extensions/applicationinsights-angularplugin-js:
|
||||
```
|
||||
npm install
|
||||
npm run build
|
|
@ -19,7 +19,7 @@
|
|||
"@angular/platform-browser": "~8.1.2",
|
||||
"@angular/platform-browser-dynamic": "~8.1.2",
|
||||
"@angular/router": "~8.1.2",
|
||||
"@microsoft/applicationinsights-angular-js": "file:../../",
|
||||
"@microsoft/applicationinsights-angularplugin-js": "file:../../",
|
||||
"rxjs": "~6.4.0",
|
||||
"zone.js": "~0.9.1"
|
||||
},
|
|
@ -1,6 +1,6 @@
|
|||
import { TestBed, fakeAsync, tick } from '@angular/core/testing';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
import { AngularPlugin } from '@microsoft/applicationinsights-angular-js';
|
||||
import { AngularPlugin } from '@microsoft/applicationinsights-angularplugin-js';
|
||||
import { AppInsightsCore, IConfiguration, DiagnosticLogger, ITelemetryItem, IPlugin } from '@microsoft/applicationinsights-core-js';
|
||||
import { IPageViewTelemetry } from '@microsoft/applicationinsights-common';
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"name": "@microsoft/applicationinsights-angular-js",
|
||||
"name": "@microsoft/applicationinsights-angularplugin-js",
|
||||
"version": "2.5.8",
|
||||
"description": "Microsoft Application Insights Angular plugin",
|
||||
"main": "dist/applicationinsights-angular-js.js",
|
||||
"module": "dist-esm/applicationinsights-angular-js.js",
|
||||
"types": "types/applicationinsights-angular-js.d.ts",
|
||||
"main": "dist/applicationinsights-angularplugin-js.js",
|
||||
"module": "dist-esm/applicationinsights-angularplugin-js.js",
|
||||
"types": "types/applicationinsights-angularplugin-js.d.ts",
|
||||
"sideEffects": false,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/vNext/extensions/applicationinsights-angular-js"
|
||||
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/extensions/applicationinsights-angularplugin-js"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build:esm && npm run build:browser",
|
||||
|
@ -18,7 +18,7 @@
|
|||
"lint": "tslint -p tsconfig.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@microsoft/applicationinsights-rollup-es3" : "1.1.3",
|
||||
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
|
||||
"@microsoft/applicationinsights-properties-js": "2.5.8",
|
||||
"@angular/core": "~8.1.2",
|
||||
"@angular/router": "~8.1.2",
|
||||
|
@ -39,7 +39,7 @@
|
|||
"tslint-config-prettier": "^1.18.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@microsoft/applicationinsights-shims" : "1.0.1",
|
||||
"@microsoft/applicationinsights-shims": "1.0.1",
|
||||
"@microsoft/applicationinsights-common": "2.5.8",
|
||||
"@microsoft/applicationinsights-core-js": "2.5.8"
|
||||
},
|
|
@ -5,7 +5,7 @@ import commonjs from "rollup-plugin-commonjs";
|
|||
import { es3Poly, es3Check, importCheck } from "@microsoft/applicationinsights-rollup-es3";
|
||||
|
||||
const version = require("./package.json").version;
|
||||
const outputName = "applicationinsights-angular-js";
|
||||
const outputName = "applicationinsights-angularplugin-js";
|
||||
const banner = [
|
||||
"/*!",
|
||||
` * Application Insights JavaScript SDK - Angular Plugin, ${version}`,
|
||||
|
@ -33,7 +33,7 @@ const browserRollupConfigFactory = isProduction => {
|
|||
"// Licensed under the MIT License.": ""
|
||||
}
|
||||
}),
|
||||
importCheck({ exclude: [ "applicationinsights-angular-js" ] }),
|
||||
importCheck({ exclude: [ "applicationinsights-angularplugin-js" ] }),
|
||||
nodeResolve({
|
||||
browser: false,
|
||||
preferBuiltins: false
|
||||
|
@ -87,7 +87,7 @@ const nodeUmdRollupConfigFactory = (isProduction) => {
|
|||
"// Licensed under the MIT License.": ""
|
||||
}
|
||||
}),
|
||||
importCheck({ exclude: [ "applicationinsights-angular-js" ] }),
|
||||
importCheck({ exclude: [ "applicationinsights-angularplugin-js" ] }),
|
||||
nodeResolve({ preferBuiltins: true }),
|
||||
commonjs({
|
||||
include: 'node_modules/**'
|
Загрузка…
Ссылка в новой задаче