Skip to content

Commit

Permalink
feat(playground): added playground
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanGerbeth committed Nov 28, 2024
1 parent 749d027 commit d2a84ff
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions packages/operators/src/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export { autoPagination } from './request/autoPagination';
export { cache } from './request/cache';
export { cache } from './cache';
export { concurrentRequest } from './request/concurrentRequest';
export { lazyPagination } from './request/lazyPagination';
export { polling } from './request/polling';
export { request, requestJSON, requestText, requestBlob } from './request/request';
export { request, requestJSON, requestText, requestBlob } from './request';
export {
resolve,
resolveJSON,
resolveText,
resolveBlob,
distinctUntilResponseChanged
} from './request/response';
} from './response';
export { retryWhenRequestError } from './retry';
46 changes: 46 additions & 0 deletions packages/playground/.releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"branches": [
{
"name": "main",
"channel": "latest",
"prerelease": false
},
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Project Changelog"
}
],
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"CHANGELOG_PROJECT.md",
"package.json",
"package-lock.json",
"npm-shrinkwrap.json"
]
}
],
[
"@semantic-release/github"
]
],
"extends": "semantic-release-monorepo"
}
30 changes: 30 additions & 0 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "@rxjs-collection/playground",
"version": "1.0.12",
"description": "rxjs playground",
"license": "MIT",
"contributors": [
{
"name": "Stephan Gerbeth",
"email": "[email protected]"
}
],
"type": "module",
"main": "src/index.js",
"files": [
"./src/*"
],
"scripts": {
"release": "npx semantic-release"
},
"imports": {
"#observables/*": "../observables/src/*",
"#operators/*": "../operators/src/*",
"#mocks/*": "../mocks/*"
},
"dependencies": {
"@rxjs-collection/observables": "*",
"@rxjs-collection/operators": "*",
"rxjs": "7.8.1"
}
}
8 changes: 8 additions & 0 deletions packages/playground/src/demo/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { from } from 'rxjs';
import { describe, test } from 'vitest';

describe('playground stephan', () => {
test('basics', () => {
from([1, 2, 3]).subscribe(e => console.log(e));

Check warning on line 6 in packages/playground/src/demo/index.test.js

View workflow job for this annotation

GitHub Actions / Install (ubuntu-latest, 20)

Unexpected console statement
});
});
Empty file.
9 changes: 9 additions & 0 deletions packages/playground/vitest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineProject } from 'vitest/config';

export default defineProject({
test: {
setupFiles: ['../../setup.js'],
testTimeout: 10000,
environment: 'happy-dom'
}
});

0 comments on commit d2a84ff

Please sign in to comment.