This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias dc="docker-compose" | |
alias dcu="docker-compose up -d" | |
alias dcr="docker-compose down && docker-compose up -d" | |
alias dcd="docker-compose down" | |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias gc="git checkout" | |
alias gcb="git checkout -b" | |
alias gf="git fetch" | |
alias gp="git pull" | |
alias gs="git stash -u" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!function_exists('tempdir')) { | |
/** | |
* Create a unique temporary directory and return its path. | |
* | |
* Insipired by | |
* @link https://stackoverflow.com/questions/1707801/making-a-temporary-dir-for-unpacking-a-zipfile-into | |
* | |
* @param string $prefix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mix = require('laravel-mix'); | |
require('laravel-mix-tailwind'); | |
require('laravel-mix-purgecss'); | |
/* Moment.js bloat */ | |
const webpack = require('webpack'); | |
mix.webpackConfig({ | |
plugins: [ | |
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/) | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function deploy() { | |
# install composer dependencies | |
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev && | |
# install node modules | |
npm clean-install && | |
# build assets using Laravel Mix | |
npm run production || | |
return $? |