You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tasks): Support for having dependency tasks (#71)
* Better error handling when bundling scripts fails
* Refactor runTask signature
* Add support for reading assets in tasks and refactor TaskBundleScripts with the new system
* Remove dependencyAssets property
* Use new writeAssets property for TaskGenerateServices
* Support for running dependency tasks when requesting generated file assets
* Lint
* @property {RunTaskCreateAssetData[]} [writeAssets] A list of assets that this task should create when done running.
8
+
* This is useful if you want to modify files in a very basic way. The assets will be created and written to the output location.
9
+
* If the task is run programmatically, nothing is written and the program running the task can handle the result accordingly.
10
+
* Note that if you are not writing some assets as a result of caching, but might write them in the future, you should add them to the `touchedAssets` list.
11
+
* This way other tasks can trigger this task to run if it depends on them.
12
+
* If you need more control over how assets are written, such as writing to a file stream, you can write them manually using
13
+
* the current editor file system. But be sure to list the changed assets in `touchedAssets` as well. Though when using this
14
+
* method, the task won't be able to be used programmatically. Unless you handle this case specifically when the `needsAlltouchedAssets`
15
+
* flag is set to true.
16
+
* @property {import("../../../../src/mod.js").UuidString[]} [touchedAssets] A list of assets that this task touched, or
17
+
* might touch when the task is run a second time. This is used by other tasks for determining if this task needs to run before them.
0 commit comments