forked from player-ui/player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
88 lines (77 loc) · 3.38 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
load("@rules_player//cocoapods:cocoapod.bzl", "assemble_pod", "pod_push")
load("@rules_player//internal:stamp.bzl", "stamp")
load("//:generated.bzl", "PlayerUI", "PlayerUI_Demo", "ui_tests", "unit_tests")
package(default_visibility = ["//visibility:public"])
exports_files([
"VERSION",
"babel.config.js",
"tsconfig.json",
"package.json",
"jest.config.js",
".eslintrc.js",
".prettierrc",
"webpack.config.js",
".editorconfig",
".all-contributorsrc",
"README.md",
])
filegroup(
name = "typings",
srcs = glob(["typings/*"]),
)
PlayerUI(deps = [])
PlayerUI_Demo(deps = [])
unit_tests()
ui_tests()
# Update the version in the podspec
stamp(
name = "PlayerUI_Podspec",
files = ["//:PlayerUI.podspec"],
stable = True,
substitutions = {
"0.0.1-placeholder": "{STABLE_VERSION}",
},
)
assemble_pod(
name = "PlayerUI_Pod",
srcs = glob([
"ios/**/*.swift",
"LICENSE",
]),
data = {
# Core
"//core/player:Player_Bundles_bundle_prod": "ios/packages/core/Resources/",
"//plugins/partial-match-fingerprint/core:PartialMatchFingerprintPlugin_Bundles_bundle_prod": "ios/packages/core/Resources/",
"//core/partial-match-registry:Registry_Bundles_bundle_prod": "ios/packages/core/Resources/",
# Packages
"//core/make-flow:MakeFlow_Bundles_bundle_prod": "ios/packages/test-utils/Resources/",
"//plugins/reference-assets/core:ReferenceAssetsPlugin_Bundles_bundle_prod": "ios/packages/reference-assets/Resources/js/",
# Plugins
"//plugins/async-node/core:AsyncNodePlugin_Bundles_bundle_prod": "ios/plugins/AsyncNodePlugin/Resources/",
"//plugins/beacon/core:BeaconPlugin_Bundles_bundle_prod": "ios/plugins/BaseBeaconPlugin/Resources/",
"//plugins/check-path/core:CheckPathPlugin_Bundles_bundle_prod": "ios/plugins/CheckPathPlugin/Resources/",
"//plugins/common-types/core:CommonTypesPlugin_Bundles_bundle_prod": "ios/plugins/CommonTypesPlugin/Resources/",
"//plugins/common-expressions/core:CommonExpressionsPlugin_Bundles_bundle_prod": "ios/plugins/CommonExpressionsPlugin/Resources/",
"//plugins/computed-properties/core:ComputedPropertiesPlugin_Bundles_bundle_prod": "ios/plugins/ComputedPropertiesPlugin/Resources/",
"//plugins/expression/core:ExpressionPlugin_Bundles_bundle_prod": "ios/plugins/ExpressionPlugin/Resources/",
"//plugins/external-action/core:ExternalActionPlugin_Bundles_bundle_prod": "ios/plugins/ExternalActionPlugin/Resources/",
"//plugins/metrics/core:MetricsPlugin_Bundles_bundle_prod": "ios/plugins/MetricsPlugin/Resources/",
"//plugins/pubsub/core:PubSubPlugin_Bundles_bundle_prod": "ios/plugins/PubSubPlugin/Resources/",
"//plugins/stage-revert-data/core:StageRevertDataPlugin_Bundles_bundle_prod": "ios/plugins/StageRevertDataPlugin/Resources/",
"//plugins/types-provider/core:TypesProviderPlugin_Bundles_bundle_prod": "ios/plugins/TypesProviderPlugin/Resources/",
},
podspec = ":PlayerUI_Podspec",
)
# Push podspec to specs repo
# tag must exist in github first
pod_push(
name = "PlayerUI_Pod_Push",
executable = "bundle exec pod",
globalFlags = [],
podspec = ":PlayerUI_Podspec",
pushFlags = [
# skip tests because it never runs them right
# and they're run as part of the build pipeline anyway
"--skip-tests",
],
)