Skip to content

Commit

Permalink
Merge pull request #23 from igrybkov/release-it
Browse files Browse the repository at this point in the history
🏗 Add release tooling
  • Loading branch information
igrybkov authored Jan 9, 2019
2 parents 43d1d5d + 1cc6672 commit 08dc312
Show file tree
Hide file tree
Showing 4 changed files with 4,391 additions and 1,137 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
.env
/settings.plist
dist/
*.alfredworkflow
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,17 @@ link:

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

alfredworkflow:
$(eval name=$(shell /usr/libexec/PlistBuddy -c Print:name info.plist | sed -e 's/ //g'))
$(eval archive=$(shell npm pack 2>&1 | tail -n1))
rm -rf dist
mkdir dist
tar -xzf $(archive) -C dist
rm -rf $(archive)
cp package-lock.json dist/package/
cd dist/package; npm ci --production --ignore-scripts
cd dist/package; zip -r ../$(name).alfredworkflow .
rm -rf dist/package
# -pushd src; zip -r ../bin/InterSystems.alfredworkflow .; popd
# tar -xzf bar.tar.gz -C
Loading

0 comments on commit 08dc312

Please sign in to comment.