Last active
May 18, 2022 21:50
-
-
Save illepic/efd6ab9f452af2a99b7ade78257e6b96 to your computer and use it in GitHub Desktop.
Particle from scratch with all dependencies
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
#!/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 [email protected]: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