Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add way to test library locally #9

Merged
merged 16 commits into from
Jun 28, 2024
16 changes: 16 additions & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "examples",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"ex:spotify": "ts-node examples/spotify.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@BolajiOlajide/now-playing": "file:..",
"ts-node": "^10.9.2"
}
}
182 changes: 182 additions & 0 deletions examples/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/spotify.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NowPlaying, Providers } from '../dist'
import { NowPlaying, Providers } from '@BolajiOlajide/now-playing'

const np = new NowPlaying(Providers.SPOTIFY, {
streamerArgs: {
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"types": "dist/now-playing.d.ts",
"type": "module",
"scripts": {
"ex:spotify": "ts-node examples/spotify.ts",
"build": "npx rimraf dist && rollup --config",
"test": "vitest",
"format": "prettier . --write"
Expand Down Expand Up @@ -35,7 +34,6 @@
"prettier": "3.3.2",
"rollup": "4.18.0",
"rollup-plugin-dts": "6.1.1",
"ts-node": "10.9.2",
"tslib": "2.6.3",
"typescript": "5.4.5",
"vitest": "1.6.0"
Expand Down
95 changes: 0 additions & 95 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading