Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
77c946c
composer.json - updated suggestions
Gappa Feb 5, 2020
1b9a319
editor config
Gappa Apr 29, 2020
4ad1e2e
gitignore
Gappa Apr 29, 2020
f5ae0ee
update composer, fix tests
Gappa Apr 29, 2020
1275282
psr-4
Gappa Apr 29, 2020
c5a57c4
phpstan fixes
Gappa Apr 29, 2020
f7f36fd
code style
Gappa Apr 29, 2020
5b71095
fix tests, phpstan
Gappa Apr 29, 2020
73ab23c
code style
Gappa Apr 29, 2020
a7d0305
composer.json - cleanup, added suggestions for css/js minification
Gappa Apr 29, 2020
41098be
Added CssMinFilter, JsMinFilter, updated LessFilter + tests
Gappa Apr 29, 2020
c39ba32
merge, fix tests
jiriferkl Jul 15, 2019
96be3cc
phpstan, fixes
Gappa Apr 30, 2020
6612639
phpstan.neon
Gappa Jun 10, 2020
c8fa123
refactoring
Gappa Jun 10, 2020
489e0ab
createCssLoader & createJavaScriptLoader: $appendLastModified default…
Gappa Jun 10, 2020
b10b2a7
DefaultOutputNamingConvetion - insert batch name by default
Gappa Jun 10, 2020
40d86a4
remove dead code
Gappa Jun 10, 2020
828741c
WebLoader component: compatibility with Nette 3
EdaCZ Oct 19, 2020
8548c0e
Merge pull request #144 from freema/patch-1
EdaCZ Oct 19, 2020
724d91f
remove coffeescript support
Gappa Feb 27, 2021
8947cc1
fix scss tests
Gappa Feb 27, 2021
ee9cd41
remove nette/forms dev dependency
Gappa Feb 27, 2021
9a6ba12
phpstan - increase memory
Gappa Feb 27, 2021
9a7b828
php 7.4, add hidden dependencies
Gappa Feb 27, 2021
17f7f56
php 7.4, remove useless stuff
Gappa Feb 28, 2021
c579c73
Suggest nette/safe-stream
Gappa Feb 28, 2021
a0472b9
fix typo
Gappa Feb 28, 2021
fe9aa5b
Use Nette\Utils\FileSystem::write instead of plain file_put_contents
Gappa Feb 28, 2021
4663865
Use Nette\Utils\FileSystem::normalizePath() instead of a custom one
Gappa Feb 28, 2021
067924c
update .gitignore
Gappa Feb 28, 2021
7306e0c
Update README.md
Gappa Feb 28, 2021
86c976f
Fix PHP 7.4 errors
Gappa Feb 28, 2021
e21edb7
initialize typed property
Ciki May 25, 2021
f878a6c
initialize typed property
Ciki May 25, 2021
46f32fa
Merge pull request #2 from Ciki/patch-2
Gappa May 31, 2021
5b33b0d
Merge pull request #1 from Ciki/patch-1
Gappa May 31, 2021
2c9929f
remove joinfiles
Gappa Jul 27, 2021
36c7b50
Added renderInline, renderUrl, refactoring
Gappa Jul 28, 2021
4b18c88
Update Compiler.php
Gappa Jul 28, 2021
97a23fb
Merge branch 'master' of github.com:Gappa/WebLoader
Gappa Jul 28, 2021
243b64f
fixes
Gappa Jul 28, 2021
b398994
use ::class
Gappa Nov 24, 2021
8e5b39c
update packages & phpunit
Gappa Nov 24, 2021
e243f18
update phpstan
Gappa Nov 24, 2021
9eac7fd
refactoring
Gappa Nov 24, 2021
9939fc4
Extension refactoring
Gappa Nov 24, 2021
d18d66a
Experimental feature to enable adding batches from other extensions
Gappa Nov 24, 2021
5f34bd9
refactoring
Gappa Nov 24, 2021
b9f7564
update phpunit xsd
Gappa Nov 24, 2021
f80ff9c
refactoring, add test
Gappa Nov 25, 2021
d851cd3
refactoring
Gappa Nov 25, 2021
b73fda4
phpstan ignore error
Gappa Nov 25, 2021
387a3d2
composer updates
Gappa Jun 6, 2022
1eb7455
bump deps, fixes
Gappa Jun 6, 2022
20c8b1c
syntax update, phpstan, code style
Gappa Jun 7, 2022
284e22b
update php version
Gappa Sep 6, 2022
ac5fa2c
add return typehint
Gappa Sep 6, 2022
0224bee
Allow nette/utils 4.x, cleanup
Gappa Jan 23, 2023
7182125
merge
Gappa Aug 8, 2024
be7a69d
fixes #6
Gappa Aug 8, 2024
9f5a72d
update deps and tools
Gappa Aug 8, 2024
747adf0
phpstan fixes
Gappa Aug 8, 2024
6bbe918
fixes #4 - this feature has been removed
Gappa Aug 8, 2024
37ff51c
dev stuff
Gappa Aug 8, 2024
552c7cf
remove arguments from render method
Gappa Aug 9, 2024
ee59aef
Switchable output type during component creation
Gappa Aug 9, 2024
dfafe20
GenerateCommand - symfony/console 7 update
Gappa Aug 30, 2024
4966648
remove http auth from url
Gappa Feb 28, 2025
388066c
Merge branch 'master' of github.com:Gappa/WebLoader
Gappa Mar 25, 2025
c1f269c
update deps, phpstan fixes
Gappa Mar 25, 2025
565cd11
ScssFilter - update
Gappa May 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
285 changes: 285 additions & 0 deletions .dev/phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,285 @@
<?xml version="1.0"?>
<ruleset name="Nelson Coding Standards"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../vendor/squizlabs/php_codesniffer/phpcs.xsd"
>
<!-- Basic rule PSR12 -->
<rule ref="PSR12">
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
<exclude name="Generic.Files.LineLength.TooLong"/>
<exclude name="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase"/>
<exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
<exclude name="PSR2.Methods.FunctionCallSignature.EmptyLine"/>
<exclude name="PSR2.Methods.FunctionCallSignature.MultipleArguments"/>
<exclude name="PSR2.Methods.FunctionCallSignature.Indent"/>
<exclude name="PSR12.Files.FileHeader.SpacingAfterBlock"/>
<exclude name="PSR12.Classes.ClassInstantiation.MissingParentheses"/>
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine"/>
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.CloseParenthesisLine"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.EmptyLine"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.UseOneParamPerLine"/>
</rule>

