Skip to content

Commit 5e5944e

Browse files
committed
chore: scaffold vue
1 parent 97e9e7b commit 5e5944e

18 files changed

Lines changed: 263 additions & 2 deletions

.github/workflows/release-please.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ on:
6464
- packages/sdk/electron
6565
- packages/sdk/react
6666
- packages/sdk/openfeature-node-server
67+
- packages/sdk/vue
6768
prerelease:
6869
description: 'Is this a prerelease. If so, then the latest tag will not be updated in npm.'
6970
type: boolean
@@ -109,6 +110,7 @@ jobs:
109110
package-sdk-react-released: ${{ steps.release.outputs['packages/sdk/react--release_created'] }}
110111
package-sdk-openfeature-node-server-released: ${{ steps.release.outputs['packages/sdk/openfeature-node-server--release_created'] }}
111112
package-tooling-client-testing-plugin-released: ${{ steps.release.outputs['packages/tooling/client-testing-plugin--release_created'] }}
113+
package-sdk-vue-released: ${{ steps.release.outputs['packages/sdk/vue--release_created'] }}
112114
steps:
113115
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0
114116
id: release
@@ -557,6 +559,24 @@ jobs:
557559
workspace_path: packages/sdk/openfeature-node-server
558560
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
559561

562+
release-vue:
563+
runs-on: ubuntu-latest
564+
needs: ['release-please', 'release-browser']
565+
permissions:
566+
id-token: write
567+
contents: write
568+
# if: ${{ always() && !failure() && !cancelled() && needs.release-please.outputs.package-sdk-vue-released == 'true'}}
569+
# TODO: Uncomment this when the package is ready to be released.
570+
if: false
571+
steps:
572+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
573+
- id: release-vue
574+
name: Full release of packages/sdk/vue
575+
uses: ./actions/full-release
576+
with:
577+
workspace_path: packages/sdk/vue
578+
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
579+
560580
manual-publish:
561581
runs-on: ubuntu-latest
562582
if: github.event_name == 'workflow_dispatch'

.github/workflows/vue.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: sdk/vue
2+
3+
on:
4+
push:
5+
branches: [main, 'feat/**']
6+
paths-ignore:
7+
- '**.md' #Do not need to run CI for markdown changes.
8+
pull_request:
9+
branches: [main, 'feat/**']
10+
paths-ignore:
11+
- '**.md'
12+
13+
jobs:
14+
build-test-vue:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
18+
- uses: ./actions/setup-yarn
19+
- id: shared
20+
name: Shared CI Steps
21+
uses: ./actions/ci
22+
with:
23+
workspace_name: '@launchdarkly/vue-client-sdk'
24+
workspace_path: packages/sdk/vue
25+
should_build_docs: false
26+
27+
# TODO(scaffold): run-example job arrives when examples/getting-started lands
28+
# TODO(scaffold): contract-tests job arrives when contract-tests land

.release-please-manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
"packages/tooling/client-testing-plugin": "0.1.1",
2727
"packages/sdk/shopify-oxygen": "0.1.13",
2828
"packages/sdk/react": "4.1.2",
29-
"packages/sdk/openfeature-node-server": "1.2.3"
29+
"packages/sdk/openfeature-node-server": "1.2.3",
30+
"packages/sdk/vue": "0.1.0"
3031
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
"packages/sdk/browser/example",
6363
"packages/sdk/browser/example-fdv2",
6464
"packages/sdk/openfeature-node-server",
65-
"packages/sdk/openfeature-node-server/examples/getting-started"
65+
"packages/sdk/openfeature-node-server/examples/getting-started",
66+
"packages/sdk/vue"
6667
],
6768
"private": true,
6869
"scripts": {

packages/sdk/vue/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist/
2+
docs/
3+
node_modules/
4+
*.tsbuildinfo

packages/sdk/vue/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
All notable changes to `@launchdarkly/vue-client-sdk` will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).

packages/sdk/vue/LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2026 Catamorphic, Co.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

