Commit d70752b
authored
feat(dart): add pub.dev publishing support (#527)
- Remove `publish_to: none` from dart/dotprompt/pubspec.yaml to allow
publishing to pub.dev.
- Add `dart_pub_publish` and `dart_pub_get` targets to both
dart/dotprompt/BUILD.bazel and dart/handlebarrz/BUILD.bazel.
- Enhance Gazelle extension to auto-generate `dart_pub_get` and
`dart_pub_publish` targets when a pubspec.yaml is found.
- `dart_pub_get` is always generated (dependency resolution).
- `dart_pub_publish` is only generated when `publish_to` is not
set to `none` (checked via new [IsPublishable()](cci:1://file:///Users/yesudeep/code/github.com/google/dotprompt/bazel/rules_dart/gazelle/pubspec/types.go:27:0-31:1) method on
the [Pubspec](cci:2://file:///Users/yesudeep/code/github.com/google/dotprompt/bazel/rules_dart/gazelle/pubspec/types.go:19:0-25:1) struct).
- Add `PublishTo` field to [Pubspec](cci:2://file:///Users/yesudeep/code/github.com/google/dotprompt/bazel/rules_dart/gazelle/pubspec/types.go:19:0-25:1) struct in gazelle/pubspec/types.go.
- Add go.work with all 4 Go modules for local development.
- Update all go.mod files to go 1.25 and go.work to go 1.26
(support the two most recent Go releases).1 parent 5c0ea0a commit d70752b
File tree
17 files changed
+247
-500
lines changed- .github/workflows
- bazel
- rules_dart/gazelle
- language
- pubspec
- rules_flutter/gazelle
- dart
- dotprompt
- handlebarrz
- go
- js
- packages
- codemirror
- treesitter/bindings/go
17 files changed
+247
-500
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
0 commit comments