Lambo for Jigsaw

dev-master 2017-07-17 16:41 UTC

This package is not auto-updated.

Last update: 2025-06-22 07:22:00 UTC


README

Super-powered setup script for Jigsaw and Valet.

Installation

composer global require quickliketurtle/lamsaw

Upgrading

composer global update quickliketurtle/lamsaw

Usage

Make sure ~/.composer/vendor/bin is in your terminal's path.

cd ~/Sites
lamsaw superApplication

This will create a new directory, change into that directory, composer require Jigsaw, make an initial Git commit, and open your web browser to that app.

What exactly does it do?

  • mkdir $PROJECTNAME
  • cd $PROJECTNAME
  • composer require tightenco/lambo
  • Initialize Jigsaw
  • Install node dependencies
  • Build local Jigsaw site
  • Initialize a git repo, add all of the files, and make a commit with the text "Initial commit."
  • Open $PROJECTNAME.$YOURVALETTLD in your browser

There are also a few optional behaviors based on the parameters you pass (or define in your config file).

Optional Arguments

  • -h or --help to get the help dialog

    lamsaw --help

Commands

  • make-config creates a config file so you don't have to pass the parameters every time you use Lambo

    lamsaw make-config

Config

You can create a config file at ~/.lamsaw/config rather than pass the same arguments each time you create a new project.

lamsaw make-config

After File

You can create an after file at ~/.lamsaw/after to run additional commands after you create a new project.

lamsaw make-after

The after file is a bash script so you can include any commands here such as installing additional composer dependencies

# Install additional composer dependencies as you would from the command line.
echo "Installing Composer Dependencies"
composer require tightenco/mailthief tightenco/quicksand

or copying additional files to your new project.

# To copy standard files to new lambo project place them in ~/.lambo/includes directory.
echo "Copying Include Files"
cp -R ~/.lambo/includes/ $PROJECTPATH

You also have access to variables from your config file such as $PROJECTPATH and $CODEEDITOR.

Requirements

  • Mac or Ubuntu.
  • Requires Laravel Valet to be globally installed.

An Ubuntu fork of Valet can be find here

Acknowledgements

Inspired by tightenco/lambo which is Inspired by Taylor Otwell and Adam Wathan's work on Valet.

Name inspired by Lambo's Name from TJ Miller, inspired by Taylor's love for the lambo.