ezitisitis / component-factory
Some description here
v1.1.2
2021-05-06 20:40 UTC
Requires (Dev)
- symfony/console: ^5.1.4
- symfony/filesystem: ^5.2.6
README
This package is made to ease a little "element-component" pattern development.
Setup
This section contains all the information regarding to setup and environment configuration.
Composer
To install this package run:
composer require --dev ezitisitis/component-factory
NB! This package is not thought for production environment.
Config
To publish config execute:
php artisan vendor:publish --tag=component-factory-config
Configurable
.env variable | Config key | Description |
---|---|---|
COMPONENT_FACTORY_COMPONENT_VIEW_PATH |
component-factory.path.component.view |
Defines resource path of component .blade.php files |
COMPONENT_FACTORY_COMPONENT_STYLE_PATH |
component-factory.path.component.style |
Defines resource path of component .scss /.sass files |
COMPONENT_FACTORY_ELEMENT_VIEW_PATH |
component-factory.path.element.view |
Defines resource path of element .blade.php files |
COMPONENT_FACTORY_ELEMENT_STYLE_PATH |
component-factory.path.element.style |
Defines resource path of element .scss /.sass files |
TO-DO
- Add flag in case when livewire is in use.
- Comment config file.
- Comment and document code
- Add tests
- Add check for already existing file
- Refactor