-
Notifications
You must be signed in to change notification settings - Fork 892
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
Use google-closure-deps instead of depswriter.py. #4849
base: main
Are you sure you want to change the base?
Conversation
|
@bojeil-google Friendly ping, you approved a similar PR of mine in firebaseui-web, do you mind taking a look at this as well? Thanks! |
I can also approve this change-- have you run the program in question to verify the update works? I can also do it but if you've already done it I won't double check |
@sam-gc Ah, for some reason I had thought I needed two approvers. I think I did, but let me double check |
Sounds good, when you're done you can go ahead and merge |
@sam-gc I'm running into trouble running any of the commands that use the generated deps.js file. |
Okay, I'll take a look tomorrow |
Any updates? |
Ping @sam-gc -- anything else that needs to be done here? |
In Closure Library, we will be removing
depswriter.py
and other Python-based build scripts soon.depswriter.py
is superceded bygoogle-closure-deps
, a similar tool we maintain that is implemented in Node.js.Here, I've substituted the
depswriter.py
command with a corresponding command fromgoogle-closure-deps
; the CLI flags are similar. The difference in output is minimal (see below).Explanation of "extra" flags:
--closure-path="node_modules/google-closure-library/closure/goog"
Path to Closure (now required)--file="node_modules/google-closure-library/closure/goog/deps.js"
Use the deps.js file bundled with Closure as part of deps calculation--exclude=...
Not strictly necessary, but prevents these files from being written todeps.js
as trivial, 0-dependency entriesFor reference, the diff of the resulting
deps.js
from runningnpm run generate-test-files
(with lines sorted and formatted for diff clarity) is here.Fixes #4848
See also firebase/firebaseui-web#839