Hassle Free Setup of Your Mac Binaries, Applications, Projects and Plugins.
- Quick Start Guide
- Laravel: Bootstrap Front-End and Back-End
- Mac Application Setup
- Sublime Text Plugins
- Dependencies
- Clone the repo URI
git clone https://github.com/csun-metalab/automation.git - Create an alias with the path to desired script in
~/.bash_profile - Restart OR source command-line with
source ~/.bash_profile - Run the desired script (ex.
laravel-bootstrap,mac-setup, orsublime-plugins)
Update your ~/.bash_profile with the following:
alias laravel-bootstrap=~/path/to/script/automation/laravel/laravel-bootstrapThe laravel-bootstrap script will also automatically install Bower, Gulp, and Composer for you if you do not already have those dependencies.
During the installation of the Node packages the script will prefer Yarn over NPM.
Create a new Laravel project w/ laravel new <project-name> followed by laravel-bootstrap. The following can now be automatically added to your Laravel project.
Laravel Project
├── .bowerrc
├── bower.json
├── elixir.json
├── gulpfile.js
├── node_modues
│ ├── gulp
│ └── laravel-elixir
├── resources
│ └── views
│ ├── layouts
│ │ ├── master.blade.php
│ │ └── partials
│ └── pages
│ └── landing.blade.php
└── vendor
└── bower_componentsIf you do not wish to create a new Laravel project manually the laravel-bootstrap script can also create a project automatically if you are not currently within a Laravel project directory.
You can execute the script with a flag in order to take the default action for all commands that would require input:
laravel-bootstrap --use-defaults
You will not be prompted for any input during any of the actions.
The default actions will be performed in order:
- Install Bower globally if it does not exist
- Install Gulp globally if it does not exist
- Install Composer in
/usr/local/composer(aliased to/usr/local/bin/composer) if it does not exist - Create a fresh Laravel project if the script was not executed in a Laravel project directory
- Create a Laravel
.envfile if one does not already exist - Create master and partial layout view templates if they do not already exist
- Create a
.bowerrcfile if one does not already exist - Create an
elixir.jsonfile if one does not already exist - Create a
gulpfile.jsfile if one does not already exist - Install the relevant Composer packages
laravelcollective/htmlguzzlehttp/guzzletiesa/ldapcsun-metalab/laravel-proxypassbarryvdh/laravel-debugbar
- Add the relevant service providers from the Composer packages to
config/app.php - Add the relevant aliases from the Composer packages to
config/app.php - Publish all vendor resources from all Composer packages
- Create a
bower.jsonfile if it does not already exist - Install all local Node packages from Laravel project's
package.jsonfile
# Add to your .bash_profile
alias mac-setup=~/path/to/script/mac-setup # Add to your .bash_profile
alias sublime-plugins=~/path/to/script/sublime-pluginsBefore you get started you may also need to add the following:
# Adding Homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Adding Node w/ Homebrew
$ brew install node
# Adding Bower Globally
$ npm install -g bower
# Adding Gulp Globally
$ npm install --global gulp
# Adding Composer Globally
$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer