Skip to content

Instantly share code, notes, and snippets.

@illepic
Last active May 18, 2022 21:50
Show Gist options
  • Save illepic/efd6ab9f452af2a99b7ade78257e6b96 to your computer and use it in GitHub Desktop.
Save illepic/efd6ab9f452af2a99b7ade78257e6b96 to your computer and use it in GitHub Desktop.
Particle from scratch with all dependencies
#!/usr/bin/env bash
# 1. Skip steps if you already have the tools listed
# 2. Run source ~/.bashrc or source ~/.zshrc after each step to ensure command is registered
# Install Homebrew, if not installed
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Update Homebrew installed packages
brew update && brew upgrade
# Install PHP 7, if not installed
brew install php
# Install NVM, if not installed
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
# Node 10 or 12. Leave off `nvm alias default v12` to prevent setting system wide node version
nvm install v12 && nvm alias default v12
# NPM 6+
npm install -g npm@latest
# Option 1: Get particle via starter script
npm create @phase2/particle particle && cd particle
# Option 2: Get particle via git clone
git clone git@github.com:phase2/particle.git && cd particle
# Install Particle dependencies. Run only once at the start of a project.
npm install && npm run setup
# Start Particle every time you want to work in Pattern Lab
npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment