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
# Prep dropbox to ignore 'node_modules' in a node project | |
# 1. Move this script to your node project root; | |
# 2. Delete the existing 'node_modules' folder; | |
# 3. Run this script; | |
# 4. `npm install` as normal; | |
# 5. Enjoy! | |
tell application "Finder" | |
set current_path to container of (path to me) as alias | |
make new folder at current_path with properties {name:"node_modules"} |