packages/sdk/vue/README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# LaunchDarkly Vue SDK
2+
3+
[![Actions Status][vue-sdk-ci-badge]][vue-sdk-ci]
4+
<!-- Badges below are commented out until the package is published to npm and docs are deployed.
5+
[![NPM][vue-sdk-npm-badge]][vue-sdk-npm-link]
6+
[![Documentation][vue-sdk-ghp-badge]][vue-sdk-ghp-link]
7+
[![NPM][vue-sdk-dm-badge]][vue-sdk-npm-link]
8+
[![NPM][vue-sdk-dt-badge]][vue-sdk-npm-link]
9+
-->
10+
11+
> [!CAUTION]
12+
> This SDK is experimental and should NOT be considered ready for production use.
13+
> It may change or be removed without notice and is not subject to backwards
14+
> compatibility guarantees.
15+
>
16+
> Pin to a specific minor version and review the [changelog](CHANGELOG.md) before upgrading.
17+
18+
## Getting started
19+
20+
Refer to the [SDK documentation](https://launchdarkly.com/docs/sdk/client-side/vue) for instructions on getting started with using the SDK.
21+
22+
## Verifying SDK build provenance with the SLSA framework
23+
24+
LaunchDarkly uses the [SLSA framework](https://slsa.dev/spec/v1.0/about) (Supply-chain Levels for Software Artifacts) to help developers make their supply chain more secure by ensuring the authenticity and build integrity of our published SDK packages. To learn more, see the [provenance guide](../../../PROVENANCE.md).
25+
26+
## About LaunchDarkly
27+
28+
- LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
29+
- Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
30+
- Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
31+
- Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
32+
- Grant access to certain features based on user attributes, like payment plan (eg: users on the 'gold' plan get access to more features than users in the 'silver' plan).
33+
- Disable parts of your application to facilitate maintenance, without taking everything offline.
34+
- LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.
35+
- Explore LaunchDarkly
36+
- [launchdarkly.com](https://www.launchdarkly.com/ 'LaunchDarkly Main Website') for more information
37+
- [docs.launchdarkly.com](https://docs.launchdarkly.com/ 'LaunchDarkly Documentation') for our documentation and SDK reference guides
38+
- [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/ 'LaunchDarkly API Documentation') for our API documentation
39+
- [blog.launchdarkly.com](https://blog.launchdarkly.com/ 'LaunchDarkly Blog Documentation') for the latest product updates
40+
41+
[vue-sdk-ci-badge]: https://github.com/launchdarkly/js-core/actions/workflows/vue.yml/badge.svg
42+
[vue-sdk-ci]: https://github.com/launchdarkly/js-core/actions/workflows/vue.yml
43+
<!-- Badge link definitions below are commented out until the package is published.
44+
[vue-sdk-npm-badge]: https://img.shields.io/npm/v/@launchdarkly/vue-client-sdk.svg?style=flat-square
45+
[vue-sdk-npm-link]: https://www.npmjs.com/package/@launchdarkly/vue-client-sdk
46+
[vue-sdk-ghp-badge]: https://img.shields.io/static/v1?label=GitHub+Pages&message=API+reference&color=00add8
47+
[vue-sdk-ghp-link]: https://launchdarkly.github.io/js-core/packages/sdk/vue/docs/
48+
[vue-sdk-dm-badge]: https://img.shields.io/npm/dm/@launchdarkly/vue-client-sdk.svg?style=flat-square
49+
[vue-sdk-dt-badge]: https://img.shields.io/npm/dt/@launchdarkly/vue-client-sdk.svg?style=flat-square
50+
-->

packages/sdk/vue/jest.config.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"transform": { "^.+\\.tsx?$": ["ts-jest", { "tsconfig": { "esModuleInterop": true } }] },
3+
"testMatch": ["**/*.test.ts?(x)"],
4+
"testPathIgnorePatterns": ["node_modules", "example", "contract-tests", "dist"],
5+
"modulePathIgnorePatterns": ["dist"],
6+
"testEnvironment": "node",
7+
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
8+
"collectCoverageFrom": ["src/**/*.ts?(x)"]
9+
}

packages/sdk/vue/package.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"name": "@launchdarkly/vue-client-sdk",
3+
"version": "0.1.0",
4+
"description": "LaunchDarkly Client-side SDK for Vue",
5+
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/vue",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/launchdarkly/js-core.git"
9+
},
10+
"license": "Apache-2.0",
11+
"keywords": [
12+
"launchdarkly",
13+
"vue",
14+
"vuejs"
15+
],
16+
"type": "module",
17+
"main": "./dist/index.cjs",
18+
"module": "./dist/index.js",
19+
"types": "./dist/index.d.ts",
20+
"exports": {
21+
".": {
22+
"types": "./dist/index.d.ts",
23+
"import": "./dist/index.js",
24+
"require": "./dist/index.cjs",
25+
"default": "./dist/index.js"
26+
}
27+
},
28+
"files": [
29+
"dist"
30+
],
31+
"scripts": {
32+
"clean": "rimraf dist",
33+
"build": "tsup",
34+
"lint": "eslint .",
35+
"test": "npx jest --ci --passWithNoTests",
36+
"coverage": "yarn test --coverage",
37+
"check": "yarn lint && yarn build && yarn test"
38+
},
39+
"peerDependencies": {
40+
"vue": "^3.3.0"
41+
},
42+
"devDependencies": {
43+
"@eslint/js": "^9.0.0",
44+
"@types/jest": "^29.5.12",
45+
"eslint": "^9.0.0",
46+
"eslint-import-resolver-typescript": "^4.0.0",
47+
"eslint-plugin-import-x": "^4.0.0",
48+
"eslint-plugin-jest": "^28.0.0",
49+
"globals": "^16.0.0",
50+
"jest": "^29.7.0",
51+
"rimraf": "^5.0.5",
52+
"ts-jest": "^29.1.1",
53+
"tsup": "^8.5.1",
54+
"typedoc": "0.25.0",
55+
"typescript": "5.1.6",
56+
"typescript-eslint": "^8.0.0",
57+
"vue": "^3.4.0"
58+
}
59+
}

0 commit comments

Comments
 (0)