Questions tagged [plovr]

plovr is a build tool that dynamically recompiles JavaScript and Closure Template code. It is designed to simplify Closure development.

The intended usage of plovr is as follows:

During development, you should be able to edit JavaScript and Soy files in your favorite text editor, refresh your web application in the browser, and have it load a newly compiled version of your code. Any errors or warnings resulting from compilation by the Closure Compiler should appear at the top of your web application so you can identify and fix them quickly.

During production, you should serve precompiled versions of your JavaScript that behave exactly as they did during development.

In providing a build tool to assist in iterative JavaScript development, plovr also achieves the following:

  • Replaces the set of unrelated scripts that are usually required to build Closure code with a single JSON configuration file.
  • Exposes features of the Closure Compiler through the configuration file that were previously accessible only by writing Java code against the Compiler's API.
  • Facilitates the process of splitting JavaScript code into modules that can be downloaded separately, thereby reducing start-up time for web applications.

(Taken from the Plovr homepage: http://plovr.com/)

25 questions
1
vote
0 answers

how to use the module mode in plovr

The plovr works well for single file like this: { id:"main", paths:".", pretty-print:true, inputs:["eval.js","util.js","ui.js"], output-wrapper:"\n(function(){%output%}).call(this);\n", } As shown in the config,the inputs will…
hguser
  • 35,079
  • 54
  • 159
  • 293
1
vote
1 answer

Can I build Google Closure projects in Eclipse while building with Plovr?

I want to use an IDE to develop my application that uses the Google Closure javascript library. I am currently editing all my javascript files in vim and compiling using Plovr. However, I would like to harness the power of an IDE that can check for…
dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
1
vote
0 answers

Why is compiling my Closure code with Plovr giving me weird symbols?

I ran java -jar ~/PlovrFiles/plovr.jar build ~/js/config.js > /tmp/compiled.js However, the Closure compiler issues a bizarre error with weird symbols such as RPP?LQ?RP*)?K??,)I?S??$?d?$?. Exception in thread "main"…
dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
0
votes
1 answer

Plovr externs don't load when using test-template option

I am using plovr to run unit tests for my JavaScript code that uses Google Closure Library. My setup was working fine until I needed to run some asynchronous tests. I found out from this discussion that I needed to replace the default…
burnttoast11
  • 1,164
  • 16
  • 33
0
votes
1 answer

plovr warning on new closure .base()

I checked out the latest plovr and added closure to my project using bower. while compiling the code with closure-compiler.jar in advanced_compilation works without any error or warning, using plovr gives the following…
msin
  • 23
  • 1
  • 5
0
votes
1 answer

Using Closure Stylesheets with Plovr in serve mode

i am using plovr for developing a closure application. and that i am often using plovr in serve mode. from this source code of plovr and this post from the author it seems that plovr also supports compiling closure stylesheets (gss). with that in…
Tanvir
  • 542
  • 7
  • 16
0
votes
1 answer

How do I stop plovr from changing DATANAME in elt.dataset.DATANAME?

I am using plovr (http://plovr.com/) to combine and make JavaScript files smaller. However it changes things like elt.dataset.DATANAME to elt.dataset.e which of course does not work (and is a bug in plovr, I have just reported this). How do I work…
Leo
  • 4,136
  • 6
  • 48
  • 72
0
votes
1 answer

Project compiles with Ant. But if I open eclipse, the project no longer compiles

I'm on Windows. I downloaded the source to a java project (Plovr) and I can build it with ant using cygwin. But just opening it in Eclipse means it will never build again. If I open it in Eclipse and then close it again, it will no longer build. I…
ColBeseder
  • 3,579
  • 3
  • 28
  • 45
0
votes
1 answer

How to xlf-translate soy template by plovr?

{msg desc="Says hello and tells user to click a link."} Hello {$userName}! Please click here. {/msg} what set config file or request params in plovr?
constantant
  • 1,192
  • 1
  • 13
  • 25
0
votes
3 answers

Using Plovr to remove whitespace from simple javascript file without managing dependencies

I can't figure out how to get Plovr to just remove whitespace from a simple javascript file and not try to manage dependencies or scopes. (I don't want to use ADVANCED mode if I can help it because my needs for this file are extremely simple and I…
1
2