Cajus Pollmeier wrote:
> Hiho,
>
> I'm doing some optimization on external js libs during the "generate.py 
> build" using a script (basically) like this:
>
> 8<--------
> #!/bin/sh
>
> QOOXDOO=../qooxdoo
>
> # Loop thru libs and optimize them
> for lib in source/resource/js/*js; do
>    libname=$(basename $lib)
>    echo ">>> optimizing $libname"
>    $QOOXDOO/tool/bin/compile.py $lib > build/resource/js/$libname
> done
>
> 8<--------
>
> Is it possible to execute this script after the resources get copied? Or 
> avoid that resource/js gets copied? Currently my converted files get copied 
> over later on...
>   

I wouldn't recommend skipping the resource copying entirely, but you can 
have your script executed after the resource copying.

1. Define a job in your config.json that invokes your script:

  "my-script-job" : { "shell" : "path/to/your/script.sh" }

2. Override the "build" job by defining your own:

  "build" : {
     "=run" : ["build-resources", "build-script", "build-files", 
"my-script-job"]
  }

This should run all the standard jobs and then your script at the end.

HTH,
Thomas


> Thanks,
> Cajus
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>   

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to