<commit_before>TARGETS = \
	app/js/compiled.js \
	app/index.html \

EXTERNS = \
	externs/angular-1.3-q.js \
	externs/angular-1.3-http-promise.js \
	externs/angular-1.3.js \

SOURCES = \
	js/app.js \
	js/button.js \
	js/calculator.js \
	js/stackoperation.js \

all: $(TARGETS)

clean:
	rm -rf $(TARGETS)
	rm -rf app
	rm -rf externs
	rm -f compiler.jar
	rm -f compiler-latest.zip

externs/%:
	mkdir -p externs
	wget -O $@ -N -q https://raw.githubusercontent.com/google/closure-compiler/master/contrib/$@

app/index.html: index.html
	cp $< $@

app/js/compiled.js: compiler.jar $(SOURCES) $(EXTERNS)
	mkdir -p app/js
	java -jar compiler.jar \
	--js_output_file $@ \
	--angular_pass \
	--externs $(EXTERNS) \
	--js $(SOURCES) \
	--warning_level VERBOSE \
	--jscomp_error suspiciousCode \
	--jscomp_error reportUnknownTypes \
	--compilation_level ADVANCED \
	--language_in ECMASCRIPT5_STRICT \
	--formatting SINGLE_QUOTES \
	--summary_detail_level 3 \

update-compiler: remove-compiler compiler.jar

remove-compiler:
	rm -f compiler-latest.zip

compiler-latest.zip:
	wget -O $@ -N -q http://dl.google.com/closure-compiler/compiler-latest.zip

compiler.jar: compiler-latest.zip
	unzip -q compiler-latest.zip compiler.jar
	touch $@ -r $<

update-externs: remove-externs $(EXTERNS)

remove-externs:
	rm -f $(EXTERNS)

deploy: google-app-engine.yaml $(TARGETS)
	mkdir -p app
	cp $< app/
	gcloud preview app --project rpncalcorg deploy app<commit_msg>Added linter targets.<commit_after>TARGETS = \
	app/js/compiled.js \
	app/index.html \

EXTERNS = \
	externs/angular-1.3-q.js \
	externs/angular-1.3-http-promise.js \
	externs/angular-1.3.js \

SOURCES = \
	js/app.js \
	js/button.js \
	js/calculator.js \
	js/stackoperation.js \

all: $(TARGETS)

clean:
	rm -rf $(TARGETS)
	rm -rf app
	rm -rf externs
	rm -f compiler.jar
	rm -f compiler-latest.zip

externs/%:
	mkdir -p externs
	wget -O $@ -N -q https://raw.githubusercontent.com/google/closure-compiler/master/contrib/$@

app/index.html: index.html
	cp $< $@

app/js/compiled.js: compiler.jar $(SOURCES) $(EXTERNS)
	mkdir -p app/js
	java -jar compiler.jar \
	--js_output_file $@ \
	--angular_pass \
	--externs $(EXTERNS) \
	--js $(SOURCES) \
	--warning_level VERBOSE \
	--jscomp_error suspiciousCode \
	--jscomp_error reportUnknownTypes \
	--compilation_level ADVANCED \
	--language_in ECMASCRIPT5_STRICT \
	--formatting SINGLE_QUOTES \
	--summary_detail_level 3 \

update-compiler: remove-compiler compiler.jar

remove-compiler:
	rm -f compiler-latest.zip

compiler-latest.zip:
	wget -O $@ -N -q http://dl.google.com/closure-compiler/compiler-latest.zip

compiler.jar: compiler-latest.zip
	unzip -q compiler-latest.zip compiler.jar
	touch $@ -r $<

update-externs: remove-externs $(EXTERNS)

remove-externs:
	rm -f $(EXTERNS)

deploy: google-app-engine.yaml $(TARGETS)
	mkdir -p app
	cp $< app/
	gcloud preview app --project rpncalcorg deploy app

lint: jscs gjslint

jscs:
	jscs -v $(SOURCES)

gjslint:
	gjslint --disable=5,210 $(SOURCES)
{'fraction_non_alphanumeric': 0.1486078497148608, 'fraction_numerical': 0.006709158000670915, 'mean_word_length': 3.1359223300970873, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6655257', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1177, 'n_words': 242}