https://github.com/berhalak/ber
Best ever resolver - Local package manager
https://github.com/berhalak/ber
dependency firebase firebase-functions local-development npm package-manager
Last synced: about 2 months ago
JSON representation
Best ever resolver - Local package manager
- Host: GitHub
- URL: https://github.com/berhalak/ber
- Owner: berhalak
- License: gpl-3.0
- Created: 2018-10-09T23:00:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-08-20T14:41:44.000Z (11 months ago)
- Last Synced: 2025-10-05T15:39:05.655Z (9 months ago)
- Topics: dependency, firebase, firebase-functions, local-development, npm, package-manager
- Language: TypeScript
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ber
npm i -g ber
# Description
This tool allows to install package as local dependency using tarbal (npm pack).
Usage
ber i path_to_package
ber i // updates all local packages
Packages are stored as tgz files in folder ./local_modules
Primary it is used to deploy functions to firebase with local packages
Go to example directory (example) and run:
```
cd ./libs/lib_a
ber i ../libs/lib_b // install lib_b in lib_a
cd ../../web // go to web
ber i ../libs/lib_a
ber i ../libs/lib_b
```
Example directory has dependency tree:
- web (depends on lib_a, and lib_b)
- lib_a (depends on lib_b)
No whenever something changes, just hit in web directory
ber i
And everything will be reinstalled
ber, will first build package lib_b (execute build script if any, and pack the package), then build package lib_a, and then install them both in web using npm install ./.local_modules/*.tgz