Skip to content

Commit

Permalink
Remove go.mod and go.sum in repository for bindings (they will be add…
Browse files Browse the repository at this point in the history
…ed when building), see #701
  • Loading branch information
tdewolff committed May 17, 2024
1 parent a32f60e commit 73bdbe7
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 26 deletions.
2 changes: 2 additions & 0 deletions bindings/js/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ compile:
go build -buildmode=c-archive -o minify.a minify.go

build:
go mod init
go get github.com/tdewolff/minify/v2@${HASH}
node-gyp configure
prebuildify --napi --strip
Expand All @@ -31,6 +32,7 @@ clean:
rm -rf minify.a
rm -rf build
rm -rf prebuilds
rm -rf go.*

test:
npm test
Expand Down
8 changes: 0 additions & 8 deletions bindings/js/go.mod

This file was deleted.

4 changes: 0 additions & 4 deletions bindings/js/go.sum

This file was deleted.

2 changes: 2 additions & 0 deletions bindings/py/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ VERSION=`git describe --tags --abbrev=0`
all: build

build: *.go MANIFEST.in
go mod init
go get github.com/tdewolff/minify/v2@${VERSION}
go build -buildmode=c-shared -o src/minify/minify.so
python -m build --sdist
Expand All @@ -14,6 +15,7 @@ publish: clean build
clean:
rm -rf dist
rm -rf tdewolff_minify.egg-info
rm -rf go.*

.PHONY: all build publish clean

8 changes: 0 additions & 8 deletions bindings/py/go.mod

This file was deleted.

6 changes: 0 additions & 6 deletions bindings/py/go.sum

This file was deleted.

0 comments on commit 73bdbe7

Please sign in to comment.