Skip to content

Commit

Permalink
🍭 Add make commands to switch between release and development versions
Browse files Browse the repository at this point in the history
  • Loading branch information
igrybkov committed Jan 13, 2019
1 parent 9b19bb1 commit 1a6a284
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,20 @@ publish:
npm publish

link:
./node_modules/alfred-link/link.js
-./node_modules/alfred-link/link.js

unlink:
./node_modules/alfred-link/unlink.js
-./node_modules/alfred-link/unlink.js

switch-to-release: unlink
$(eval packageName=$(shell node -e "try {var pack=require('./package.json'); console.log(pack.name); } catch(e) {}"))
npm install -g $(packageName)

switch-to-dev:
$(eval packageName=$(shell node -e "try {var pack=require('./package.json'); console.log(pack.name); } catch(e) {}"))
npm remove -g $(packageName)
make link


alfredworkflow:
$(eval name=$(shell /usr/libexec/PlistBuddy -c Print:name info.plist | sed -e 's/ //g'))
Expand Down

0 comments on commit 1a6a284

Please sign in to comment.