![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/vreg/node_modules/smartystreets-javascript-sdk/ |
#!/usr/bin/make -f VERSION := $(shell tagit -p --dry-run) VERSION_FILE1 := package.json VERSION_FILE2 := package-lock.json clean: rm -rf dist/ test: clean node_modules npm run test node_modules: npm install publish: clean test version upload unversion tagit -p git push origin --tags upload: npm publish && node browserify.js && node s3.js version: sed -i.bak -e 's/^ "version": "0\.0\.0",/ "version": "$(VERSION)",/g' "$(VERSION_FILE1)" && rm -f "$(VERSION_FILE1).bak" sed -i.bak -e 's/^ "version": "0\.0\.0",/ "version": "$(VERSION)",/g' "$(VERSION_FILE2)" && rm -f "$(VERSION_FILE2).bak" unversion: git checkout "$(VERSION_FILE1)" "$(VERSION_FILE2)" # node_modules is a real directory target .PHONY: clean test publish upload version unversion