Skip to content

CLI tool to stop iCloud from syncing node_modules folders

License

Notifications You must be signed in to change notification settings

danielpham765/icloud-nosync-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖕iCloud (from 🔋's everywhere)

iCloud NoSync node

This package gives you access to nsn command which does some work to stop iCloud from syncing node_modules and forever eating your processing power, bandwidth, and battery.

To use:

# Install tool with yarn
yarn global add @daniel765/node-nosync-icloud

# Or Install tool with npm
npm install -g @daniel765/node-nosync-icloud
# Install dependencies with yarn
nsn

# Or install dependencies with npm
nsn -m npm
  • -m flag: is what package manager yarn/npm that you want to use. Default package manager is yarn
  • -n flag will prevent it from creating/modifying .gitignore file

The script does a few things to work:

  • Step 1: if no node_modules is detected it will yarn/npm install for you
  • Step 2: Rename node_modules to node_modules.nosync
  • Step 3: Add symlink node_modules -> node_modules.nosync so stuff still works
  • Step 4: Add entry to .git/info/exclude to ignore the newly created node_modules symlink and node_modules.nosync
  • Step 5: Add entry to .gitignore to ignore the node_modules folder
  • Step 6: 💰💰💰?

Special thx to Apple for not creating an ignore setting 🙄

To prevent iCloud from syncing any folder in Finder

https://github.com/danielpham765/icloud-nosync-node

About

CLI tool to stop iCloud from syncing node_modules folders

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%