chore: update README for clarity and formatting improvements

fix: update test imports to use new package path

refactor: improve feed class structure and formatting

refactor: enhance smartfeed class for better readability

chore: streamline plugin exports for consistency

chore: update TypeScript configuration for improved compatibility

ci: add workflows for handling tag and non-tag pushes
This commit is contained in:
2025-10-31 17:07:13 +00:00
parent 29b1420b1a
commit 622b74e628
15 changed files with 8140 additions and 17157 deletions

View File

@@ -1,4 +1,4 @@
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as smartfeed from '../ts/index';
let testSmartFeed: smartfeed.Smartfeed;
@@ -24,7 +24,7 @@ tap.test('should create a feed', async () => {
imageUrl: 'https://central.eu/someimage.png',
timestamp: Date.now(),
url: 'https://central.eu/article/somearticle',
content: 'somecontent'
content: 'somecontent',
});
const rssFeed = feed.exportRssFeedString();
console.log(rssFeed);
@@ -33,7 +33,9 @@ tap.test('should create a feed', async () => {
});
tap.test('should parse a Url', async () => {
const result = await testSmartFeed.parseFeedFromUrl('https://www.theverge.com/rss/index.xml');
const result = await testSmartFeed.parseFeedFromUrl(
'https://www.theverge.com/rss/index.xml',
);
// console.log(result);
});