Skip to content

dellyn/npm-fetch-repos-data-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

npm-fetch-repos-data-script

NPM script for fetching and syncing data between different repos

"config": {
    "frontendSSH": "git@gitlab.com...",
    "defaultBranch": "master",
    "sharedFolderPath": "commonConstants"
},
"scripts": {
    "fetchFolderFromRepo": "run(){ branch=${1:-$npm_package_config_defaultBranch} && git archive --remote=$npm_package_config_frontendSSH $branch $npm_package_config_sharedFolderPath/*.js | tar xvf -; }; run",
    "removeFolder": "rimraf $npm_package_config_sharedFolderPath/*.js",
    "getFolder": "npm run removeFolder && npm run fetchFolderFromRepo"
},

image

About

NPM script for fetching and syncing data between different repos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published