Giter VIP home page Giter VIP logo

closure-builder's Issues

Closure-builder can't locate google-closure-library and closure-templates as gulp-task

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.

Protobufs/JSPB causes build errors with Closure Library

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.

Support for Online Google Closure API and other if possible

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.

poor documentation

There is no description in the documentation of how to pass parameters for running closure stylesheet compiller.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.