Skip to content

Commit f57d1d0

Browse files
committed
Chore:
- Added README.md, LICENSE, CHANGELOG.md, .editorconfig files;
1 parent 9006591 commit f57d1d0

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
indent_size = 4
10+
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
### Added
11+
- Created five twig functions:
12+
- encore_entry_js_files - returns script files;
13+
- encore_entry_css_files - returns link files;
14+
- encore_entry_script_tags - renders script tags to a template;
15+
- encore_entry_link_tags - renders link tags to a template;
16+
- encore_entry_exists - checks if such entry exists;

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2004-2018 Fabien Potencier
2+
Copyright (c) 2022 Oleksii Bulba
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is furnished
9+
to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in all
12+
copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
THE SOFTWARE.

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Webpack-Encore plugin for Micro framework
2+
3+
This plugin adds several twig functions that help to include script and style html tags to twig templates from webpack-encore entries.
4+
5+
## Contributing
6+
7+
Please feel free to open pull request or create an issue, they are more than welcome!
8+
9+
## Authors
10+
11+
The code was taken and adapted from `symfony/webpack-encore-bundle` that was created by [Symfony Community](https://symfony.com/contributors) and [Fabien Potencier](mailto:[email protected]) in particular
12+
Adapted for Micro framework plugin by Oleksii Bulba.
13+
14+
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
15+
16+
## License
17+
[MIT](https://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)