-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
89 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@spotlightjs/core': patch | ||
'@spotlightjs/sidecar': patch | ||
--- | ||
|
||
Update README |
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,44 @@ | ||
# Contributing to Spotlight | ||
|
||
## Local Setup | ||
|
||
- `pnpm install` | ||
- `pnpm build` | ||
|
||
### Run Local Dev build | ||
|
||
If you want to locally open two terminals | ||
|
||
One is for building & watching Spotlight locally. | ||
|
||
1. `cd packages/spotlight` | ||
2. `pnpm dev` | ||
|
||
The other is to run the website locally: | ||
|
||
1. `cd packages/website` | ||
2. `pnpm dev` | ||
3. `open http://localhost:4321/spotlight` | ||
|
||
## Changesets | ||
|
||
Spotlight uses [Changesets](https://github.com/changesets/changesets) to track changes & versions. | ||
|
||
Whenever you make a change that is users facing, you should add a changeset to your PR. You can do this by runing the | ||
following command: | ||
|
||
```bash | ||
onpm changeset:add | ||
``` | ||
|
||
This will guide you through the process to define the changeset. You have to select which package(s) are affected by | ||
this change, if it is a patch/minor/major change, and provide a description for the change. | ||
|
||
Note that not all PRs need a changeset (e.g. if you only write docs), and a PR can also have more than one changeset. | ||
|
||
## Publishing | ||
|
||
When you want to publish a new version, you need to trigger the | ||
[Prepare Publish](https://github.com/getsentry/spotlight/actions/workflows/prepare-publish.yml) Github Action. This | ||
action will open a PR with all versions bumped & changelogs updated according to the currently pending changesets. If | ||
you approve & merge this PR, these versions will automatically be published to NPM. |
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,18 @@ | ||
# Spotlight Sidecar | ||
|
||
The Spotlight Sidecar is a small proxy server that allows (development) servers to send data to Spotlight. | ||
|
||
## Installation | ||
|
||
```js | ||
npm install @spotlightjs/sidecar | ||
``` | ||
|
||
## Usage | ||
|
||
```js | ||
import { setupSidecar } from '@spotlightjs/sidecar'; | ||
|
||
// When you start your dev server | ||
setupSidecar(); | ||
``` |
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,20 @@ | ||
# Spotlight Core | ||
|
||
This is the core package to add Spotlight to your application | ||
|
||
## Installation | ||
|
||
```js | ||
npm install @spotlightjs/core | ||
``` | ||
|
||
## Usage | ||
|
||
```js | ||
import * as Spotlight from '@spotlightjs/core'; | ||
|
||
Spotlight.init({ | ||
integrations: [Spotlight.sentry(), Spotlight.console()], | ||
showTriggerButton: true, | ||
}); | ||
``` |