Skip to content

Releases: markstory/asset_compress

Asset compress 0.9

25 Aug 16:26
v0.9
Compare
Choose a tag to compare

Enhancements

  • Static assets will be re-built if the configuration file changes. This prevents issues
    where the configuration would result in different build files without the source files changing.
  • AssetCompress will now attempt to load configuration files from all loaded plugins. If
    a plugin contains Config/asset_compress.ini, that file will be loaded and appended
    to the application configuration file.
  • ScssPHP filter was added. This allows you to use SCSS without ruby dependencies.
  • A new line is inserted between concatenated files. This helps fix parse errors when concatenating
    poorly authored javascript files together.
  • Loading filters from the App dir works as documented.

Asset compress 0.8

25 Aug 16:25
v0.8
Compare
Choose a tag to compare

Backwards Incompatible Changes

  • AssetCompress requires at least CakePHP 2.3.0. CakePHP 2.3.0 added type hints to Dispatcher filters.
    While this version will work with CakePHP 2.2.x it will trigger E_STRICT errors.

Enhancements

  • Added the Hogan filter. This provides precompilation for mustache templates.

Asset compress 0.7

25 Aug 16:25
v0.7
Compare
Choose a tag to compare

Backwards Incompatible Changes

  • AssetCompress requires at least CakePHP 2.2.0. As of 0.7 the controller has been replaced
    by a dispatcher filter, which requires CakePHP 2.2.0.

Other changes

  • Import paths are now set for the less filter.
  • ROOT/ no longer needs // to work correctly.
  • paths[] can now contain remote URL's allowing you to create build files
    using assets on CDN's or other remote hosts.
  • paths[] can now be defined inside a build target. This lets you only scan certain
    paths for specific builds. Or when you might have duplicate file names that should not
    be shared between builds.

Asset compress 0.6

25 Aug 16:24
Compare
Choose a tag to compare

Backwards Incompatible Changes

  • baseUrl now only takes effect when debug = 0. Build file existence
    is not checked anymore. It is assumed that build files exist at
    the location specified in baseUrl. Because of this baseUrl will
    need to include the directory names as well.
  • Removed General.writeCache. It made for more complex deployments.
    Instead General.alwaysEnableController has been added to allow the
    controller to be used in production instead of pre-generated static files.
    The default value is off.

Other changes

  • Support for CakePHP 2.0.
  • Added TimestampImage filter class. This filter provides the ability
    to timestamp background images used in CSS files. This is useful for
    cache busting CSS sprites or other CSS background images.
  • Added ROOT/ path variable for use in configuration files.
  • Added ScssFilter
  • Added support for plugin asset Using the p:PluginName:resource.xx
    syntax.

Asset compress 0.5

25 Aug 16:23
Compare
Choose a tag to compare

Backwards Incompatible Changes

  • Ini file flag General.debug was removed. Instead
    Configure::read('debug') is used. This means one less configuration
    option to manage. Use debug = 1 to test output filters.
  • The timestamp file format has changed. Remember to clear all builds
    when upgrading.
  • A number of internal API changes have been made. If you are using the
    internals of AssetCompress you may have to update your code.
  • The General.timestampFile config option was removed. Timestamp
    files are always used now.

Other changes

  • Ini file naming for build files made simpler. Instead of having to
    prefix sections with the extension you can omit the prefix. The
    extension will be read off of the build file name. Instead of
    js_library.js you can just use library.js as the build name.
  • Controller/view javascript files are now combined into minified asset automatically now.
  • When using the shell, asset targets that are still fresh will be
    skipped on subsequent builds. A target is fresh if the build file's
    mtime is later than all of the files that go into the target. This
    behavior can be ignored using the -force option.
  • If you don't define the paths[] keys in your js and css extensions,
    AssetCompress will recursively include all paths in the standard
    CakePHP directories.
  • Theme support has been added. When defining a build you can set
    theme = true in the build definition. When the shell is run, a
    build will be created for every theme installed. Themes support only
    works for builds defined in the ini file.
  • The timestamp file format has changed and contains timestamps for each
    build. This was required as part of the incremental builds feature.

Asset compress 0.4

25 Aug 16:23
Compare
Choose a tag to compare

Backwards Incompatible Changes

  • Internals of the plugin re-factored and re-architected to be simpler.
  • New configuration file format.
  • Helper method changes, creating builds on the fly now works
    differently.
  • Comment stripping features removed, you should use one of the built-in
    minifier integrations to accomplish this.
  • Sprockets features and InlineImport feature extracted into filters.
  • Helper methods changed.

Other changes

  • CoffeeScript, and LESS css support added.
  • Can add any additional attributes to generated link or stylesheet
    tags.

Asset compress 0.3

25 Aug 16:22
Compare
Choose a tag to compare

Backwards incompatible changes:

  • Inflection of file names for javascript and css was removed. This affects both the helper, and the directives supported by each file type.
  • Auto inclusion of all build files in the afterRender() callback was removed. You now need to manually call includeAssets().
  • The default build file is now a magic-hash. Magic-hash build files, use the md5() of their components as the build filename. This allows you to easily create build files without worrying about keeping them unique across your application.

Enhancements

  • AssetCompressHelper::includeAssets() takes an array of build files you wish to output in that call. This lets you place some build files at the top of the document, and others at the bottom.
  • AssetCompressHelper::includeJs() and AssetCompressHelper::includeCss() were added. These methods function similar to includeAssets(). Each allows you to only include some of the build files.
  • Assets that do not exist now return 404 errors.
  • Two basic filters have been added. JsMin and CssMin are now built-in filters. Both require you to put their libraries in app/vendors.
  • Filters for YUI Compressor have been added. Both a CSS and Javascript filter have been added. They require you to put yuicompressor in your app's vendors directories.
  • The asset_compress shell can now generate build files. This allows you to integrate asset generation into your deployment/build scripts.

Asset compress 0.2

25 Aug 16:21
Compare
Choose a tag to compare

New features:

  • Timestampping of build files was added.
  • Filters for CSS files were fixed.
  • Location for asset_compress.ini file was moved into app/config/asset_compres.ini.
  • Files in themes should now be auto discovered.

Initial release

25 Aug 16:21
Compare
Choose a tag to compare
0.1

Asset Compress 0.1