Skip to content

Commit 43fc53d

Browse files
Remove Bazel build (#832)
1 parent ae9a570 commit 43fc53d

29 files changed

+10
-615
lines changed

.bazelrc

-1
This file was deleted.

.bazelversion

-1
This file was deleted.

.github/workflows/artifactory.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@ jobs:
2626
mv .build/documentation/archive/Nodes.doccarchive Documentation
2727
- name: Archive
2828
run: >
29-
tar -czf "Nodes-${GITHUB_REF_NAME}.tar.gz"
30-
BUILD.bazel
31-
Documentation
32-
Sources
33-
WORKSPACE.bazel
34-
bazel
29+
tar -czf "Nodes-${GITHUB_REF_NAME}.tar.gz" Sources Documentation
3530
- name: Upload
3631
run: >
3732
jf rt u

.github/workflows/bazel.yml

-26
This file was deleted.

BUILD.bazel

-157
This file was deleted.

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
 
77
[![Xcode](https://github.com/TinderApp/Nodes/actions/workflows/xcode.yml/badge.svg?event=push)](https://github.com/TinderApp/Nodes/actions/workflows/xcode.yml)
88
 
9-
[![Bazel](https://github.com/TinderApp/Nodes/actions/workflows/bazel.yml/badge.svg?event=push)](https://github.com/TinderApp/Nodes/actions/workflows/bazel.yml)
10-
 
119
[![DocC](https://github.com/TinderApp/Nodes/actions/workflows/docc.yml/badge.svg?event=push)](https://github.com/TinderApp/Nodes/actions/workflows/docc.yml)
1210
 
1311
[![Genesis](https://github.com/TinderApp/Nodes/actions/workflows/genesis.yml/badge.svg?event=push)](https://github.com/TinderApp/Nodes/actions/workflows/genesis.yml)

Sources/NodesGenerator/Resources.swift

-18
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,12 @@
44

55
import Foundation
66

7-
#if BAZEL
8-
import PathKit
9-
#endif
10-
117
internal final class Resources {
128

13-
#if BAZEL
14-
15-
internal func url(forResource resource: String, withExtension extension: String) -> URL? {
16-
try? Path(Bundle(for: Resources.self).bundlePath)
17-
.recursiveChildren()
18-
.first { $0.lastComponentWithoutExtension == resource && $0.extension == `extension` }?
19-
.url
20-
.resolvingSymlinksInPath()
21-
}
22-
23-
#else
24-
259
internal func url(forResource resource: String, withExtension extension: String) -> URL? {
2610
let bundle: Bundle = .moduleRelativeToExecutable ?? .module
2711
return bundle.url(forResource: resource, withExtension: `extension`)
2812
}
29-
30-
#endif
3113
}
3214

3315
extension Bundle {

Tests/NodesGeneratorTests/PresetGeneratorTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import Nimble
66
@testable import NodesGenerator
7+
import SnapshotTesting
78
import XCTest
89

910
final class PresetGeneratorTests: XCTestCase {

Tests/NodesGeneratorTests/StencilContextsTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import Nimble
66
@testable import NodesGenerator
7+
import SnapshotTesting
78
import XCTest
89

910
final class StencilContextsTests: XCTestCase, TestFactories {

Tests/NodesGeneratorTests/StencilRendererTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import Nimble
66
import NodesGenerator
7+
import SnapshotTesting
78
import XCTest
89

910
final class StencilRendererTests: XCTestCase, TestFactories {

Tests/NodesGeneratorTests/StencilTemplateTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import Nimble
66
@testable import NodesGenerator
7+
import SnapshotTesting
78
import XCTest
89

910
final class StencilTemplateTests: XCTestCase, TestFactories {

Tests/NodesGeneratorTests/Support/AssertSnapshot.swift

-98
This file was deleted.

Tests/NodesGeneratorTests/UIFrameworkTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import Codextended
66
import Nimble
77
@testable import NodesGenerator
8+
import SnapshotTesting
89
import XCTest
910
import Yams
1011

0 commit comments

Comments
 (0)