<rule ref="Generic.Formatting.SpaceAfterCast">
<properties>
<property name="spacing" value="1" />
</properties>
</rule>

<!-- Tabs -->
<arg name="tab-width" value="4"/>
<rule ref="Generic.WhiteSpace.ScopeIndent">
<properties>
<property name="exact" value="false"/>
<property name="indent" value="4"/>
<property name="tabIndent" value="true"/>
</properties>
</rule>

<!-- Custom stuff -->
<rule ref="SlevomatCodingStandard.ControlStructures.NewWithoutParentheses"/>
<rule ref="SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation"/>
<rule ref="SlevomatCodingStandard.Arrays.MultiLineArrayEndBracketPlacement"/>
<rule ref="SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace"/>
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="spacing" value="1"/>
<property name="ignoreNewlines" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Attributes.AttributesOrder">
<properties>
<property name="orderAlphabetically" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Attributes.DisallowAttributesJoining"/>
<rule ref="SlevomatCodingStandard.Attributes.DisallowMultipleAttributesPerLine"/>
<rule ref="SlevomatCodingStandard.Attributes.RequireAttributeAfterDocComment"/>
<rule ref="SlevomatCodingStandard.Classes.BackedEnumTypeSpacing"/>
<rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility"/>
<rule ref="SlevomatCodingStandard.Classes.ClassMemberSpacing">
<properties>
<property name="linesCountBetweenMembers" value="1"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Classes.ClassStructure">
<properties>
<property name="groups" type="array">
<element value="uses"/>
<element value="enum cases"/>
<element value="public constants, protected constants, private constants"/>
<element value="public static properties, protected static properties, private static properties"/>
<element value="public properties, protected properties, private properties"/>

