Skip to content

Instantly share code, notes, and snippets.

@joshtynjala
Created February 2, 2024 17:53
Show Gist options
  • Save joshtynjala/7652881ff6b2dc53fc25f2c74d38c2c5 to your computer and use it in GitHub Desktop.
Save joshtynjala/7652881ff6b2dc53fc25f2c74d38c2c5 to your computer and use it in GitHub Desktop.
Use dependsOn in tasks.json to build a library project SWC before an app project SWF in vscode-as3mxml
{
"version": "2.0.0",
"tasks": [
{
"type": "actionscript",
"debug": true,
"asconfig": "LibraryProject/asconfig.json",
"group": "build",
"problemMatcher": [],
"label": "ActionScript: compile debug - LibraryProject/asconfig.json",
},
{
"type": "actionscript",
"debug": true,
"asconfig": "AppProject/asconfig.json",
"group": "build",
"problemMatcher": [],
"label": "ActionScript: compile debug - AppProject/asconfig.json",
"dependsOn": ["ActionScript: compile debug - LibraryProject/asconfig.json"]
}
]
}
@joshtynjala
Copy link
Author

I also created an example workspace that contains both a SWC library project and an AIR app project:

BowlerHatLLC/vscode-as3mxml-example-workspace-app-and-library

It contains a similar task.json that builds the library first. It also contains a launch.json that runs the AIR app in the debugger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment