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

Commit

Permalink
update to expect ft.yml file (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys authored Feb 1, 2017
1 parent 446cbd1 commit 2f26678
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export $(shell [ -f .env ] && sed 's/=.*//' .env)
$(info Note — An .env file exists. Its contents have been exported as environment variables.)
endif

# Enforce repo ownership
ifeq ("$(wildcard ft.yml)","")
$(error 'Projects making use of n-makefile *must* define an ft.yml file containing the repo owner's details (see any next- repo for required structure)')
endif

# ./node_modules/.bin on the PATH
export PATH := ./node_modules/.bin:$(PATH)

Expand All @@ -25,6 +30,7 @@ APP_NAME = $(shell cat package.json 2>/dev/null | $(call JSON_GET_VALUE,name))
DONE = echo ✓ $@ done
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`"


#
# META TASKS
#
Expand Down

0 comments on commit 2f26678

Please sign in to comment.