Skip to content

Commit 0b9f88b

Browse files
Merge pull request #44 from microsoft/main
Merge main to release/v1
2 parents 382dd86 + 4e711c9 commit 0b9f88b

24 files changed

+705
-170
lines changed

.eslintrc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@
4545
"error",
4646
"always"
4747
],
48-
"no-trailing-spaces": "warn"
48+
"no-trailing-spaces": "error",
49+
"space-before-blocks": [
50+
"error",
51+
"always"
52+
],
53+
"no-multi-spaces": "error",
54+
"no-multiple-empty-lines": [
55+
"error",
56+
{
57+
"max": 1
58+
}
59+
],
60+
"semi": ["error", "always"]
4961
}
5062
}

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: FeatureManagement-JavaScriptProvider CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- preview
8+
- release/*
9+
pull_request:
10+
branches:
11+
- main
12+
- preview
13+
- release/*
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
matrix:
21+
node-version: [18.x, 20.x]
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'npm'
30+
- run: npm ci
31+
- run: npm run lint
32+
- run: npm run build
33+
- run: npm run test
34+
- run: npm run test-browser

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ FodyWeavers.xsd
399399

400400
# bundled folder
401401
dist/
402-
dist-esm/
403402
out/
404403
types/
405404

@@ -411,3 +410,6 @@ types/
411410

412411
# examples
413412
examples/package-lock.json
413+
414+
# playwright test result
415+
test-results

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Microsoft Feature Management for JavaScript
22

3+
[![feature-management](https://img.shields.io/npm/v/@microsoft/feature-management?label=@microsoft/feature-management)](https://www.npmjs.com/package/@microsoft/feature-management)
4+
35
Feature Management is a library for enabling/disabling features at runtime.
46
Developers can use feature flags in simple use cases like conditional statement to more advanced scenarios like conditionally adding routes.
57

0 commit comments

Comments
 (0)