-
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Resolve SCSS files correctly when using symlinked paths (#866)
* [BUGFIX] Resolve SCSS files correctly when using symlinked paths When an extension is symlinked, e.g. by using Composer path repositories, importing scss files from other extensions can fail. This is now fixed in two ways. The backwards compatible way properly resolves the path to the final file using the visual path instead of the real path. for future imports, the extension path is added as import path so that imports can be done relative to this directory as well. As a last option for users only relying on the PHP parser, files can also be imported using the well know TYPO3 syntax EXT:ext_key/Resources/Public/Scss/my.scss * [TASK] Add tests for relative and core syntax handling * [BUGFIX] Correct paths to files * [BUGFIX] Fix relative path detection * [BUGFIX] Use absolute path to files * [BUGFIX] Ensure relative paths start with dots * [TASK] Use existing $absoluteFilename * [TASK] Additional test for absolute include containing a relative path * [TASK] Bump actions/checkout to v2 * [BUGFIX] Use absolute tempDirectory * [TASK] Trigger error if file not found * [TASK] Throw exception if file not found * [BUGFIX] Use exception class * [TASK] Show full path in exception * [TASK] Sleep before every funnctional test * [TASK] Remove debugging exception * [TASK] Remove sleep * [BUGFIX] Use settings instead of recalculation * [TASK] Add test for legacy workaround include Co-authored-by: Benjamin Kott <benjamin.kott@outlook.com> Co-authored-by: Gilbertsoft <25326036+gilbertsoft@users.noreply.github.com>
- Loading branch information
1 parent
bf94f47
commit 1e4d71e
Showing
6 changed files
with
50 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Tests/Packages/demo_package/Resources/Private/Scss/CoreSyntax/theme.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "EXT:bootstrap_package/Resources/Public/Scss/Theme/theme"; |
1 change: 1 addition & 0 deletions
1
Tests/Packages/demo_package/Resources/Private/Scss/Legacy/theme.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "../../../../../../../.build/web/typo3conf/ext/bootstrap_package/Resources/Public/Scss/Theme/theme"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters