Skip to content

Commit 64b7869

Browse files
committed
[feat]: package structure
1 parent ad3d525 commit 64b7869

File tree

13 files changed

+565
-492
lines changed

13 files changed

+565
-492
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
/*.xcodeproj

Configs/SwiftScripts.plist

Lines changed: 0 additions & 28 deletions
This file was deleted.

Package.swift

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1-
// swift-tools-version:4.0
2-
3-
/**
4-
* SwiftScripts
5-
* Copyright (c) Daniel Cech 2019
6-
* Licensed under the MIT license. See LICENSE file.
7-
*/
1+
// swift-tools-version:4.2
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
83

94
import PackageDescription
105

116
let package = Package(
127
name: "SwiftScripts",
138
products: [
14-
.library(name: "SwiftScripts", targets: ["SwiftScripts"])
9+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
10+
.library(
11+
name: "SwiftScripts",
12+
targets: ["SwiftScripts"]),
13+
],
14+
dependencies: [
15+
// Dependencies declare other packages that this package depends on.
16+
// .package(url: /* package url */, from: "1.0.0"),
1517
],
1618
targets: [
19+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
20+
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
1721
.target(
1822
name: "SwiftScripts",
19-
path: "Sources"
20-
)
23+
dependencies: []),
24+
.testTarget(
25+
name: "SwiftScriptsTests",
26+
dependencies: ["SwiftScripts"]),
2127
]
2228
)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# SwiftScripts
2+
3+
A description of this package.

Sources/SwiftScripts.swift

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
struct SwiftScripts {
2+
var text = "Hello, World!"
3+
}

0 commit comments

Comments
 (0)