Skip to content

Commit

Permalink
Update JS binding
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Sep 24, 2022
1 parent 3eafa59 commit 5048c08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
release.sh
dist/
dist
benchmarks/*
!benchmarks/*.go
!benchmarks/sample_*
Expand Down Expand Up @@ -27,3 +27,4 @@ bindings/py/minify.h
bindings/py/minify.so
bindings/py/tdewolff_minify.egg-info
bindings/py/example/example.min.html
bindings/py/dist
4 changes: 2 additions & 2 deletions bindings/js/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ all: build
compile:
go build -buildmode=c-archive -o minify.a minify.go

build: clean
build:
go get github.com/tdewolff/minify/v2@v${VERSION}
node-gyp configure
prebuildify --napi --strip

publish: build
publish: clean build
sed -i.bak -e "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/" package.json
rm package.json.bak
npm publish --access=public
Expand Down

0 comments on commit 5048c08

Please sign in to comment.