Coder Social home page Coder Social logo

zipper's People

Contributors

joestelmach avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

zipper's Issues

Start using closure-compiler artifact

cc is now available in maven central! (by me...)

com.google.javascript closure-compiler r606

I've hacked it together and it seems to work nicely (and a ton faster when you have a large number of files..)

Support groups of assets

Zipper looks absolutely great, however I'm not sure if I can use it. I need to be able to specify which specific resource files to combine into an asset, and I need to create several JS and CSS files based on groups of resources. Zipper seems to be all-or-nothing.

My app has a core group of JS and CSS files that need to be included on the initial load. But then, as different features of the application are used, additional resources are pulled down on demand. I'd like to concat/optimize each group of resources into asset files, not everything into a single file. I don't want to load everything all up front for performance reasons.

Ideally there would be configuration options for defining multiple CSS and JS assets. Each asset would have a list of files to include, as well as define the order in which they should be included.

Any thoughts on how much effort this would take to add to Zipper?

zipper build fails with java.io.FileNotFoundException

Hi, came across zipper through google. I've been trying it out for evaluation but my build is failing with java.io.FileNotFoundException.

Some relevant info:

Directory structure

rpwebapp
-- src
------ main
---------- resources
---------- webapp
-------------- resources
------------------- css
------------------- js

zipper.properties in src/main/resources

webroot=src/main/webapp
output.dir=static
js.asset.jsbase=/*.js
css.asset.cssbase=
/*.css

running mvn zipper:zipper

[INFO] --- zipper:0.2.3:zipper (default-cli) @ rpwebapp ---
[INFO] zipper.properties found: C:\projects\rpapps\rentpaymentapps\rpwebapp/src\main\resources\zippe r.properties
[INFO] lint checking resources\js\jquery-1.7.1.min.js
..... skipped .....
[INFO] optimizing resources\js\jquery-1.7.1.min.js with WHITESPACE_ONLY
[ERROR]
java.io.FileNotFoundException: C:\projects\rpapps\rentpaymentapps\rpwebapp\target\classes\static\res ources\js\jquery-1.7.1.min.js (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(FileOutputStream.java:131)
at com.joestelmach.zipper.plugin.JSOptimizerClosure.optimize(JSOptimizerClosure.java:65)
at com.joestelmach.zipper.plugin.ZipperMojo.jsOptimize(ZipperMojo.java:156)
at com.joestelmach.zipper.plugin.ZipperMojo.execute(ZipperMojo.java:70)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.j ava:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu ilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu ilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter .java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

Could it be that zipper is not creating the directory hierarchy in output.dir ?

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.