-
Notifications
You must be signed in to change notification settings - Fork 522
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
refactor: remove http_server and history_server rules #1158
Conversation
7d2fb3d
to
fd4e460
Compare
09a1265
to
49f1330
Compare
BREAKING CHANGE: history_server and http_server rules are no longer built-in. To use them, first install the http-server and/or history-server packages Then load("@npm//http-server:index.bzl", "http_server") (or replace with history-server, noting that the rule has underscore where the package has hyphen)
@@ -706,28 +705,6 @@ def node_repositories(package_json = [], **kwargs): | |||
symlink_node_modules = False, | |||
) | |||
|
|||
_maybe( |
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.
🌮 🌮 🌮 🌮 🌮 🌮
`; | ||
def ${name.replace(/-/g, '_')}(**kwargs): | ||
if "outs" in kwargs: | ||
npm_package_bin(tool = "@${WORKSPACE}//${pkg._dir}/bin:${name}", **kwargs) |
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.
a comment here perhaps?. why outs
is the determining attribute?
also, do additionalAttributes belong in npm_package_bin? if there is a "configuration_env_vars"
additional that would likely be needed in both.
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.
yes, additionalAttributes are here,line 1073
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.
the doc for this has to go somewhere new, since it's a generated macro. I'll make a new doc for all the stuff we generate into your @npm
and how to use those things
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.
LGTM!
Resolves #1156 |
BREAKING CHANGE:
history_server and http_server rules are no longer built-in.
To use them, first install the http-server and/or history-server packages
Then load("@npm//http-server:index.bzl", "http_server")
(or replace with history-server, noting that the rule has underscore where the package has hyphen)
and change your templated_args attribute to args