<!-- Constructor is first, then all public methods, then protected/private methods and magic methods are last -->
<element value="constructor"/>
<element value="static constructors"/>
<element value="destructor"/>
<element value="magic methods"/>
<element value="all public methods"/>
<element value="all protected methods"/>
<element value="all private methods"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Classes.ConstantSpacing"/>
<!-- <rule ref="SlevomatCodingStandard.Classes.DisallowConstructorPropertyPromotion"/>-->
<rule ref="SlevomatCodingStandard.Classes.DisallowLateStaticBindingForConstants"/>
<rule ref="SlevomatCodingStandard.Classes.DisallowMultiConstantDefinition"/>
<rule ref="SlevomatCodingStandard.Classes.DisallowMultiPropertyDefinition"/>
<rule ref="SlevomatCodingStandard.Classes.DisallowStringExpressionPropertyFetch"/>
<rule ref="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces">
<properties>
<property name="linesCountAfterOpeningBrace" value="0"/>
<property name="linesCountBeforeClosingBrace" value="0"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Classes.EnumCaseSpacing"/>
<!-- <rule ref="SlevomatCodingStandard.Classes.ForbiddenPublicProperty"/>-->
<rule ref="SlevomatCodingStandard.Classes.MethodSpacing">
<properties>
<property name="minLinesCount" value="2"/>
<property name="maxLinesCount" value="2"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/>
<rule ref="SlevomatCodingStandard.Classes.ParentCallSpacing"/>
<rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration"/>
<rule ref="SlevomatCodingStandard.Classes.PropertySpacing">
<properties>
<property name="minLinesCountBeforeWithComment" value="0"/>
<property name="maxLinesCountBeforeWithComment" value="1"/>
<property name="minLinesCountBeforeWithoutComment" value="0"/>
<property name="maxLinesCountBeforeWithoutComment" value="1"/>
</properties>
</rule>
<!-- <rule ref="SlevomatCodingStandard.Classes.RequireAbstractOrFinal"/>-->
<rule ref="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion"/>
<rule ref="SlevomatCodingStandard.Classes.RequireMultiLineMethodSignature"/>
<rule ref="SlevomatCodingStandard.Classes.RequireSelfReference"/>
<!-- <rule ref="SlevomatCodingStandard.Classes.RequireSingleLineMethodSignature"/>-->
<!-- <rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/>-->
<!-- <rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/>-->
<!-- <rule ref="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming"/>-->
<!-- <rule ref="SlevomatCodingStandard.Classes.SuperfluousErrorNaming"/>-->
<!-- <rule ref="SlevomatCodingStandard.Classes.SuperfluousTraitNaming"/>-->
<rule ref="SlevomatCodingStandard.Classes.TraitUseDeclaration"/>
<!-- <rule ref="SlevomatCodingStandard.Classes.TraitUseSpacing">-->
<!-- <properties>-->
<!-- <property name="linesCountBeforeFirstUseWhenFirstInClass" value="0"/>-->
<!-- <property name="linesCountBeforeFirstUse" value="1"/>-->
<!-- <property name="linesCountBetweenUses" value="0"/>-->
<!-- <property name="linesCountAfterLastUse" value="1"/>-->
<!-- <property name="linesCountAfterLastUseWhenLastInClass" value="0"/>-->
<!-- </properties>-->
<!-- </rule>-->
<rule ref="SlevomatCodingStandard.Classes.UselessLateStaticBinding"/>

<rule ref="SlevomatCodingStandard.Commenting.AnnotationName"/>
<rule ref="SlevomatCodingStandard.Commenting.DeprecatedAnnotationDeclaration"/>
<!-- <rule ref="SlevomatCodingStandard.Commenting.DisallowCommentAfterCode"/>-->
<rule ref="SlevomatCodingStandard.Commenting.ForbiddenAnnotations"/>
<rule ref="SlevomatCodingStandard.Commenting.ForbiddenComments"/>
<rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing"/>
<rule ref="SlevomatCodingStandard.Commenting.EmptyComment"/>
<rule ref="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment"/>
<rule ref="SlevomatCodingStandard.Commenting.RequireOneLineDocComment"/>
<rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment">
<properties>
<property name="traversableTypeHints" type="array">
<element value="\Doctrine\Common\Collections\Collection"/>
<element value="\Nelson\Contracts\PageableSet"/>
</property>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment"/>

