Closure Tools Published to nom

109 views
Skip to first unread message

Chad Killingsworth

unread,
Apr 9, 2015, 5:44:10 PM4/9/15
to closure-comp...@googlegroups.com, closure-lib...@googlegroups.com, closure-temp...@googlegroups.com

Closure tools are now officially published to npm. We plan to maintain the nom packages as official release points.

Notes about versioning:

npm uses semver versioning. The compiler and templates projects use date versioning while closure library has historically not been versioned.

To reconcile these differences, the compiler and templates date version number will be used as the MAJOR version. PATCH version numbers will primarily be used for tweaks to the NPM package structure.

Example version: 20150315.0.0

While this doesn’t follow the true spirit of semantic versioning, it allows us to maintain parity with other distribution channels.

Closure-library is expected to be versioned to match the latest compiler release and updated on approximately the same release schedule as the compiler.


Chad Killingsworth
Closure Compiler Committer

Richard Connamacher

unread,
Jul 7, 2015, 4:58:13 PM7/7/15
to closure-lib...@googlegroups.com, closure-comp...@googlegroups.com, closure-temp...@googlegroups.com
Very cool.

What's in the google-closure-compiler/contrib/nodejs directory?

I have some Node bindings and unit tests I wrote up for Closure Library and was preparing to publish to the (currently defunct) 'closure-compiler' module, so you can simply do require('closure-compiler') to access the goog.* namespace in Node. It also includes a Node wrapper module for depswriter.py. Would you be interested in me contributing those to the core google-closure-library module?

Chad Killingsworth

unread,
Jul 8, 2015, 12:33:43 PM7/8/15
to closure-comp...@googlegroups.com, closure-lib...@googlegroups.com, closure-temp...@googlegroups.com
The google-closure-compiler/contrib/nodejs folder houses the externs used to compile nodejs scripts with Closure-compiler. It is maintained by the community through PRs to the Closure-compiler project.

The google-closure-library package is simply a publication of the https://github.com/google/closure-library respository. The only changes have been to the package.json file. 

As for the node-wrapper module for depswriter.py, It would be best to ask about that in the closure-library-discuss group. While changes like that sound like a good fit for the project to me, getting PRs reviewed and merged into Closure-library has been challenging recently. Hopefully that will be changing soon.

Chad

Chad Killingsworth

unread,
Jul 8, 2015, 12:34:41 PM7/8/15
to closure-comp...@googlegroups.com
I just realized this was cross posted into both groups. Hopefully maintainers will respond to the closure-library version.

Richard Connamacher

unread,
Jul 13, 2015, 3:09:57 PM7/13/15
to closure-lib...@googlegroups.com, closure-temp...@googlegroups.com, closure-comp...@googlegroups.com
One request for google-closure-library on NPM: could you make the Node bootstrap file (closure/goog/bootstrap/nodejs.js) its 'main' file in package.json instead of closure/goog/base.js? That way you could simply do:

require("google-closure-library")

...and start using goog.require() in Node right away.

Chad Killingsworth

unread,
Jul 13, 2015, 3:31:03 PM7/13/15
to closure-comp...@googlegroups.com, closure-lib...@googlegroups.com, closure-temp...@googlegroups.com
Yes I can do that - I would have already if I had known that existed. Hopefully somone will start merging my PRs for the package.json soon.

Chad

John Lenz

unread,
Jul 14, 2015, 2:16:26 AM7/14/15
to closure-compiler, closure-library, closure-temp...@googlegroups.com

Can you assign them to me?

--

---
You received this message because you are subscribed to the Google Groups "Closure Compiler Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-compiler-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/closure-compiler-discuss/ca39e79a-fb8b-43fa-985d-232511a605f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages