-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from metricq/feat-github-packages
GitHub npm packages
- Loading branch information
Showing
13 changed files
with
3,325 additions
and
21 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,25 @@ | ||
name: Publish package to GitHub Packages | ||
on: | ||
release: | ||
types: [created] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# Setup .npmrc file to publish to GitHub Packages | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.x' | ||
registry-url: 'https://npm.pkg.github.com' | ||
# Defaults to the user or organization that owns the workflow file | ||
scope: '@metricq' | ||
- run: npm publish history/ | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: npm publish live/ | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,5 @@ | ||
.github/ | ||
.idea/ | ||
dist/ | ||
webpack.config.js | ||
*_example.html |
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,30 @@ | ||
# metricq-js | ||
|
||
## Install via npm/yarn | ||
|
||
Add the following line to your `.npmrc` in the project root: | ||
|
||
``` | ||
@metricq:registry=https://npm.pkg.github.com | ||
``` | ||
|
||
After that install via | ||
|
||
```bash | ||
npm install @metricq/live | ||
or | ||
npm install @metricq/history | ||
``` | ||
|
||
```bash | ||
yarn add @metricq/live | ||
or | ||
yarn add @metricq/history | ||
``` | ||
|
||
## Usage | ||
|
||
```js | ||
import MetricQHistory from "@metricq/history" | ||
import MetricQLive from "@metricq/live" | ||
``` |
File renamed without changes.
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,28 @@ | ||
{ | ||
"name": "@metricq/history", | ||
"version": "3.0.0", | ||
"description": "MetricQ is a highly-scalable, distributed metric data processing framework based on RabbitMQ. This package provides a client library for the metricq-grafana endpoint.", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/metricq/metricq-js.git", | ||
"directory": "history" | ||
}, | ||
"main": "./metricq-history.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "Mario Bielert <[email protected]>", | ||
"license": "BSD-3-Clause", | ||
"dependencies": { | ||
"axios": "^0.21.2", | ||
"moment": "^2.29.1" | ||
}, | ||
"devDependencies": { | ||
}, | ||
"browser": { | ||
"child_process": false | ||
}, | ||
"publishConfig": { | ||
"registry": "https://npm.pkg.github.com" | ||
} | ||
} |
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
File renamed without changes.
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,28 @@ | ||
{ | ||
"name": "@metricq/live", | ||
"version": "3.0.0", | ||
"description": "MetricQ is a highly-scalable, distributed metric data processing framework based on RabbitMQ. This package provides a client library for the metricq-sink-websocket endpoint.", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/metricq/metricq-js.git", | ||
"directory": "live" | ||
}, | ||
"main": "./metricq-live.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "Mario Bielert <[email protected]>", | ||
"license": "BSD-3-Clause", | ||
"dependencies": { | ||
"moment": "^2.29.1", | ||
"websocket": "^1.0.33" | ||
}, | ||
"devDependencies": { | ||
}, | ||
"browser": { | ||
"child_process": false | ||
}, | ||
"publishConfig": { | ||
"registry": "https://npm.pkg.github.com" | ||
} | ||
} |
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
Oops, something went wrong.