This commit is contained in:
Christian Treffs 2017-10-08 22:13:15 +02:00
commit c904cb3a96
6 changed files with 149 additions and 0 deletions

93
.gitignore vendored Normal file
View File

@ -0,0 +1,93 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
# Created by https://www.gitignore.io/api/swift,macos
### macOS ###
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## Build generated
build/
DerivedData/
## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint
## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM
## Playgrounds
timeline.xctimeline
playground.xcworkspace
# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
.build/
# CocoaPods - Refactored to standalone file
# Carthage - Refactored to standalone file
# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
# End of https://www.gitignore.io/api/swift,macos

28
Package.swift Normal file
View File

@ -0,0 +1,28 @@
// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "FirebladeECS",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "FirebladeECS",
targets: ["FirebladeECS"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "FirebladeECS",
dependencies: []),
.testTarget(
name: "FirebladeECSTests",
dependencies: ["FirebladeECS"]),
]
)

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# FirebladeECS
A description of this package.

View File

@ -0,0 +1,3 @@
struct FirebladeECS {
var text = "Hello, World!"
}

View File

@ -0,0 +1,16 @@
import XCTest
@testable import FirebladeECS
class FirebladeECSTests: XCTestCase {
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(FirebladeECS().text, "Hello, World!")
}
static var allTests = [
("testExample", testExample),
]
}

6
Tests/LinuxMain.swift Normal file
View File

@ -0,0 +1,6 @@
import XCTest
@testable import FirebladeECSTests
XCTMain([
testCase(FirebladeECSTests.allTests),
])