0.0.1-rc2 β’ Published 8 years ago
save-ssd-cli v0.0.1-rc2
save-ssd-cli
Share the node_modules
release your Hard Disk spaces.
Story
My work enviroment is Macbook, as everybody knows the SSD
space is very expensiveπ°π°π°.
This is my folder structure for each project it depends modules by itself but many duplicate.
dev/
βββ module_name1/
| βββ node_modules/ (many duplicate here)
βββ module_name2/
βββ node_modules/ (many duplicate here)
Resolve idea: this is fine because require
in js file will finds out parent directory till get closest node_modules
, but it still had a problem, lost the node_modules/.bin
execable files in each project, npm run command
will get fail.
save-ssd
is created to resolve this problem.
dev/
βββ package.json
βββ node_modules/ (common modules)
βββ module_name1/
βββ module_name2/
Install
$ npm install -g save-ssd-cli
into project root:
$ cd your_module_project
run save-ssd
will create symbol link from closest parent node_module/.bin/*
in to ./node_moduls/.bin/*
$ save-ssd
β Starting
[save-ssd] β
Congratulation you're saving your SSD β€οΈ 117.68 Mb