Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
# Don't allow people to merge changes to these generated files, because the result
# may be invalid. You need to run "rush update" again.
shrinkwrap.yaml merge=binary
npm-shrinkwrap.json merge=binary
yarn.lock merge=binary

###############################################################################
# Set default behavior for command prompt diff.
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,15 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [20.x, 22.x]
node-version: [22.x, 24.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Update rush shrinkwrap dependencies (for different node versions)
run: node common/scripts/install-run-rush.js update --full --recheck
- run: npm install rollup -g
- run: npm install grunt-cli findup-sync nopt pify@2.3.0
- run: npm install
- run: node common/scripts/install-run-rush.js check
- run: node common/scripts/install-run-rush.js update --full --recheck
- run: npm run build --verbose
timeout-minutes: 10
- run: npm run test --verbose
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
Expand All @@ -55,7 +55,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -69,4 +69,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
- uses: dessant/lock-threads@v5
with:
github-token: ${{ github.token }}
issue-lock-comment: >
Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,6 @@ jspm_packages/
# Common toolchain intermediate files
temp

# Rush files
common/temp/**
package-deps.json
package-lock.json

# test output
aicore.tests.js*
aicore.tests.d.ts
Expand Down
21 changes: 8 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,23 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
2. Install all dependencies
```
npm install
npm install -g @microsoft/rush
```
3. Navigate to the root folder and update rush dependencies
3. Build and test
```
rush update
```
4. Build and test
```
rush build
npm run build
npm run test
```

## Build and test

The root folder contains 8 packages that are components of this next version of the SDK. When making changes in multiple packages, you can build using the following commands in root folder:
The root folder contains the main package and supporting tooling. When making changes, you can build using the following commands in root folder:

1. rush rebuild --verbose
1. npm run build

This will build all packages in order of dependencies. If there are build errors, verbose options is required to view error details.
This will build all packages in order of dependencies. Build errors will be shown in the console output.

2. rush test --verbose
2. npm run test

This will run tests in all packages in parallel.
This will run the tests.

If you are changing package versions or adding/removing any package dependencies, run> **rush update --purge --recheck --full** before building. Please check-in any files that change under common\ folder.
If you are changing package versions or adding/removing any package dependencies, run `npm install` before building.
12 changes: 6 additions & 6 deletions applicationinsights-react-native/Tests/UnitTests.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@
modules.add("qunit");

// Load and define the app insights test framework module
modules.add("@microsoft/ai-test-framework", "./node_modules/@microsoft/ai-test-framework/dist/ai-test-framework");
modules.add("@microsoft/ai-test-framework", "../node_modules/@microsoft/ai-test-framework/dist/ai-test-framework");

// Load and define the app insights Shims module
modules.add("@microsoft/applicationinsights-shims", "./node_modules/@microsoft/applicationinsights-shims/browser/applicationinsights-shims");
modules.add("@microsoft/applicationinsights-shims", "../node_modules/@microsoft/applicationinsights-shims/browser/applicationinsights-shims");

// Load ts-utils (ts-utils changed from umd to main)
modules.add("@nevware21/ts-utils", "./node_modules/@nevware21/ts-utils/dist/es5/main/ts-utils");
modules.add("@nevware21/ts-utils", "../node_modules/@nevware21/ts-utils/dist/es5/main/ts-utils");

// Load DynamicProto
modules.add("@microsoft/dynamicproto-js", "./node_modules/@microsoft/dynamicproto-js/dist/es5/umd/dynamicproto-js", true);
modules.add("@microsoft/dynamicproto-js", "../node_modules/@microsoft/dynamicproto-js/dist/es5/umd/dynamicproto-js", true);

// Load Core
modules.add("@microsoft/applicationinsights-core-js", "./node_modules/@microsoft/applicationinsights-core-js/browser/es5/applicationinsights-core-js");
modules.add("@microsoft/applicationinsights-core-js", "../node_modules/@microsoft/applicationinsights-core-js/browser/es5/applicationinsights-core-js");

modules.add("react-native");

// Load React native device info
modules.add("react-native-device-info", "./node_modules/react-native-device-info/lib/commonjs/web/index");
modules.add("react-native-device-info", "../node_modules/react-native-device-info/lib/commonjs/web/index");

var testModule = modules.add("Tests/Unit/src/reactnativeplugin.tests", "./Unit/dist/reactnativeplugin.tests.js")
testModule.run = function (tests) {
Expand Down
1 change: 1 addition & 0 deletions applicationinsights-react-native/Tests/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"moduleResolution": "Node",
"target": "es5",
"alwaysStrict": true,
"skipLibCheck": true,
"declaration": true,
"outFile": "./Selenium/reactnativeplugin.tests.js"
},
Expand Down
4 changes: 2 additions & 2 deletions applicationinsights-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@microsoft/ai-test-framework": "0.0.1",
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
"@microsoft/api-extractor": "^7.18.1",
"grunt": "^1.5.3",
"grunt": "^1.6.2",
"grunt-cli": "^1.4.3",
"grunt-contrib-uglify": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.4.3",
Expand All @@ -77,7 +77,7 @@
"typescript": "^4.3.4",
"tslib": "^2.0.0",
"uglify-js": "3.16.0",
"@types/node": "24.0.14"
"@types/node": "^18.0.0"
},
"dependencies": {
"@microsoft/applicationinsights-core-js": "^3.4.1",
Expand Down
1 change: 1 addition & 0 deletions applicationinsights-react-native/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"importHelpers": true,
"noEmitHelpers": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"declaration": true,
"declarationDir": "applicationinsights-react-native/types",
"outDir": "dist-esm",
Expand Down

This file was deleted.

12 changes: 0 additions & 12 deletions common/config/rush/.npmrc

This file was deleted.

76 changes: 0 additions & 76 deletions common/config/rush/command-line.json

This file was deleted.

43 changes: 0 additions & 43 deletions common/config/rush/common-versions.json

This file was deleted.

Loading
Loading