-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(NA): moving @elastic/datemath into bazel #94665
Merged
mistic
merged 35 commits into
elastic:master
from
mistic:moving-elastic-datemath-into-bazel
Apr 1, 2021
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
195f51f
chore(NA): majority of the changes needed to build elastic-datemath w…
mistic 52b6332
chore(NA): add missing bits on elastic-datemath package
mistic 13d0e96
chore(NA): add missing build and watch scripts
mistic 5e3cdeb
chore(NA): remove build scripts for elastic datemah
mistic 45662bc
Merge remote-tracking branch 'upstream/master' into moving-elastic-da…
mistic 9a43d6c
Merge remote-tracking branch 'upstream/master' into moving-elastic-da…
mistic 6b90040
chore(NA): remove typo from build baze production projects logs
mistic d3f8cb3
chore(NA): force install on CI
mistic ec0597b
chore(NA): introduce custom preserve symlinks resolver for jest
mistic 4980847
chore(NA): update jest integration snapshot
mistic e98e6ab
chore(NA): fix build for bazel packages
mistic 32cad6d
chore(NA): correctly copy bazel built packages into final distributab…
mistic 7af6606
chore(NA): update kbn pm dist
mistic 61ef0d6
Merge branch 'master' into moving-elastic-datemath-into-bazel
kibanamachine bda8356
chore(NA): experimental new logic to handle bazel yarn rule rerun usi…
mistic 8311f56
chore(NA): update snapshots
mistic dabe406
refact(NA): ensure yarn integrity exists into two methods
mistic 230b90c
chore(NA): merge and solve conflicts with master
mistic a8b1bfc
Merge branch 'master' into moving-elastic-datemath-into-bazel
kibanamachine fba92ba
chore(NA): fix ts error
mistic 5971c72
Merge branch 'moving-elastic-datemath-into-bazel' of github.com:misti…
mistic 3c5628c
Merge remote-tracking branch 'upstream/master' into moving-elastic-da…
mistic 47b6113
chore(NA): merge and solve conflicts with master
mistic 87489e0
chore(NA): update snapshots
mistic b50db87
Merge remote-tracking branch 'upstream/master' into moving-elastic-da…
mistic 7946b25
chore(NA): merge and solve conflicts with master
mistic b1bc3c1
chore(NA): update elastic-datemath build file to include ts_project rule
mistic f15204e
chore(NA): update basic optimization test snapshots
mistic d5ee22d
chore(NA): merge and solve conflicts with master
mistic 8e40699
chore(NA): merge and solve conflicts cherry-pick from #96066
mistic 33d5bf9
chore(NA): update package.json and yarn.lock file
mistic 502d39e
chore(NA): update bazel/bin into bazel-bin on kbn-pm build bazel pack…
mistic fdc3533
Merge branch 'master' into moving-elastic-datemath-into-bazel
kibanamachine f7c99a4
chore(NA): merge and solve conflicts with master
mistic 513708d
Merge branch 'moving-elastic-datemath-into-bazel' of github.com:misti…
mistic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/index.test.js | ||
/jest.config.js | ||
/tsconfig.json | ||
/__tests__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project") | ||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm") | ||
|
||
PKG_BASE_NAME = "elastic-datemath" | ||
PKG_REQUIRE_NAME = "@elastic/datemath" | ||
|
||
SOURCE_FILES = [ | ||
"src/index.ts", | ||
] | ||
|
||
SRCS = SOURCE_FILES | ||
|
||
filegroup( | ||
name = "srcs", | ||
srcs = glob(SOURCE_FILES), | ||
) | ||
|
||
NPM_MODULE_EXTRA_FILES = [ | ||
"package.json", | ||
"README.md", | ||
] | ||
|
||
SRC_DEPS = [ | ||
"@npm//moment", | ||
] | ||
|
||
TYPES_DEPS = [ | ||
"@npm//@types/node", | ||
] | ||
|
||
DEPS = SRC_DEPS + TYPES_DEPS | ||
|
||
ts_config( | ||
name = "tsconfig", | ||
src = "tsconfig.json", | ||
deps = [ | ||
"//:tsconfig.base.json", | ||
], | ||
) | ||
|
||
ts_project( | ||
name = "tsc", | ||
srcs = SRCS, | ||
deps = DEPS, | ||
declaration = True, | ||
declaration_map = True, | ||
incremental = True, | ||
out_dir = "target", | ||
source_map = True, | ||
root_dir = "src", | ||
tsconfig = ":tsconfig", | ||
) | ||
|
||
js_library( | ||
name = PKG_BASE_NAME, | ||
srcs = [], | ||
deps = [":tsc"] + DEPS, | ||
package_name = PKG_REQUIRE_NAME, | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
pkg_npm( | ||
name = "npm_module", | ||
srcs = NPM_MODULE_EXTRA_FILES, | ||
deps = [ | ||
":%s" % PKG_BASE_NAME, | ||
] | ||
) | ||
|
||
filegroup( | ||
name = "build", | ||
srcs = [ | ||
":npm_module", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I like this better than the build target name.