<commit_before>
#############
# VARIABLES #

# Component Name:
NAME ?= polymer-timeseries

# Distributable filename:
OUT ?= $(NAME).html

# Set the node.js environment to test:
NODE_ENV ?= test


# NOTES #

NOTES ?= 'TODO|FIXME|WARNING|HACK|NOTE'


# DOCS #

# DOCS ?= ./docs/index.html


# BOWER #

BOWER ?= ./node_modules/.bin/bower


# BROWSERIFY #

BROWSERIFY ?= ./node_modules/.bin/browserify
BROWSERIFY_BUILD_IN ?= ./build/js/polymer.js
BROWSERIFY_BUILD_OUT ?= ./build/js/script.js
BROWSERIFY_TEST_IN ?= ./build/js/polymer.js
BROWSERIFY_TEST_OUT ?= ./build/js/script.js


# VULCANIZE #

VULCANIZE ?= ./node_modules/.bin/vulcanize
VULCANIZE_CONF ?= ./vulcanize.conf.json
VULCANIZE_BUILD_IN ?= ./build/$(NAME).html
VULCANIZE_BUILD_OUT ?= $(OUT)


# ISTANBUL #

ISTANBUL ?= ./node_modules/.bin/istanbul
ISTANBUL_OUT ?= ./reports/coverage
ISTANBUL_REPORT ?= lcov
ISTANBUL_LCOV_INFO_PATH ?= $(ISTANBUL_OUT)/lcov.info
ISTANBUL_HTML_REPORT_PATH ?= $(ISTANBUL_OUT)/lcov-report/index.html


# COVERALLS #

COVERALLS ?= ./node_modules/.bin/coveralls


# WEB COMPONENT TESTER #

WCT ?= ./node_modules/.bin/wct
WCT_SRC ?= ./src
WCT_TMP ?= ./build
WCT_VAR ?= 'window.parent.WCT.share.__coverage__'


# JSHINT #

JSHINT ?= ./node_modules/.bin/jshint
JSHINT_REPORTER ?= ./node_modules/jshint-stylish/stylish.js



# FILES #

# Source files:
SOURCES ?= src/*.js src/**/*.js

# Test files:
TESTS ?= test/*.js




###########
# TARGETS #


# NOTES #

.PHONY: notes

notes:
	grep -Ern $(NOTES) $(SOURCES) $(TESTS)


# DOCS #

# .PHONY: view-docs

# view-docs:
# 	open $(DOCS)


# UNIT TESTS #

.PHONY: test
.PHONY: test-wct test-browserify test-tmp

test: test-wct

test-tmp: clean-test
	mkdir $(WCT_TMP)
	cp -a $(WCT_SRC)/. $(WCT_TMP)

test-browserify: node_modules
	$(BROWSERIFY) \
		$(BROWSERIFY_TEST_IN) \
		-o $(BROWSERIFY_TEST_OUT)

test-wct: node_modules test-tmp test-browserify
	$(WCT)



# CODE COVERAGE #

.PHONY: test-cov test-instrument
.PHONY: test-istanbul-wct
.PHONY: test-istanbul-instrument

test-cov: test-istanbul-wct

test-instrument: test-istanbul-instrument

test-istanbul-instrument: node_modules<commit_msg>[DEBUG] selenium error in travis-ci.<commit_after>
#############
# VARIABLES #

# Component Name:
NAME ?= polymer-timeseries

# Distributable filename:
OUT ?= $(NAME).html

# Set the node.js environment to test:
NODE_ENV ?= test


# NOTES #

NOTES ?= 'TODO|FIXME|WARNING|HACK|NOTE'


# DOCS #

# DOCS ?= ./docs/index.html


# BOWER #

BOWER ?= ./node_modules/.bin/bower


# BROWSERIFY #

BROWSERIFY ?= ./node_modules/.bin/browserify
BROWSERIFY_BUILD_IN ?= ./build/js/polymer.js
BROWSERIFY_BUILD_OUT ?= ./build/js/script.js
BROWSERIFY_TEST_IN ?= ./build/js/polymer.js
BROWSERIFY_TEST_OUT ?= ./build/js/script.js


# VULCANIZE #

VULCANIZE ?= ./node_modules/.bin/vulcanize
VULCANIZE_CONF ?= ./vulcanize.conf.json
VULCANIZE_BUILD_IN ?= ./build/$(NAME).html
VULCANIZE_BUILD_OUT ?= $(OUT)


# ISTANBUL #

ISTANBUL ?= ./node_modules/.bin/istanbul
ISTANBUL_OUT ?= ./reports/coverage
ISTANBUL_REPORT ?= lcov
ISTANBUL_LCOV_INFO_PATH ?= $(ISTANBUL_OUT)/lcov.info
ISTANBUL_HTML_REPORT_PATH ?= $(ISTANBUL_OUT)/lcov-report/index.html


# COVERALLS #

COVERALLS ?= ./node_modules/.bin/coveralls


# WEB COMPONENT TESTER #

WCT ?= ./node_modules/.bin/wct
WCT_SRC ?= ./src
WCT_TMP ?= ./build
WCT_VAR ?= 'window.parent.WCT.share.__coverage__'


# JSHINT #

JSHINT ?= ./node_modules/.bin/jshint
JSHINT_REPORTER ?= ./node_modules/jshint-stylish/stylish.js



# FILES #

# Source files:
SOURCES ?= src/*.js src/**/*.js

# Test files:
TESTS ?= test/*.js




###########
# TARGETS #


# NOTES #

.PHONY: notes

notes:
	grep -Ern $(NOTES) $(SOURCES) $(TESTS)


# DOCS #

# .PHONY: view-docs

# view-docs:
# 	open $(DOCS)


# UNIT TESTS #

.PHONY: test
.PHONY: test-wct test-browserify test-tmp

test: test-wct

test-tmp: clean-test
	mkdir $(WCT_TMP)
	cp -a $(WCT_SRC)/. $(WCT_TMP)

test-check:
	cat /etc/hosts

test-browserify: node_modules
	$(BROWSERIFY) \
		$(BROWSERIFY_TEST_IN) \
		-o $(BROWSERIFY_TEST_OUT)

test-wct: node_modules test-tmp test-check test-browserify
	$(WCT)



# CODE COVERAGE #

.PHONY: test-cov test-instrument
.PHONY: test-istanbul-wct
.PHONY: test-istanbul-instrument

test-cov: test-istanbul-wct

test-instrument: test-istanbul-instrument

test-istanbul-instrument: node_modules
{'fraction_non_alphanumeric': 0.16391536851894908, 'fraction_numerical': 0.0, 'mean_word_length': 3.89419795221843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '27629', 'n_tokens_mistral': 1953, 'n_tokens_neox': 1858, 'n_words': 301}