Skip to content

Commit

Permalink
project scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
intuit-svc authored and adierkens committed Jul 13, 2022
0 parents commit 3c68a76
Showing 1,241 changed files with 108,730 additions and 0 deletions.
104 changes: 104 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"projectName": "player",
"projectOwner": "intuit",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"badgeTemplate": "[![All Contributors](https://img.shields.io/badge/all_contributors-<%= contributors.length %>-orange.svg)](#contributors)",
"commitConvention": "eslint",
"contributors": [
{
"login": "adierkens",
"name": "Adam Dierkens",
"avatar_url": "https://avatars.githubusercontent.com/u/13004162?v=4",
"profile": "https://github.com/adierkens",
"contributions": [
"code",
"doc",
"example",
"maintenance",
"platform",
"test",
"tool"
]
},
{
"login": "spentacular",
"name": "Spencer Hamm",
"avatar_url": "https://avatars.githubusercontent.com/u/1043478?v=4",
"profile": "https://github.com/spentacular",
"contributions": [
"code",
"doc",
"example",
"maintenance",
"platform",
"test",
"tool"
]
},
{
"login": "hborawski",
"name": "Harris Borawski",
"avatar_url": "https://avatars.githubusercontent.com/u/1325154?v=4",
"profile": "https://github.com/hborawski",
"contributions": [
"code",
"design",
"doc",
"example",
"maintenance"
]
},
{
"login": "sugarmanz",
"name": "Jeremiah Zucker",
"avatar_url": "https://avatars.githubusercontent.com/u/9255651?v=4",
"profile": "https://github.com/sugarmanz",
"contributions": [
"code",
"content",
"design",
"doc"
]
},
{
"login": "KetanReddy",
"name": "Ketan Reddy",
"avatar_url": "https://avatars.githubusercontent.com/u/8703262?v=4",
"profile": "https://github.com/KetanReddy",
"contributions": [
"code",
"doc",
"ideas",
"infra"
]
},
{
"login": "brocollie08",
"name": "Brocollie08",
"avatar_url": "https://avatars.githubusercontent.com/u/13474011?v=4",
"profile": "https://github.com/brocollie08",
"contributions": [
"code",
"doc",
"ideas",
"infra"
]
},
{
"login": "kharrop",
"name": "Kelly Harrop",
"avatar_url": "https://avatars.githubusercontent.com/u/24794756?v=4",
"profile": "https://github.com/kharrop",
"contributions": [
"design"
]
}
],
"contributorsPerLine": 6
}
15 changes: 15 additions & 0 deletions .autorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"author": "intuit-svc <opensource-svc@intuit.com>",
"baseBranch": "main",
"versionBranches": true,
"plugins": [
"./scripts/delete-old-prerelease.js",
[
"version-file",
{
"versionFile": "./VERSION",
"publishScript": "./scripts/release.sh"
}
]
]
}
30 changes: 30 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.cache
node_modules
_backup
xcode/Pods
.git
.circleci
.github
.husky
coverage
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
*.xccheckout
profile
*.moved-aside
DerivedData
*.hmap
*.ipa
xcode/Pods/
CoverageData/
bep.json
xcui.json
ios/*/*/Resources/**/*.js
85 changes: 85 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
test --test_output=errors
coverage --combined_report=lcov -- -//jvm/... -//plugins/... -//android/...

build:ci --experimental_remote_cache_compression --experimental_remote_cache_async
test:ci --experimental_remote_cache_compression --experimental_remote_cache_async
coverage:ci --experimental_remote_cache_compression --experimental_remote_cache_async

# TODO: Migrate away from managed directories (https://github.com/bazelbuild/bazel/issues/15463)
# TODO: Re-upgrade to Bazel 6.+
# sync --noincompatible_disable_managed_directories
# query --noincompatible_disable_managed_directories
# build --noincompatible_disable_managed_directories

# Android databinding flags
build --experimental_android_databinding_v2
build --android_databinding_use_v3_4_args
build --android_databinding_use_androidx
build --experimental_google_legacy_api
query --experimental_google_legacy_api

# Android demo app flags
build --noincremental_dexing --fat_apk_cpu=armeabi-v7a,arm64-v8a,x86,x86_64
mobile-install --start=warm

build --bes_results_url=https://app.buildbuddy.io/invocation/
build --bes_backend=grpcs://remote.buildbuddy.io
build --remote_cache=grpcs://remote.buildbuddy.io
build --remote_timeout=3600
build --build_metadata=REPO_URL=https://github.com/player-ui/player.git

build:ci --build_metadata=ROLE=CI --workspace_status_command=./scripts/workspace-status.sh

# Circle large has 4 CPU cores/8GB mem
build:ci --local_cpu_resources=8
build:ci --local_ram_resources=15000
build:ci --config="release"

build:release --stamp --workspace_status_command=./scripts/workspace-status.sh

# Cache action outputs on disk so they persist across output_base and bazel shutdown (eg. changing branches)
build --disk_cache=~/.cache/bazel-disk-cache

build:skip-ios -- \
-//:PlayerUI \
-//:PlayerUI_Pod \
-//:PlayerUI-Demo \
-//:PlayerUI-Unit-Unit \
-//:PlayerUI-Unit-Unit.__internal__.__test_bundle \
-//:PlayerUI-UI-ViewInspectorTests \
-//:PlayerUI-UI-ViewInspectorTests.__internal__.__test_bundle \
-//:PlayerUI-UI-XCUITests \
-//:PlayerUI-UI-XCUITests.__internal__.__test_bundle

# Support for debugging NodeJS tests
# Add the Bazel option `--config=debug` to enable this
# --test_output=streamed
# Stream stdout/stderr output from each test in real-time.
# See https://docs.bazel.build/versions/master/user-manual.html#flag--test_output for more details.
# --test_strategy=exclusive
# Run one test at a time.
# --test_timeout=9999
# Prevent long running tests from timing out
# See https://docs.bazel.build/versions/master/user-manual.html#flag--test_timeout for more details.
# --nocache_test_results
# Always run tests
# --node_options=--inspect-brk
# Pass the --inspect-brk option to all tests which enables the node inspector agent.
# See https://nodejs.org/de/docs/guides/debugging-getting-started/#command-line-options for more details.
# --define=VERBOSE_LOGS=1
# Rules will output verbose logs if the VERBOSE_LOGS environment variable is set. `VERBOSE_LOGS` will be passed to
# `nodejs_binary` and `nodejs_test` via the default value of the `default_env_vars` attribute of those rules.
# --compilation_mode=dbg
# Rules may change their build outputs if the compilation mode is set to dbg. For example,
# mininfiers such as terser may make their output more human readable when this is set. Rules will pass `COMPILATION_MODE`
# to `nodejs_binary` executables via the actions.run env attribute.
# See https://docs.bazel.build/versions/master/user-manual.html#flag--compilation_mode for more details.
test:debug --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results --define=VERBOSE_LOGS=1
# Use bazel run with `--config=debug` to turn on the NodeJS inspector agent.
# The node process will break before user code starts and wait for the debugger to connect.
run:debug --define=VERBOSE_LOGS=1 -- --node_options=--inspect-brk
# The following option will change the build output of certain rules such as terser and may not be desirable in all cases
build:debug --compilation_mode=dbg


try-import %workspace%/.bazelrc.local
Loading

0 comments on commit 3c68a76

Please sign in to comment.