Git Product home page Git Product logo

composer-localoader-plugin's People

Contributors

rudiedirkx avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

composer-localoader-plugin's Issues

After-vendor-code events

Remove relevant code from localoaded packages on these events:

  • post-install-cmd
  • post-update-cmd

because those commands re-add the code, which isn't used, so should be removed.

dump-autoload shouldn't remove code, but #3

Do dump-autoload after change

After adding an exception, dump-autoload to make sure it's used. Should be necessary only once, but every time isn't bad.

Add composer command to add localoader

composer locaload rdx/http /var/www/inc/HTTP

Adds a locaload entry to this project's locaload.json.

Manually editing it is probably easier, but a command is handy for the first time.

  • Can it validate the namespace?
  • Can it validate the target dir?
  • Is the target dir the package dir, or the namespace root?

Alias full package instead of per component type

Currently only PSR-4 and PSR-0 files are supported, but Composer does more than just class autoloading:

    "autoload": {
        "psr-0": {
            "Kris\\LaravelFormBuilder": "src/"
        },
        "classmap": [
            "tests/FormBuilderTestCase.php"
        ],
        "files": [
            "src/helpers.php"
        ]
    },

If you use locaload, you want ALL files aliased to the local package, not just some classes.

Use Autoloader, JSON, Console, Process etc

  • Symfony\Component\Console\Application for args & options
  • JSON for pretty JSON
  • Console for pretty (error) messages
  • Process to kick off dump-autoload
  • Autoloader to load the whole thing

Steal bin setup from behat/behat/bin/behat or alike.

Optional don't remove code

New flag in composer-locaload.json to NOT remove any localoaded package code. Useful for not removing helpers.php etc from namespace dirs until #4

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.