Last active
September 29, 2020 15:09
-
-
Save joshtynjala/2ef852272dc25c73502ce408a96ec3de to your computer and use it in GitHub Desktop.
asconfig.json: How to use the "extends" field to define different options for debug and release builds
This file contains hidden or 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
{ | |
"config": "air", | |
"compilerOptions": { | |
"source-path": "src" | |
}, | |
"application": "src/MyProjectDebug-app.xml", | |
"mainClass": "MyProject" | |
} |
This file contains hidden or 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
{ | |
"extends": "asconfig.json", | |
"application": "src/MyProjectRelease-app.xml" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
asconfig.json is the base file that defines most of the project's configuration options.
asconfig.release.json inherits everything from asconfig.json by using the
extends
field. It can override a subset of the configuration that needs to be different. In other words, asconfig.json is treated kind of like a template.In this example, asconfig.json defines the options required for a debug build, while asconfig.release.json overrides the options that need to be different for a release build.