Fix repo layout for package maintainers (#571)

* Do not ignore lexer subfolder for export as this contains source files and add smarty-lexer as a composer dev-dependency.
* Remove unit tests etc from archive export

Please note that the generated lexer / parser classes are not exactly equivalent, as they have been editing to conform to coding standards afterwards. I did a quick review and there don't seem to be any differences in semantics though.
This commit is contained in:
Simon Wisselink
2020-04-13 22:32:23 +02:00
committed by GitHub
parent 19ef8342aa
commit 48d24b7ad1
3 changed files with 12 additions and 7 deletions

15
.gitattributes vendored
View File

@@ -6,11 +6,14 @@
*.lex text eol=lf
# exclude from git export
/travis.ini export-ignore
/myconfig.ini export-ignore
/.travis.yml export-ignore
/.gitignore export-ignore
/.gitattributes export-ignore
/lexer/ export-ignore
/tests export-ignore
/utilities/ export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/error_reporting.ini export-ignore
/phpunit.sh export-ignore
/phpunit.xml export-ignore
/TODO.md export-ignore
/travis.ini export-ignore

View File

@@ -1,5 +1,6 @@
- remove whitespaces after comments https://github.com/smarty-php/smarty/issues/447
- fix foreachelse on arrayiterators https://github.com/smarty-php/smarty/issues/506
- fix files contained in git export archive for package maintainers https://github.com/smarty-php/smarty/issues/325
- throw SmartyException when setting caching attributes for cacheable plugin https://github.com/smarty-php/smarty/issues/457
- fix errors that occured where isset was replaced with null check such as https://github.com/smarty-php/smarty/issues/453

View File

@@ -40,6 +40,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "6.4.1"
"phpunit/phpunit": "6.4.1",
"smarty/smarty-lexer": "^3.1"
}
}