1.0.1 β’ Published 4 years ago
@daniel765/node-nosync-icloud v1.0.1
π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-mflag: is what package manageryarn/npmthat you want to use. Default package manager isyarn-nflag will prevent it from creating/modifying.gitignorefile
The script does a few things to work:
- Step 1: if no
node_modulesis detected it willyarn/npm installfor you - Step 2: Rename
node_modulestonode_modules.nosync - Step 3: Add symlink
node_modules->node_modules.nosyncso stuff still works - Step 4: Add entry to
.git/info/excludeto ignore the newly creatednode_modulessymlink andnode_modules.nosync - Step 5: Add entry to
.gitignoreto ignore thenode_modulesfolder - Step 6: π°π°π°?