-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix space in upm package replacement [ATLAS-1206] (#177)
## Description The regex to execute value substition for the `package.json` file assumes spaces around the properties. I removed the whole line patching logic with a two step copy setup. The task first copies the package.json to a temp directory in the build dir and adjustst the content according to the set properties. The main package copy spec will draw the content from two locations 1. the main package dir 2. the temp directory where only the adjusted package.json is located During copy only the package.json file form the temp dir will be taken into account. The solution at hand is sadly not the best to continue going forward. But I wanted a simple fix now and deal with a proper solution (parsing the whole json instead of doing line matching). The changes are quite big because I wanted to implement another set of parameters on top which I removed again. But I already refactored the test setup to make the setup less verbose (still quite verbose). I also bound the version from the `package.json` file as the default value for the archive version. ## Changes * ![FIX] space recognision in upm package replacement regex * ![IMPROVE] test setup for upm pack spec * ![IMPROVE] default version for upm pack from `package.json` [NEW]: https://resources.atlas.wooga.com/icons/icon_new.svg "New" [ADD]: https://resources.atlas.wooga.com/icons/icon_add.svg "Add" [IMPROVE]: https://resources.atlas.wooga.com/icons/icon_improve.svg "Improve" [CHANGE]: https://resources.atlas.wooga.com/icons/icon_change.svg "Change" [FIX]: https://resources.atlas.wooga.com/icons/icon_fix.svg "Fix" [UPDATE]: https://resources.atlas.wooga.com/icons/icon_update.svg "Update" [BREAK]: https://resources.atlas.wooga.com/icons/icon_break.svg "Remove" [REMOVE]: https://resources.atlas.wooga.com/icons/icon_remove.svg "Remove" [IOS]: https://resources.atlas.wooga.com/icons/icon_iOS.svg "iOS" [ANDROID]: https://resources.atlas.wooga.com/icons/icon_android.svg "Android" [WEBGL]: https://resources.atlas.wooga.com/icons/icon_webGL.svg "WebGL" [GRADLE]: https://resources.atlas.wooga.com/icons/icon_gradle.svg "GRADLE" [UNITY]: https://resources.atlas.wooga.com/icons/icon_unity.svg "Unity" [LINUX]: https://resources.atlas.wooga.com/icons/icon_linux.svg "Linux" [WIN]: https://resources.atlas.wooga.com/icons/icon_windows.svg "Windows" [MACOS]: https://resources.atlas.wooga.com/icons/icon_iOS.svg "macOS"
- Loading branch information
Showing
5 changed files
with
299 additions
and
90 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
Oops, something went wrong.