Skip to content

Commit

Permalink
chore: updates for bzlmod launch
Browse files Browse the repository at this point in the history
- we are broken on windows, #228
- add the snippet so our next release shows how to use from BCR
  • Loading branch information
alexeagle committed Nov 4, 2022
1 parent 7976108 commit e06c610
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 119 deletions.
3 changes: 3 additions & 0 deletions .bcr/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fixedReleaser:
login: thesayyn
email: [email protected]
File renamed without changes.
3 changes: 2 additions & 1 deletion .github/workflows/bcr/presubmit.yml → .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
bcr_test_module:
module_path: 'e2e/bzlmod'
matrix:
platform: ['debian10', 'macos', 'ubuntu2004', 'windows']
# TODO(aspect-team): windows https://github.com/aspect-build/rules_ts/issues/228
platform: ['debian10', 'macos', 'ubuntu2004']
tasks:
run_tests:
name: 'Run test module'
Expand Down
File renamed without changes.
50 changes: 0 additions & 50 deletions .github/workflows/bcr-fork.yml

This file was deleted.

67 changes: 0 additions & 67 deletions .github/workflows/bcr.yml

This file was deleted.

29 changes: 28 additions & 1 deletion .github/workflows/workspace_snippet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,34 @@ PREFIX="rules_ts-${TAG:1}"
SHA=$(git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip | shasum -a 256 | awk '{print $1}')

cat << EOF
WORKSPACE snippet:
## Using [Bzlmod] with Bazel 6:
Add to your \`MODULE.bazel\` file:
\`\`\`starlark
bazel_dep(name = "aspect_rules_ts", version = "${TAG:1}")
rules_ts_ext = use_extension(
"@aspect_rules_ts//ts:extensions.bzl",
"ext",
dev_dependency = True,
)
rules_ts_ext.deps()
use_repo(rules_ts_ext, "npm_typescript")
use_repo(rules_ts_ext, "npm_google_protobuf")
use_repo(rules_ts_ext, "npm_at_bazel_worker")
\`\`\`
[Bzlmod]: https://bazel.build/build/bzlmod
## Using WORKSPACE
Paste this snippet into your \`WORKSPACE\` file:
\`\`\`starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
Expand Down

0 comments on commit e06c610

Please sign in to comment.