Skip to content

Commit

Permalink
Item14120: remove outdated compression tools
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jul 25, 2016
1 parent e858049 commit 43b8b51
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 28 deletions.
15 changes: 11 additions & 4 deletions JQueryPlugin/pub/System/JQueryPlugin/Makefile.include
Expand Up @@ -3,17 +3,20 @@ FOSWIKI_LIB=$(FOSWIKI_ROOT)/lib
JQUERYPLUGIN_LIB=$(FOSWIKI_LIB)/Foswiki/Plugins/JQueryPlugin

MINIFYJS=$(shell if which uglifyjs >/dev/null; then echo $(UGLIFYJS); else echo $(NOMINIFYJS); fi)
MINIFYCSS=$(shell if which cssmin >/dev/null; then echo $(CSSMIN); else echo $(NOMINIFYCSS); fi)

UGLIFYJS="uglifyjs -m -b beautify=false,ascii-only=true"
CSSMIN="cssmin"
NOMINIFYJS="echo 'WARNING: no javascript minifier found' >&2"

MINIFYCSS=$(shell if which cssmin >/dev/null; then echo $(CSSMIN); else echo $(NOMINIFYCSS); fi)
CSSMIN="cssmin"
NOMINIFYCSS="echo 'WARNING: no css minifier found' >&2"
NOMINIFYJS="echo 'WARNING: no javascript minifier found' >&2"

JSLINT=$(shell if which eslint > /dev/null; then echo $(ESHINT); else echo $(NOJSLINT); fi)
NOJSLINT="echo 'WARNING: no javascrit linter found' >&2"

SASS=$(shell if which node-sass >/dev/null; then echo $(SASS_CMD); else echo $(NOSASS); fi)
SASS_CMD="node-sass --output-style expanded"
NOSASS="echo 'WARNING: no sass preprocessor found' >&2"

ESHINT="eslint"
GZIP="gzip"
CAT="cat"
Expand Down Expand Up @@ -59,6 +62,10 @@ jslint: subdirs $(TARGET:.js=.jslint)
@echo minifying $@ from $<
@$(MINIFYCSS) $< > $@

%.uncompressed.css: %.scss
@echo sassing $@ from $<
@$(SASS) $< > $@

%.css: %_src.css
@echo minifying $@ from $<
@$(MINIFYCSS) $< > $@
Expand Down
Binary file removed JQueryPlugin/tools/jslint4java.jar
Binary file not shown.
12 changes: 0 additions & 12 deletions JQueryPlugin/tools/minifycss

This file was deleted.

12 changes: 0 additions & 12 deletions JQueryPlugin/tools/minifyjs

This file was deleted.

Binary file removed JQueryPlugin/tools/yuicompressor.jar
Binary file not shown.

0 comments on commit 43b8b51

Please sign in to comment.