1.0.0 β’ Published 2 years ago
@daniel765/node-nosync-icloudd v1.0.0
π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
yarn add -g @daniel765/node-nosync-icloudd
# Install dependencies with yarn
nsn
# Or install dependencies with npm
nsn -m npm
-m
flag: is what package manageryarn/npm
that you want to use. Default package manager isyarn
-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 willyarn/npm install
for you - Step 2: Rename
node_modules
tonode_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 creatednode_modules
symlink andnode_modules.nosync
- Step 5: Add entry to
.gitignore
to ignore thenode_modules
folder - Step 6: π°π°π°?
Special thx to Apple for not creating an ignore setting π
To prevent iCloud from syncing any folder in Finder
1.0.0
2 years ago