From 8a38b5ef120f24d8e0d58faf5f74fd55b0f477a9 Mon Sep 17 00:00:00 2001 From: Patrick Balestra Date: Wed, 30 Jan 2019 22:31:12 +0100 Subject: [PATCH] Add example code for build rules --- Docs/ProjectSpec.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Docs/ProjectSpec.md b/Docs/ProjectSpec.md index 40dde69c..09570b6b 100644 --- a/Docs/ProjectSpec.md +++ b/Docs/ProjectSpec.md @@ -487,6 +487,15 @@ targets: - [ ] **outputFiles**: **[String]** - The list of output files - [ ] **outputFilesCompilerFlags**: **[String]** - The list of compiler flags to apply to the output files +```yaml +targets: + MyTarget: + buildRules: + - filePattern: "*.xcassets" + script: generate_assets.py + - fileType: sourcecode.swift + script: pre_process_swift.py +``` ### Target Scheme