pax_global_header 0000666 0000000 0000000 00000000064 14117007110 0014502 g ustar 00root root 0000000 0000000 52 comment=63a095ed7e45a8ed1b91da818a08714430a1f687 minify-2.9.22/ 0000775 0000000 0000000 00000000000 14117007110 0013071 5 ustar 00root root 0000000 0000000 minify-2.9.22/.gitattributes 0000664 0000000 0000000 00000000113 14117007110 0015757 0 ustar 00root root 0000000 0000000 benchmarks/sample_* linguist-generated tests/*/corpus/* linguist-generated minify-2.9.22/.github/ 0000775 0000000 0000000 00000000000 14117007110 0014431 5 ustar 00root root 0000000 0000000 minify-2.9.22/.github/dependabot.yml 0000664 0000000 0000000 00000000136 14117007110 0017261 0 ustar 00root root 0000000 0000000 version: 2 updates: - package-ecosystem: gomod directory: / schedule: interval: daily minify-2.9.22/.github/workflows/ 0000775 0000000 0000000 00000000000 14117007110 0016466 5 ustar 00root root 0000000 0000000 minify-2.9.22/.github/workflows/go.yml 0000664 0000000 0000000 00000001442 14117007110 0017617 0 ustar 00root root 0000000 0000000 name: Go on: push: branches: - master pull_request: branches: - master jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.16 - name: Build run: go build -v ./... - name: Tests with coverage run: go test -race -v -count=1 -coverprofile=coverage.out ./... - name: Upload Code Coverage uses: codecov/codecov-action@v1 with: name: codecov fail_ci_if_error: true golangci: name: lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: golangci-lint uses: golangci/golangci-lint-action@v2 continue-on-error: true with: version: latest minify-2.9.22/.gitignore 0000664 0000000 0000000 00000000431 14117007110 0015057 0 ustar 00root root 0000000 0000000 dist/ benchmarks/* !benchmarks/*.go !benchmarks/sample_* tests/*/fuzz-fuzz.zip tests/*/crashers tests/*/suppressions tests/*/corpus/* !tests/*/corpus/*.* parse/tests/*/fuzz-fuzz.zip parse/tests/*/crashers parse/tests/*/suppressions parse/tests/*/corpus/* !parse/tests/*/corpus/*.* minify-2.9.22/.golangci.yml 0000664 0000000 0000000 00000000303 14117007110 0015451 0 ustar 00root root 0000000 0000000 linters: enable: - depguard - dogsled - gofmt - goimports - golint - gosec - govet - megacheck - misspell - nakedret - prealloc - unconvert - unparam - wastedassign minify-2.9.22/Dockerfile 0000664 0000000 0000000 00000000632 14117007110 0015064 0 ustar 00root root 0000000 0000000 # Use this image to build the executable FROM golang:1.16-alpine AS compiler WORKDIR $GOPATH/src/minify COPY . . RUN apk add --update --update-cache --no-cache git ca-certificates && \ GO111MODULES=on CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath -o /bin/minify ./cmd/minify # Final image containing the executable from the previous step FROM alpine:3 COPY --from=compiler /bin/minify /bin/minify minify-2.9.22/LICENSE 0000664 0000000 0000000 00000002062 14117007110 0014076 0 ustar 00root root 0000000 0000000 Copyright (c) 2015 Taco de Wolff Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. minify-2.9.22/Makefile 0000664 0000000 0000000 00000002677 14117007110 0014545 0 ustar 00root root 0000000 0000000 NAME=minify CMD=./cmd/minify TARGETS=linux_amd64 darwin_amd64 freebsd_amd64 netbsd_amd64 openbsd_amd64 windows_amd64 VERSION=`git describe --tags` FLAGS=-ldflags "-s -w -X 'main.Version=${VERSION}'" -trimpath ENVS=GO111MODULES=on CGO_ENABLED=0 all: install install: echo "Installing ${VERSION}" ${ENVS} go install ${FLAGS} ./cmd/minify . cmd/minify/bash_completion release: TAG=$(shell git describe --tags --exact-match 2> /dev/null); if [ "${.SHELLSTATUS}" -eq 0 ]; then \ echo "Releasing ${VERSION}"; \ else \ echo "WARNING: commit is not tagged with a version"; \ echo ""; \ fi rm -rf dist mkdir -p dist for t in ${TARGETS}; do \ echo Building $$t...; \ mkdir dist/$$t; \ os=$$(echo $$t | cut -f1 -d_); \ arch=$$(echo $$t | cut -f2 -d_); \ ${ENVS} GOOS=$$os GOARCH=$$arch go build ${FLAGS} -o dist/$$t/${NAME} ${CMD}; \ \ cp LICENSE dist/$$t/.; \ cp cmd/minify/README.md dist/$$t/.; \ if [ "$$os" == "windows" ]; then \ mv dist/$$t/${NAME} dist/$$t/${NAME}.exe; \ zip -jq dist/${NAME}_$$t.zip dist/$$t/*; \ cd dist; \ sha256sum ${NAME}_$$t.zip >> checksums.txt; \ cd ..; \ else \ cp cmd/minify/bash_completion dist/$$t/.; \ cd dist/$$t; \ tar -cf - * | gzip -9 > ../${NAME}_$$t.tar.gz; \ cd ..; \ sha256sum ${NAME}_$$t.tar.gz >> checksums.txt; \ cd ..; \ fi; \ rm -rf dist/$$t; \ done clean: echo "Cleaning dist/" rm -rf dist .PHONY: install release clean .SILENT: install release clean minify-2.9.22/README.md 0000664 0000000 0000000 00000073031 14117007110 0014354 0 ustar 00root root 0000000 0000000 # Minify [](https://pkg.go.dev/github.com/tdewolff/minify/v2?tab=doc) [](https://goreportcard.com/report/github.com/tdewolff/minify) [](https://codecov.io/gh/tdewolff/minify) [](https://www.patreon.com/tdewolff) **[Online demo](https://go.tacodewolff.nl/minify) if you need to minify files *now*.** **[Command line tool](https://github.com/tdewolff/minify/tree/master/cmd/minify) that minifies concurrently and watches file changes.** **[Releases](https://github.com/tdewolff/minify/releases) of CLI for various platforms.** See [CLI](https://github.com/tdewolff/minify/tree/master/cmd/minify) for more installation instructions. **[Parse](https://github.com/tdewolff/minify/tree/master/parse) subpackage on which minify depends.** --- *Did you know that the shortest valid piece of HTML5 is `