fix(core): update
This commit is contained in:
parent
f8241b49fb
commit
2e9394c330
22493
package-lock.json
generated
22493
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -5,6 +5,7 @@
|
|||||||
"description": "a sitemap module",
|
"description": "a sitemap module",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
"type": "module",
|
||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -12,21 +13,20 @@
|
|||||||
"build": "(tsbuild --web)"
|
"build": "(tsbuild --web)"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.25",
|
"@gitzone/tsbuild": "^2.1.61",
|
||||||
"@gitzone/tsbundle": "^1.0.78",
|
"@gitzone/tsbundle": "^1.0.101",
|
||||||
"@gitzone/tstest": "^1.0.44",
|
"@gitzone/tstest": "^1.0.69",
|
||||||
"@pushrocks/tapbundle": "^3.2.9",
|
"@pushrocks/smartenv": "^5.0.0",
|
||||||
"@types/node": "^14.14.19",
|
"@pushrocks/tapbundle": "^5.0.3",
|
||||||
"tslint": "^6.1.3",
|
"@types/node": "^17.0.23"
|
||||||
"tslint-config-prettier": "^1.15.0"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartcache": "^1.0.13",
|
"@pushrocks/smartcache": "^1.0.13",
|
||||||
"@pushrocks/smartfeed": "^1.0.11",
|
"@pushrocks/smartfeed": "^1.0.11",
|
||||||
"@pushrocks/smartxml": "^1.0.6",
|
"@pushrocks/smartxml": "^1.0.6",
|
||||||
"@pushrocks/smartyaml": "^2.0.5",
|
"@pushrocks/smartyaml": "^2.0.5",
|
||||||
"@pushrocks/webrequest": "^2.0.13",
|
"@pushrocks/webrequest": "^3.0.3",
|
||||||
"@tsclass/tsclass": "^3.0.29"
|
"@tsclass/tsclass": "^3.0.48"
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 1 chrome versions"
|
"last 1 chrome versions"
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { expect, tap } from '@pushrocks/tapbundle';
|
import { expect, tap } from '@pushrocks/tapbundle';
|
||||||
import * as smartsitemap from '../ts/index';
|
import * as smartsitemap from '../ts/index.js';
|
||||||
|
|
||||||
let testSmartsitemap: smartsitemap.SmartSitemap;
|
let testSmartsitemap: smartsitemap.SmartSitemap;
|
||||||
|
|
||||||
tap.test('should create an instance of Smartsitemap', async () => {
|
tap.test('should create an instance of Smartsitemap', async () => {
|
||||||
testSmartsitemap = new smartsitemap.SmartSitemap();
|
testSmartsitemap = new smartsitemap.SmartSitemap();
|
||||||
expect(testSmartsitemap).to.be.instanceOf(smartsitemap.SmartSitemap);
|
expect(testSmartsitemap).toBeInstanceOf(smartsitemap.SmartSitemap);
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should create a sitemap from feed', async () => {
|
tap.test('should create a sitemap from feed', async () => {
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
export * from './smartsitemap.classes.smartsitemap';
|
export * from './smartsitemap.classes.smartsitemap.js';
|
||||||
export * from './smartsitemap.classes.sitemapnews';
|
export * from './smartsitemap.classes.sitemapnews.js';
|
||||||
export * from './smartsitemap.classes.sitemapwebsite';
|
export * from './smartsitemap.classes.sitemapwebsite.js';
|
@ -1,5 +1,5 @@
|
|||||||
import * as plugins from './smartsitemap.plugins';
|
import * as plugins from './smartsitemap.plugins.js';
|
||||||
import * as interfaces from './interfaces';
|
import * as interfaces from './interfaces/index.js';
|
||||||
|
|
||||||
export class SitemapNews {
|
export class SitemapNews {
|
||||||
public rssItems: interfaces.IRssItem[] = [];
|
public rssItems: interfaces.IRssItem[] = [];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as plugins from './smartsitemap.plugins';
|
import * as plugins from './smartsitemap.plugins.js';
|
||||||
|
|
||||||
export type TUpdateFrequency = 'never' | 'daily' | 'weekly' | 'monthly' | 'yearly';
|
export type TUpdateFrequency = 'never' | 'daily' | 'weekly' | 'monthly' | 'yearly';
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { SitemapNews } from './smartsitemap.classes.sitemapnews';
|
import { SitemapNews } from './smartsitemap.classes.sitemapnews.js';
|
||||||
import { IUrlInfo, SitemapWebsite } from './smartsitemap.classes.sitemapwebsite';
|
import { IUrlInfo, SitemapWebsite } from './smartsitemap.classes.sitemapwebsite.js';
|
||||||
import * as plugins from './smartsitemap.plugins';
|
import * as plugins from './smartsitemap.plugins.js';
|
||||||
import * as interfaces from './interfaces';
|
import * as interfaces from './interfaces/index.js';
|
||||||
|
|
||||||
export class SmartSitemap {
|
export class SmartSitemap {
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
9
tsconfig.json
Normal file
9
tsconfig.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"experimentalDecorators": true,
|
||||||
|
"useDefineForClassFields": false,
|
||||||
|
"target": "ES2022",
|
||||||
|
"module": "ES2022",
|
||||||
|
"moduleResolution": "nodenext"
|
||||||
|
}
|
||||||
|
}
|
17
tslint.json
17
tslint.json
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": ["tslint:latest", "tslint-config-prettier"],
|
|
||||||
"rules": {
|
|
||||||
"semicolon": [true, "always"],
|
|
||||||
"no-console": false,
|
|
||||||
"ordered-imports": false,
|
|
||||||
"object-literal-sort-keys": false,
|
|
||||||
"member-ordering": {
|
|
||||||
"options":{
|
|
||||||
"order": [
|
|
||||||
"static-method"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"defaultSeverity": "warning"
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user