Giter Club home page Giter Club logo

ecocode_minify's Introduction

Ecocode Minify(v. 0.0.4 beta)

Overview

Ecocode Minify is a Magento Module, to minify your merged CSS and JS files. For JS minification its using the google closure compiler and for CSS the YUI Compressor. Both are written in java and are jar files. In addition this module will give you the opportunity to scan your javascript files for errors and possible compiling errors. Its recommend to at least scan all of your js files once with this tool.

Tested with:

  • Magento Community Edition 1.7.0.2
  • Magento Community Edition 1.9.0.1

Requirements

  • Java >= 7

Features

  • Minify and compiles js files on the fly
  • Minify css
  • Adds a suffix to all merged js/css files to prevent browser cache issues on deployments

Additional Features

  • Admin module to view minify logs
  • Admin module to validate js files
  • Warmup functionality for JS/CSS cache clear

Validator Compiler Success Compiler Warnings

Notes

  • Minifing is disabled by default. To make it active go to System->Configuration->Developer->JavaScript/CSS Settings and set "Merge * Files" to "Yes" and then "Minify * Files" to "Yes"
  • The log functionality is using mysql table due to prevent log splitting on multi server environments
  • The warmup functionality will be less effective multi server environments unless you store your merged files in a central place
  • A new suffix well be generated when you click the "Flush JavaScript/CSS Cache" button in you magento backend cache control section
  • The filesize is included in the merged filename so changing a js/css file will invalidate the involved merged files and new ones will be generated.
  • If a file cannot be compiled the the uncompiled merged version will be served

Installation

Using Modman

navigate to your magento root folder:

modman init
modman clone https://github.com/ecoco/ecocode_minify

please note, if you are using modman without the "--copy" flag you have to set

dev/template/allow_symlink

to "TRUE" under "System->Configuration->Developer->Template Settings->Allow Symlinks"

if you miss this, the admin modules may not be rendered!

Using Git

Simply clone the repo somewhere and copy the content in your magento root directory excluding the "modman" file and the README.md.

coming soon

Author

  • Justus Krapp

License

Copyright(C) 2013 Ecocode GmbH (http://ecocode.de)

Licensed under the under the MIT License. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ecocode_minify's People

Contributors

fantus avatar infabo avatar patrykkata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ecocode_minify's Issues

modman clone fails

Hi!

Is it possible to move the vagrant stuff to some other repository, as it is not directly needed in the shop-installation.
And, it cannot be cloned if you haven't configured bitbucket public-key authentication on the server.

modman clone https://github.com/ecoco/ecocode_minify.git
Cloning into 'ecocode_minify'...
remote: Counting objects: 256, done.
remote: Total 256 (delta 0), reused 0 (delta 0), pack-reused 256
Receiving objects: 100% (256/256), 18.24 MiB | 8.07 MiB/s, done.
Resolving deltas: 100% (69/69), done.
Submodule '.vagrant/utilities' ([email protected]:ecocode/vagrant-utilities.git) registered for path '.vagrant/utilities'
Cloning into '.vagrant/utilities'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Clone of '[email protected]:ecocode/vagrant-utilities.git' into submodule path '.vagrant/utilities' failed
Error trying to clone new module 'ecocode_minify', operation cancelled.

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.