fix(core): Refactor plugin exports to improve modularity

This commit is contained in:
Philipp Kunz 2024-10-02 15:45:45 +02:00
parent 16fd982c57
commit cc934a9c0e
5 changed files with 293 additions and 553 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## 2024-10-02 - 2.0.59 - fix(core)
Refactor plugin exports to improve modularity
- Refactored the plugin exports to be more modular and organized.
- Replaced redundant plugin object definition in ts/index.ts with a simpler import and export pattern.
## 2024-07-01 - 2.0.58 - fix(dependencies)
Update dependencies and correct font family in styles

802
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@design.estate/dees-domtools',
version: '2.0.58',
version: '2.0.59',
description: 'A package providing tools to simplify complex CSS structures and web development tasks, featuring TypeScript support and integration with various web technologies.'
}

View File

@ -0,0 +1,21 @@
import * as smartdelay from '@push.rocks/smartdelay';
import * as smartmarkdown from '@push.rocks/smartmarkdown';
import * as smartpromise from '@push.rocks/smartpromise';
import * as SweetScroll from 'sweet-scroll';
import * as smartstate from '@push.rocks/smartstate';
import * as smartrx from '@push.rocks/smartrx';
import * as smartstring from '@push.rocks/smartstring';
import * as smarturl from '@push.rocks/smarturl';
import * as typedrequest from '@api.global/typedrequest';
export {
smartdelay,
smartmarkdown,
smartpromise,
SweetScroll,
smartstate,
smartrx,
smartstring,
smarturl,
typedrequest
};

View File

@ -9,19 +9,8 @@ export { DomTools, type IDomToolsContructorOptions } from './domtools.classes.do
export { TypedRequest } from '@api.global/typedrequest';
export { type IWebSetupConstructorOptions } from '@push.rocks/websetup';
import * as allPlugins from './domtools.plugins.js';
export const plugins = {
smartdelay: allPlugins.smartdelay,
smartmarkdown: allPlugins.smartmarkdown,
smartpromise: allPlugins.smartpromise,
SweetScroll: allPlugins.SweetScroll,
smartstate: allPlugins.smartstate,
smartrx: allPlugins.smartrx,
smartstring: allPlugins.smartstring,
smarturl: allPlugins.smarturl,
typedrequest: allPlugins.typedrequest,
};
import * as plugins from './domtools.pluginexports.js';
export { plugins };
// type exports
import type { rxjs } from '@push.rocks/smartrx';