Skip to content

Merge main to preview #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 16, 2025
Merged
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
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

defaults:
run:
working-directory: sdk/feature-management
working-directory: src/feature-management

steps:
- uses: actions/checkout@v3
Expand All @@ -31,40 +31,40 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: sdk/feature-management/package-lock.json
cache-dependency-path: src/feature-management/package-lock.json

- name: Install dependencies
run: npm ci
working-directory: sdk/feature-management
working-directory: src/feature-management

- name: Run lint check for feature-management
run: npm run lint
working-directory: sdk/feature-management
working-directory: src/feature-management

- name: Build feature-management
run: npm run build
working-directory: sdk/feature-management
working-directory: src/feature-management

- name: Run tests
run: npm run test
working-directory: sdk/feature-management
working-directory: src/feature-management

- name: Run browser tests
run: npm run test-browser
working-directory: sdk/feature-management
working-directory: src/feature-management

- name: Build feature-management-applicationinsights-browser
run: npm run build
working-directory: sdk/feature-management-applicationinsights-browser
working-directory: src/feature-management-applicationinsights-browser

- name: Run lint check for feature-management-applicationinsights-browser
run: npm run lint
working-directory: sdk/feature-management-applicationinsights-browser
working-directory: src/feature-management-applicationinsights-browser

- name: Build feature-management-applicationinsights-node
run: npm run build
working-directory: sdk/feature-management-applicationinsights-node
working-directory: src/feature-management-applicationinsights-node

- name: Run lint check for feature-management-applicationinsights-node
run: npm run lint
working-directory: sdk/feature-management-applicationinsights-node
working-directory: src/feature-management-applicationinsights-node
24 changes: 20 additions & 4 deletions scripts/build-and-pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ set -e

SCRIPT_DIR=$(dirname $(readlink -f $0))
PROJECT_BASE_DIR=$(dirname $SCRIPT_DIR)
SDK_DIR="$PROJECT_BASE_DIR/sdk"
NPMRC_FILE="$PROJECT_BASE_DIR/.npmrc"
SRC_DIR="$PROJECT_BASE_DIR/src"

PACKAGE="feature-management"
PACKAGE_DIR="$SDK_DIR/$PACKAGE"
PACKAGE_DIR="$SRC_DIR/$PACKAGE"

if [ -f "$NPMRC_FILE" ]; then
echo "Copy .npmrc file to $PACKAGE_DIR"
cp "$NPMRC_FILE" "$PACKAGE_DIR"
fi

echo "Building package $PACKAGE in $PACKAGE_DIR"
cd "$PACKAGE_DIR"
Expand All @@ -29,7 +35,12 @@ echo "copy $PACKAGE package to $PROJECT_BASE_DIR"
cp "$PACKAGE_DIR"/*.tgz "$PROJECT_BASE_DIR"

PACKAGE="feature-management-applicationinsights-browser"
PACKAGE_DIR="$SDK_DIR/$PACKAGE"
PACKAGE_DIR="$SRC_DIR/$PACKAGE"

if [ -f "$NPMRC_FILE" ]; then
echo "Copy .npmrc file to $PACKAGE_DIR"
cp "$NPMRC_FILE" "$PACKAGE_DIR"
fi

echo "Building package $PACKAGE in $PACKAGE_DIR"
cd "$PACKAGE_DIR"
Expand All @@ -44,7 +55,12 @@ echo "copy $PACKAGE package to $PROJECT_BASE_DIR"
cp "$PACKAGE_DIR"/*.tgz "$PROJECT_BASE_DIR"

PACKAGE="feature-management-applicationinsights-node"
PACKAGE_DIR="$SDK_DIR/$PACKAGE"
PACKAGE_DIR="$SRC_DIR/$PACKAGE"

if [ -f "$NPMRC_FILE" ]; then
echo "Copy .npmrc file to $PACKAGE_DIR"
cp "$NPMRC_FILE" "$PACKAGE_DIR"
fi

echo "Building package $PACKAGE in $PACKAGE_DIR"
cd "$PACKAGE_DIR"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@microsoft/feature-management-applicationinsights-browser",
"version": "3.0.0-preview.1",
"version": "2.0.0",
"description": "Feature Management Application Insights Plugin for Browser provides a solution for sending feature flag evaluation events produced by the Feature Management library.",
"main": "./dist/umd/index.js",
"main": "./dist/esm/index.js",
"module": "./dist/esm/index.js",
"type": "module",
"types": "types/index.d.ts",
"files": [
"dist/",
Expand Down Expand Up @@ -45,7 +46,7 @@
},
"dependencies": {
"@microsoft/applicationinsights-web": "^3.3.2",
"@microsoft/feature-management": "3.0.0-preview.1"
"@microsoft/feature-management": "2.0.0"
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@ import dts from "rollup-plugin-dts";

export default [
{
external: ["@microsoft/feature-management"],
input: "src/index.ts",
output: [
{
dir: "dist/esm/",
format: "esm",
sourcemap: true,
preserveModules: true,
},
{
file: "dist/umd/index.js",
format: "umd",
name: 'FeatureManagementApplicationInsights',
sourcemap: true
}
],
plugins: [
Expand All @@ -43,5 +38,5 @@ export default [
input: "src/index.ts",
output: [{ file: "types/index.d.ts", format: "esm" }],
plugins: [dts()],
},
}
];
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const VERSION = "3.0.0-preview.1";
export const VERSION = "2.0.0";
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/feature-management-applicationinsights-node",
"version": "3.0.0-preview.1",
"version": "2.0.0",
"description": "Feature Management Application Insights Plugin for Node.js provides a solution for sending feature flag evaluation events produced by the Feature Management library.",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -45,7 +45,7 @@
},
"dependencies": {
"applicationinsights": "^2.9.6",
"@microsoft/feature-management": "3.0.0-preview.1"
"@microsoft/feature-management": "2.0.0"
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import dts from "rollup-plugin-dts";

export default [
{
external: ["@microsoft/feature-management"],
input: "src/index.ts",
output: [
{
Expand Down Expand Up @@ -43,5 +44,5 @@ export default [
input: "src/index.ts",
output: [{ file: "types/index.d.ts", format: "esm" }],
plugins: [dts()],
},
}
];
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const VERSION = "3.0.0-preview.1";
export const VERSION = "2.0.0";
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy