Skip to content

Instantly share code, notes, and snippets.

View BenShelton's full-sized avatar
🏠
Working from home

Ben Jones BenShelton

🏠
Working from home
  • Freelancer
  • Cardiff, Wales
View GitHub Profile
@craigerskine
craigerskine / _dropbox_node_prep.scpt
Last active December 21, 2023 19:40
Force Dropbox to truly ignore node_modules using Apple Script (macOS only)
# 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"}