2017 © Pedro PelĂĄez
 

library magegen

Build system for Magento extensions.

image

delegator/magegen

Build system for Magento extensions.

  • Friday, November 20, 2015
  • by bobbyburden
  • Repository
  • 5 Watchers
  • 0 Stars
  • 3,195 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

Magegen

Magegen is a build system for Magento extensions., (*1)

We couldn't found a simple way to build Magento extensions, so we made our own. This tool works well with (and requires) modman. Learn more about modman here. Your extensions modman file is parsed to create the directory and file listing for your package.xml., (*2)

Installation

We install this tool as a composer dependency in our extensions., (*3)

{
    "require-dev": {
        "delegator/magegen": "*"
    }
}

Usage

Before you can use magegen, you should have a working .modman directory with a project deployed. In your project's repo directory, add the magegen dependency and update composer with composer update., (*4)

magegen requires that you have a correct modman file AND a package.template.xml file., (*5)

To generate a package.template.xml file, run vendor/bin/magegen init., (*6)

Make sure you edit the package.template.xml file to match your extension's information. Leave the following nodes empty, magegen will fill them in when building your extension:, (*7)

  • date
  • time
  • contents

When you are ready to build your extension (generate a .tgz file), navigate to the root of your modman repo directory and run vendor/bin/magegen build, (*8)

Hooks

For some projects, you may need to compile assets or move files before building. To accommodate this, a simple hook system executes your code for the following events., (*9)

Hook Name When the hook is executed
pre_build Before the 'build' command executes
post_build After the 'build' command executes
pre_check Before the 'check' command executes
post_check After the 'check' command executes
pre_clean Before the 'clean' command executes
post_clean After the 'clean' command executes
pre_init Before the 'init' command executes
post_init After the 'init' command executes

To execute your code for each of these hooks, create a directory at magegen/[hook_name]/. In that directory, add PHP files that will be executed as the hook fires., (*10)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

Refer to LICENSE.md for license information., (*11)

The Versions

20/11 2015

dev-master

9999999-dev

Build system for Magento extensions.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Tom Richards
by Bobby Burden

20/11 2015

0.2.0

0.2.0.0

Build system for Magento extensions.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Tom Richards
by Bobby Burden

03/11 2015

0.1.1

0.1.1.0

Build system for Magento extensions.

  Sources   Download

Apache License V2

The Requires

 

The Development Requires

by Tom Richards
by Bobby Burden

05/05 2015

0.1.0

0.1.0.0

Build system for Magento extensions.

  Sources   Download

Apache License V2

The Requires

 

The Development Requires

by Tom Richards
by Bobby Burden

29/04 2015

0.0.3

0.0.3.0

Build system for Magento extensions.

  Sources   Download

Apache License V2

The Requires

 

by Tom Richards
by Bobby Burden

29/04 2015

0.0.2

0.0.2.0

Build system for Magento extensions.

  Sources   Download

Apache License V2

The Requires

 

by Tom Richards
by Bobby Burden

29/04 2015

0.0.1

0.0.1.0

Build system for Magento extensions.

  Sources   Download

Apache License V2

The Development Requires

by Tom Richards
by Bobby Burden