joestelmach / zipper Goto Github PK
View Code? Open in Web Editor NEWasset packaging plugin for Maven
Home Page: http://joestelmach.github.com/zipper/
License: MIT License
asset packaging plugin for Maven
Home Page: http://joestelmach.github.com/zipper/
License: MIT License
cc is now available in maven central! (by me...)
com.google.javascript closure-compiler r606I've hacked it together and it seems to work nicely (and a ton faster when you have a large number of files..)
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?
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 ?
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.