Coder Social home page Coder Social logo

Contributing about wink HOT 4 CLOSED

themsaid avatar themsaid commented on August 29, 2024 16
Contributing

from wink.

Comments (4)

Jhnbrn90 avatar Jhnbrn90 commented on August 29, 2024 1

Hi @hilmanski
In principal you should never have to edit files in the vendor directory. Changes made in files within this directory are likely discarded when you run composer install or composer update.

My approach to contributing to a package is as follows.

  1. Make sure to fork the GitHub repository first
  2. Clone the repository to your local machine. I have a special "packages" folder
  3. Install a fresh Laravel project in a "websites" folder
  4. In your Laravel's composer.json file, add the package using the path repository method you mentioned. I have written a detailed section about this method: "Importing the package locally"
  5. Make sure to use a different "name" in your composer.json file, as composer first checks Packagist and if there are no results, it will try to find the package locally next.
  6. Require the package in your Laravel application using composer require {the name your used in your composer file}.

Now, when you require the package within your Laravel application it will use a symlink to that package in your "packages" folder and any changes you make to the package are directly reflected within the Laravel application.

from wink.

themsaid avatar themsaid commented on August 29, 2024

here: https://github.com/writingink/wink/blob/master/CONTRIBUTING.md

from wink.

hilmanski avatar hilmanski commented on August 29, 2024

Hi @themsaid
this is my first time, contributing to laravel package.

What i did:

  1. Install new Laravel
  2. Add inside composer.json: the "path Repository method" and require wink "*@dev"

when i run composer update,
it shows this error:
Theurl supplied for the path (./../wink) repository does not exist

So i make a new "wink" directory outside this new laravel app.

  1. is that right? the wink folder location
  2. where should i edit the wink's code? inside vendor directly?

from wink.

hilmanski avatar hilmanski commented on August 29, 2024

Thanks John for the very detail guide.
It can become one of your blog post :) so other people can find it easier in the future

cheers

from wink.

Related Issues (20)

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.