google / closure-builder Goto Github PK
View Code? Open in Web Editor NEWNPM based Closure build system to easily compile Soy template files together with Closure JavaScript files without the need to configure anything.
License: Apache License 2.0
NPM based Closure build system to easily compile Soy template files together with Closure JavaScript files without the need to configure anything.
License: Apache License 2.0
When trying to compile simple .soy template I've got these errors:
Not found module: google-closure-library !
Google Closure Library was not found!
Not found module: closure-templates !
Google Closure Template was not found!
It seems that the reason of this is BuildTools.getModulePath
function that assumes google-closure-library and closure-templates modules are located inside closure-builder/node_modules directory. But this is not always true since npm v3.
closure-builder/package-lock.json
Lines 1618 to 1625 in 179d3f3
CVE-2020-11079
Recommended upgrade version:0.2.0
like jscom_error, jscom_off, jscom_warning
Hey there,
When I try to build my regular Closure-based project, all looks good and works well. I take a step further and embed my JavaScript protobuf files, built in closure
mode.
It starts to complain about jspb.Message
, etc, so I git-submodule in protobuf
and include those via protobuf/js/message.js
, protobuf/js/map.js
, and so on.
Those dependencies pull in goog.asserts
, and from there, the build explodes with errors related to Closure library:
/node_modules/closure-builder/third_party/closure-library/closure/goog/editor/plugins/abstractbubbleplugin.js:37: ERROR - required "goog.ui.Component" namespace never provided
goog.require('goog.ui.Component');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
node_modules/closure-builder/third_party/closure-library/closure/goog/testing/multitestrunner.js:39: ERROR - required "goog.ui.ServerChart" namespace never provided
goog.require('goog.ui.ServerChart');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
node_modules/closure-builder/third_party/closure-library/closure/goog/testing/multitestrunner.js:40: ERROR - required "goog.ui.TableSorter" namespace never provided
goog.require('goog.ui.TableSorter');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
node_modules/closure-builder/third_party/closure-library/closure/goog/testing/ui/rendererasserts.js:25: ERROR - required "goog.ui.ControlRenderer" namespace never provided
goog.require('goog.ui.ControlRenderer');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
node_modules/closure-builder/third_party/closure-library/closure/goog/tweak/tweakui.js:42: ERROR - required "goog.ui.Zippy" namespace never provided
goog.require('goog.ui.Zippy');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
More aggravating, still, is that including any of these components yields more errors. I tried to specify node_modules/closure-builder/third_party/closure-library/closure/goog/base.js
and [...]/closure/goog/ui/component.js
, but that only yields more and different errors:
node_modules/closure-builder/third_party/closure-library/closure/goog/ui/component.js:24: ERROR - namespace "goog.ui.Component" cannot be provided twice
goog.provide('goog.ui.Component');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
node_modules/closure-builder/third_party/closure-library/closure/goog/ui/component.js:25: ERROR - namespace "goog.ui.Component.Error" cannot be provided twice
goog.provide('goog.ui.Component.Error');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Can someone help? I have personally and professionally signed the Google CLA and am happy to assist in any way.
This feature request is to support the online Google Closure Api if possible, to avoid the need to have JAVA installed.
Unfortunately the Bundled Java version is not longer maintained, so we are not able to use an bundled Java versions instead.
There is no description in the documentation of how to pass parameters for running closure stylesheet compiller.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.