<!-- <rule ref="SlevomatCodingStandard.Complexity.Cognitive"/>-->
<!-- <rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>-->
<rule ref="SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing"/>
<!-- <rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"/>-->
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowContinueWithoutIntegerOperandInSwitch"/>
<!-- <rule ref="SlevomatCodingStandard.ControlStructures.DisallowEmpty"/>-->
<!-- <rule ref="SlevomatCodingStandard.ControlStructures.DisallowNullSafeObjectOperator"/>-->
<!-- <rule ref="SlevomatCodingStandard.ControlStructures.DisallowShortTernaryOperator"/>-->
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowTrailingMultiLineTernaryOperator"/>
<!-- <rule ref="SlevomatCodingStandard.ControlStructures.NewWithParentheses"/>-->
<rule ref="SlevomatCodingStandard.ControlStructures.NewWithoutParentheses"/>
<rule ref="SlevomatCodingStandard.ControlStructures.RequireMultiLineCondition"/>
<!-- <rule ref="SlevomatCodingStandard.ControlStructures.RequireMultiLineTernaryOperator"/>-->
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator"/>
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator"/>
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator"/>
<rule ref="SlevomatCodingStandard.ControlStructures.RequireShortTernaryOperator"/>
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison"/>
<rule ref="SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn"/>
<rule ref="SlevomatCodingStandard.ControlStructures.UselessTernaryOperator"/>

<rule ref="SlevomatCodingStandard.Exceptions.DeadCatch"/>
<rule ref="SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch"/>

<!-- <rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">-->
<!-- <properties>-->
<!-- <property name="rootNamespaces" type="array">-->
<!-- <element key="app" value="App"/>-->
<!-- <element key="libs/Nelson" value="Nelson"/>-->
<!-- <element key="libs/Deploy" value="Deploy"/>-->
<!-- <element key="tests" value="Tests"/>-->
<!-- </property>-->
<!-- </properties>-->
<!-- </rule>-->

<rule ref="SlevomatCodingStandard.Functions.ArrowFunctionDeclaration">
<properties>
<property name="spacesCountAfterKeyword" value="0"/>
<property name="spacesCountBeforeArrow" value="1"/>
<property name="spacesCountAfterArrow" value="1"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/>
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/>
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/>
<!-- <rule ref="SlevomatCodingStandard.Functions.StrictCall"/>--> <!-- problematic, it changes meaning of the code -->
<rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure"/>
<!-- <rule ref="SlevomatCodingStandard.Functions.UnusedParameter"/>-->
<rule ref="SlevomatCodingStandard.Functions.UselessParameterDefaultValue"/>

<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
<rule ref="SlevomatCodingStandard.Namespaces.DisallowGroupUse"/>
<!-- <rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants"/>-->
<!-- <rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions"/>-->
<!-- <rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/>-->
<rule ref="SlevomatCodingStandard.Namespaces.NamespaceDeclaration"/>
<rule ref="SlevomatCodingStandard.Namespaces.NamespaceSpacing"/>
<rule ref="SlevomatCodingStandard.Namespaces.RequireOneNamespaceInFile"/>
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/>
<rule ref="SlevomatCodingStandard.Namespaces.UseSpacing"/>
<rule ref="SlevomatCodingStandard.Namespaces.UselessAlias"/>
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
<properties>
<property name="searchAnnotations" value="true"/>
</properties>
</rule>

<!-- <rule ref="SlevomatCodingStandard.Numbers.DisallowNumericLiteralSeparator"/>-->

<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators"/>
<rule ref="SlevomatCodingStandard.Operators.NegationOperatorSpacing"/>
<rule ref="SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator"/>
<!-- <rule ref="SlevomatCodingStandard.Operators.RequireOnlyStandaloneIncrementAndDecrementOperators"/>-->
<rule ref="SlevomatCodingStandard.Operators.SpreadOperatorSpacing"/>

<!-- <rule ref="SlevomatCodingStandard.PHP.DisallowReference"/>-->
<rule ref="SlevomatCodingStandard.PHP.ShortList"/>
<rule ref="SlevomatCodingStandard.PHP.TypeCast"/>
<rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/>

<rule ref="SlevomatCodingStandard.Strings.DisallowVariableParsing"/>

<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="declareOnFirstLine" value="false"/>
<property name="linesCountBeforeDeclare" value="1"/>
<property name="linesCountAfterDeclare" value="1"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
</properties>
</rule>
<!-- <rule ref="SlevomatCodingStandard.TypeHints.DisallowArrayTypeHintSyntax"/>-->
<!-- <rule ref="SlevomatCodingStandard.TypeHints.DisallowMixedTypeHint"/>-->
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/>
<rule ref="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition"/>
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/>
<!-- <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint"/>-->
<!-- <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing"/>-->
<!-- <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint"/>-->
<!-- <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint"/>-->
<!-- <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/>-->
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat"/>
<rule ref="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint"/>

<!-- <rule ref="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable"/>-->
<rule ref="SlevomatCodingStandard.Variables.DisallowVariableVariable"/>
<rule ref="SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable"/>
<rule ref="SlevomatCodingStandard.Variables.UnusedVariable">
<properties>
<property name="ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Variables.UselessVariable"/>

<rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces"/>

<rule ref="Squiz.Commenting.DocCommentAlignment"/>
<rule ref="Squiz.Scope.MemberVarScope"/>
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="spacing" value="1"/>
<property name="ignoreNewlines" value="true"/>
</properties>
</rule>
</ruleset>
25 changes: 25 additions & 0 deletions .dev/phpstan/phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
parameters:
tmpDir: %currentWorkingDirectory%/temp/phpstan/

paths:
- %currentWorkingDirectory%/src/
- %currentWorkingDirectory%/tests/

excludePaths:
- %currentWorkingDirectory%/tests/temp/*

level: 8

ignoreErrors:
-
message: '#Parameter \#1 \$filter of method WebLoader\\Compiler::addFilter\(\) expects callable\(\): mixed, 4 given\.#'
path: %currentWorkingDirectory%/tests/CompilerTest.php
-
message: '#Parameter \#1 \$filter of method WebLoader\\Compiler::addFileFilter\(\) expects callable\(\): mixed, 4 given\.#'
path: %currentWorkingDirectory%/tests/CompilerTest.php
-
message: '#Access to an undefined property WebLoader\\Filter\\VariablesFilter::\$bar\.#'
path: %currentWorkingDirectory%/tests/Filter/VariablesFilterTest.php
-
message: '#Property WebLoader\\Nette\\Diagnostics\\Panel::\$root is never read, only written.#'
path: %currentWorkingDirectory%/src/Nette/Diagnostics/Panel.php
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig is awesome: http://EditorConfig.org

root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = tab
indent_size = 3
charset = utf-8
trim_trailing_whitespace = true

[{*.svg,.htaccess,*.expected}]
insert_final_newline = false
18 changes: 15 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
vendor
# Masks
*.bak

# Files
composer.lock
.idea
.editorconfig
.phpunit.result.cache
tests/.phpunit.cache/

# Dirs
vendor/
temp/
.idea/

# Custom
run
composer.phar
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
WebLoader [![Build Status](https://secure.travis-ci.org/janmarek/WebLoader.png?branch=master)](http://travis-ci.org/janmarek/WebLoader)
WebLoader
=======================

Component for CSS and JS files loading
Component for CSS and JS files loading.

Author: Jan Marek
Author: [Jan Marek](https://github.com/janmarek)
Licence: MIT

Updated for Nette 3/3.1 and PHP 8.0 by [Gappa](https://github.com/Gappa).

Example
-------

Expand Down Expand Up @@ -75,9 +77,6 @@ webloader:

js:
default:
remoteFiles:
- http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js
- http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js
files:
- %appDir%/../libs/nette/nette/client-side/netteForms.js
- web.js
Expand Down
Loading