First things first: Thanks for considering to contributing to oloid-laravel-patternlib.
Feel free to fork our repository and send a PR to the master branch.
- Create a standard Laravel application.
- Link the package oloid-laravel-patternlib in composer.json
- oloid
- packages
- oloid-laravel-patternlib
- laravel
- packages
This structure will be created in the following steps.
mkdir -p oloid/packages
git clone [email protected]:ion2s-gmbh/oloid-laravel-patternlib.git
Setup a plain Laravel 5.7+ application following the instructions in the official documentation
composer create-project --prefer-dist laravel/laravel laravel
Finally you have to link the oloid-laravel-patternlib package in the Laravel application and you're ready to go. In Laravel's composer.json add:
"repositories": [
{
"type":"path",
"url":"/path/to/oloid-laravel-patternlib"
}
],
And in the require-dev section add:
"ion2s/oloid-laravel-patternlib": "*",
Then run:
composer update
You should see ion2s/oloid-laravel-patternlib in the list of discovered packages.
You can execute the tests with:
composer test
Finally you have to build the frontend:
cd /path/to/oloid-laravel-patternlib
npm install
npm run dev
To have a better frontend development experience you can use BrowserSync.
The configuration can be found in ẁebpack.mix.js
.
You can have webpack to watch and sync your frontend changes by running:
npm run watch