-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: export models outside package Signed-off-by: Mark Phelps <[email protected]> * chore: fmt Signed-off-by: Mark Phelps <[email protected]> * chore: dont export unneeded types Signed-off-by: Mark Phelps <[email protected]> * chore: lint Signed-off-by: Mark Phelps <[email protected]> * feat: intro react sdk Signed-off-by: Mark Phelps <[email protected]> * chore: add rollup * chore: fmt Signed-off-by: Mark Phelps <[email protected]> * chore: add tests Signed-off-by: Mark Phelps <[email protected]> * chore: rm dist Signed-off-by: Mark Phelps <[email protected]> * chore: more fmt Signed-off-by: Mark Phelps <[email protected]> * chore: setup publish workflow Signed-off-by: Mark Phelps <[email protected]> * chore: fmt Signed-off-by: Mark Phelps <[email protected]> * chore: set rc Signed-off-by: Mark Phelps <[email protected]> * chore: fix node workflow Signed-off-by: Mark Phelps <[email protected]> * chore: public Signed-off-by: Mark Phelps <[email protected]> * chore: add back rollup external option Signed-off-by: Mark Phelps <[email protected]> * chore: export everything Signed-off-by: Mark Phelps <[email protected]> * chore: fml Signed-off-by: Mark Phelps <[email protected]> * chore: readme add back unit tests Signed-off-by: Mark Phelps <[email protected]> * chore: bump version Signed-off-by: Mark Phelps <[email protected]> * chore: update example Signed-off-by: Mark Phelps <[email protected]> * chore: update main readme Signed-off-by: Mark Phelps <[email protected]> * chore: update react to 0.0.1 Signed-off-by: Mark Phelps <[email protected]> --------- Signed-off-by: Mark Phelps <[email protected]>
- Loading branch information
1 parent
c3f0806
commit a79e3b2
Showing
20 changed files
with
11,470 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Package React SDK | ||
on: | ||
push: | ||
tags: ["flipt-client-react-**"] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- run: | | ||
npm ci | ||
npm run build | ||
npm publish --access public | ||
working-directory: flipt-client-react | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,21 @@ | |
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"private": false, | ||
"author": "Flipt Devs <[email protected]>", | ||
"license": "MIT", | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/flipt-io/flipt-client-sdks/tree/main/flipt-client-react" | ||
}, | ||
"keywords": [ | ||
"flipt", | ||
"feature flags", | ||
"feature toggles", | ||
"wasm" | ||
], | ||
"scripts": { | ||
"fmt": "prettier --config .prettierrc 'src/**/*.ts' --write", | ||
"lint": "prettier --check src/**/*.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
{ | ||
"name": "@flipt-io/flipt-client", | ||
"version": "0.10.1", | ||
"description": "Flipt Client Evaluation SDK", | ||
"description": "Flipt Client Evaluation SDK for Node.js", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"private": false, | ||
"author": "Flipt Devs <[email protected]>", | ||
"license": "MIT", | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/flipt-io/flipt-client-sdks/tree/main/flipt-client-node" | ||
}, | ||
"keywords": [ | ||
"flipt", | ||
"feature flags", | ||
"feature toggles", | ||
"nodejs", | ||
"wasm" | ||
], | ||
"scripts": { | ||
"fmt": "prettier --config .prettierrc 'src/**/*.ts' --write", | ||
"lint": "prettier --check src/**/*.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"semi": true, | ||
"trailingComma": "none", | ||
"singleQuote": true, | ||
"printWidth": 80 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Flipt Software Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.