akrabat commented on a change in pull request #2369: document how to add swift 
dependencies
URL: 
https://github.com/apache/incubator-openwhisk/pull/2369#discussion_r121860935
 
 

 ##########
 File path: docs/actions.md
 ##########
 @@ -659,6 +661,42 @@ docker run --rm -it -v "$(pwd):/owexec" 
openwhisk/swift3action bash
   echo '_run_main(mainFunction:main)' >> /swift3Action/spm-build/main.swift
   ```
 
+  Copy any additional source files to `/swift3Action/spm-build/`
+
+- Create Package.swift
+  If you need to add dependencies create a Package.swift file like the 
following:
+  ```swift
+  import PackageDescription
+  
+  let package = Package(
+    name: "Action",
+        dependencies: [
+            .Package(url: "https://github.com/IBM-Swift/Kitura-net.git";, 
"1.0.1"),
+            .Package(url: "https://github.com/IBM-Swift/SwiftyJSON.git";, 
"14.2.0"),
+            .Package(url: "https://github.com/IBM-Swift/swift-watson-sdk.git";, 
"0.4.1"),
+            .Package(url: 
"https://github.com/apple/example-package-deckofplayingcards.git";, 
majorVersion: 3)
+        ]
+  )
+  ```
 
 Review comment:
   Indentation should be so that "name" and "dependencies" are the same level.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to