Skip to content

Commit

Permalink
Merge pull request #52 from yutailang0119/project/cleaup
Browse files Browse the repository at this point in the history
Add editing config files
  • Loading branch information
yutailang0119 authored Nov 24, 2024
2 parents 5ea1691 + e75f4d0 commit b053f93
Show file tree
Hide file tree
Showing 7 changed files with 838 additions and 629 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
18 changes: 18 additions & 0 deletions .swift-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"lineLength": 120,
"indentation": {
"spaces": 2
},
"lineBreakBeforeEachArgument": true,
"indentConditionalCompilationBlocks": false,
"prioritizeKeepingFunctionOutputTogether": true,
"rules": {
"AlwaysUseLowerCamelCase": false,
"AmbiguousTrailingClosureOverload": false,
"NoBlockComments": false,
"OrderedImports": true,
"UseLetInEveryBoundCaseVariable": false,
"UseSynthesizedInitializer": false
}
}
50 changes: 29 additions & 21 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,33 @@
import PackageDescription

let package = Package(
name: "ProgressSpinnerKit",
platforms: [
.macOS(.v10_15),
],
products: [
.library(name: "ProgressSpinnerKit", targets: ["ProgressSpinnerKit"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-tools-support-core", from: "0.7.0"),
],
targets: [
.target(name: "ProgressSpinnerKit",
dependencies: [
.product(name: "SwiftToolsSupport",
package: "swift-tools-support-core"),
]),
.testTarget(name: "ProgressSpinnerKitTests",
dependencies: ["ProgressSpinnerKit"]),
.executableTarget(name: "Demo",
dependencies: ["ProgressSpinnerKit"]),
]
name: "ProgressSpinnerKit",
platforms: [
.macOS(.v10_15)
],
products: [
.library(name: "ProgressSpinnerKit", targets: ["ProgressSpinnerKit"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-tools-support-core", from: "0.7.0")
],
targets: [
.target(
name: "ProgressSpinnerKit",
dependencies: [
.product(
name: "SwiftToolsSupport",
package: "swift-tools-support-core"
)
]
),
.testTarget(
name: "ProgressSpinnerKitTests",
dependencies: ["ProgressSpinnerKit"]
),
.executableTarget(
name: "Demo",
dependencies: ["ProgressSpinnerKit"]
),
]
)
Loading

0 comments on commit b053f93

Please sign in to comment.