Skip to content

Commit

Permalink
CoreUtils - Tree-Shaking ennhancements
Browse files Browse the repository at this point in the history
- extract and export each CoreUtils function as first class
- stop using CoreUtils class within core, using the new direct functions
- create TestFramework and change core to use it (so it restores the navigator / user agent properly)
  • Loading branch information
MSNev committed Feb 11, 2021
1 parent a6913c2 commit 26b6689
Show file tree
Hide file tree
Showing 62 changed files with 4,439 additions and 9,019 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm run test
- run: npm run build --verbose
timeout-minutes: 10
- run: npm run test --verbose
timeout-minutes: 15
3 changes: 2 additions & 1 deletion AISKU/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
},
"scripts": {
"clean": "rm -rfv browser types dist-esm",
"build": "npm run build:esm && npm run build:browser && npm run dtsgen",
"build": "npm run build:esm && npm run build:browser",
"build-gen": "npm run build:esm && npm run build:browser && npm run dtsgen",
"build:esm": "grunt aisku",
"build:browser": "rollup -c rollup.config.js",
"build:snippet": "grunt snippetvnext",
Expand Down
5 changes: 3 additions & 2 deletions AISKU/src/applicationinsights-web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export {
ITelemetryPlugin,
IPerfEvent,
    IPerfManager, 
    IPerfManagerProvider ,
    IPerfManagerProvider,
    PerfEvent, 
    PerfManager, 
    doPerf,
Expand All @@ -35,7 +35,8 @@ export {
INotificationManager,
IProcessTelemetryContext,
Tags,
BaseCore
BaseCore,
CoreUtils
} from "@microsoft/applicationinsights-core-js";
export {
Util,
Expand Down
3 changes: 2 additions & 1 deletion AISKULight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"types": "types/index.d.ts",
"sideEffects": false,
"scripts": {
"build": "npm run build:esm && npm run build:browser && npm run dtsgen",
"build": "npm run build:esm && npm run build:browser",
"build-gen": "npm run build:esm && npm run build:browser && npm run dtsgen",
"build:esm": "grunt aiskulite",
"build:browser": "rollup -c rollup.config.js",
"test": "echo 'No tests'",
Expand Down
Loading

0 comments on commit 26b6689

Please sign in to comment.