-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.2.0: Remote config feature, interactive support
Signed-off-by: Valentin Kiselev <mrexox@evilmartians.com>
- Loading branch information
Showing
15 changed files
with
76 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Packages version to release | ||
VERSION := 1.2.0 | ||
|
||
DIST_DIR := ../dist | ||
|
||
LINUX_AMD64_BIN=$(DIST_DIR)/lefthook_linux_amd64_v1/lefthook | ||
LINUX_ARM64_BIN=$(DIST_DIR)/lefthook_linux_arm64/lefthook | ||
WINDOWS_AMD64_BIN=$(DIST_DIR)/lefthook_windows_amd64_v1/lefthook.exe | ||
WINDOWS_ARM64_BIN=$(DIST_DIR)/lefthook_windows_arm64/lefthook.exe | ||
DARWIN_AMD64_BIN=$(DIST_DIR)/lefthook_darwin_amd64_v1/lefthook | ||
DARWIN_ARM64_BIN=$(DIST_DIR)/lefthook_darwin_arm64/lefthook | ||
|
||
prepare: clean set-version put-readme put-binaries | ||
|
||
publish: | ||
find npm -type d -name 'lefthook*' -exec npm publish --access public \{} \; | ||
npm publish --access public npm-bundled | ||
npm publish --access public npm-installer | ||
cd rubygems; rake build; gem push pkg/*.gem | ||
|
||
# Update versions of all packages | ||
set-version: | ||
find npm -name 'package.json' -type f -print0 | xargs -0 sed -E -i "s/\"version\": \".+\"/\"version\": \"$(VERSION)\"/" | ||
sed -E -i "s/\"(lefthook-.+)\": \".+\"/\"\1\": \"$(VERSION)\"/g" npm/lefthook/package.json | ||
sed -E -i "0,/version/{s/\"version\": \".+\"/\"version\": \"$(VERSION)\"/}" npm-bundled/package.json | ||
sed -E -i "0,/version/{s/\"version\": \".+\"/\"version\": \"$(VERSION)\"/}" npm-installer/package.json | ||
sed -E -i "s/(spec\.version\s+= ).*/\1\"$(VERSION)\"/" rubygems/lefthook.gemspec | ||
|
||
put-binaries: | ||
install -D $(LINUX_AMD64_BIN) npm/lefthook-linux-x64/bin/lefthook | ||
install -D $(LINUX_ARM64_BIN) npm/lefthook-linux-arm64/bin/lefthook | ||
install -D $(WINDOWS_AMD64_BIN) npm/lefthook-windows-x64/bin/lefthook.exe | ||
install -D $(WINDOWS_ARM64_BIN) npm/lefthook-windows-arm64/bin/lefthook.exe | ||
install -D $(DARWIN_AMD64_BIN) npm/lefthook-darwin-x64/bin/lefthook | ||
install -D $(DARWIN_ARM64_BIN) npm/lefthook-darwin-arm64/bin/lefthook | ||
cd npm-bundled; npm version $(VERSION) --allow-same-version; cd - | ||
cd ../dist; find . -maxdepth 2 -executable -type f -exec cp --parents \{\} ../packaging/rubygems/libexec/ \; | ||
|
||
put-readme: | ||
find npm/ -type d -name 'lefthook*' -exec cp -f ../README.md \{} \; | ||
cp ../README.md npm-bundled/ | ||
cp ../README.md npm-installer/ | ||
|
||
clean: | ||
find npm/ -name 'README.md' -exec rm \{} \; | ||
find npm/ -type f -name 'lefthook*' -executable -exec rm \{} \; | ||
rm npm-bundled/README.md | ||
git clean -fdX npm-bundled/bin/ | ||
rm npm-installer/README.md | ||
git clean -fdX rubygems/libexec/ rubygems/pkg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters