Skip to content
This repository was archived by the owner on May 22, 2019. It is now read-only.

Commit f73a859

Browse files
authored
Merge pull request #179 from Financial-Times/allow_template_folder
don't check for template folder to determine if user-facing
2 parents e440170 + 87b014a commit f73a859

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ NPM_INSTALL = npm prune --production=false && npm install
3030
BOWER_INSTALL = bower prune && bower install --config.registry.search=http://registry.origami.ft.com --config.registry.search=https://bower.herokuapp.com
3131
JSON_GET_VALUE = grep $1 | head -n 1 | sed 's/[," ]//g' | cut -d : -f 2
3232
IS_GIT_IGNORED = grep -q $(if $1, $1, $@) .gitignore
33-
VERSION = master
33+
VERSION = v26
3434
APP_NAME = $(shell cat package.json 2>/dev/null | $(call JSON_GET_VALUE,name))
3535
DONE = echo ✓ $@ done
3636
CONFIG_VARS = curl -fsL https://ft-next-config-vars.herokuapp.com/$1/$(call APP_NAME)$(if $2,.$2,) -H "Authorization: `heroku config:get APIKEY --app ft-next-config-vars`"
@@ -192,7 +192,7 @@ VERIFY_MSG_NO_PA11Y = "\n**** Error ****\nIt looks like your code is user-facing
192192
#check if project has demo app if there's a make a11y command
193193
_verify_pa11y_testable:
194194
@if [ "$(IS_USER_FACING)" ] && [ -z $(MAKEFILE_HAS_A11Y) ] && [ ! ${IGNORE_A11Y} ]; then (printf $(VERIFY_MSG_NO_PA11Y) && exit 1); fi
195-
@if [ ! -d server ] && [ -d templates ] && [ ! -f demos/app.js ]; then (echo $(VERIFY_MSG_NO_DEMO) && exit 1); fi
195+
@if [ "$(IS_USER_FACING)" ] && [ ! -d server ] && [ ! -f demos/app.js ]; then (echo $(VERIFY_MSG_NO_DEMO) && exit 1); fi
196196
@$(DONE)
197197

198198
_run_pa11y:

0 commit comments

Comments
 (0)