Skip to content

Go utility to monitor changed in requirements.txt and package.json

Notifications You must be signed in to change notification settings

maxkulish/isChanged

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang utility to check changes in requirements.txt and package.json

How to run it

./isChangedLinux -npm=/home/project/package.json
./isChangedLinux -pip=/home/project/requirements.txt

In package.json checks only two arguments: "dependencies" and "devDependencies".

First check save maps to history.gob file. Second - compare maps and return Exit.code(10) if changed, Exit.code(11) if equal.

To check pip file requirements.txt

./isChanged -pip=/home/project/requirements.txt

How to use it

Check if package.json changed remove old node_modules and npm install

Makefile

./isChangedLinux -npm=/home/project/package.json \
if [ $$? -eq 10 ] ; \
then cd $(JS_DIR) && rm -rf node_modules && npm install ; fi

About

Go utility to monitor changed in requirements.txt and package.json

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages