README
@boost-web/core
Web development utilities base to boost productivity
Installation
Using npm:
npm install --save-dev @boost-web/core
Usage
Setup Dependencies
Add a container/ directory in your source root (Usually src/ directory)
Then, add your dependencies with one file per dependency. For example, to add security:
src/
container/
security.ts
Contents of security.ts file:
import {DefaultSecurityService, SecurityService} from '@boost-web/core'
export default DefaultSecurityService as SecurityService;
Using Dependencies
Import a dependency from the container as:
import _securityService from 'container/security';
Available Abstract Services
ApplicationServiceConfigServiceHttpServicei18nService- Security
SecurityServiceAuthService
- User interface
BusyBarServiceColorServiceIconServiceDialogServiceIconServiceModalServiceFormServiceFormValidationService
Available Implementations
ApplicationService-SvelteAppConfigService-GetDefaultConfigService()HttpService-FetchHttpServiceuses browser's builtinfetch()methodi18nService-DefaultI18nService- Security
SecurityService-DefaultSecurityServiceAuthService-DefaultAuthService
- User interface
BusyBarService- From@boost-web/plugin-topbarpackage useTopBarServiceColorService- Use@boost-web/plugin-bootstrappackageIconService- Use@boost-web/plugin-fontawesomepackageDialogService- Use@boost-web/plugin-bootstrappackageModalService- Use@boost-web/plugin-bootstrappackageFormService- Use@boost-web/plugin-bootstrappackageFormValidationService- Use@boost-web/plugin-bootstrappackage