|
|
|
@ -2,13 +2,16 @@ |
|
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
|
"""Invoke tasks.""" |
|
|
|
|
import os |
|
|
|
|
import json |
|
|
|
|
import shutil |
|
|
|
|
|
|
|
|
|
from invoke import task, run |
|
|
|
|
|
|
|
|
|
HERE = os.path.abspath(os.path.dirname(__file__)) |
|
|
|
|
with open(os.path.join(HERE, 'cookiecutter.json'), 'r') as fp: |
|
|
|
|
COOKIECUTTER_SETTINGS = json.load(fp) |
|
|
|
|
# Match default value of app_name from cookiecutter.json |
|
|
|
|
COOKIE = os.path.join(HERE, 'myflaskapp') |
|
|
|
|
COOKIE = os.path.join(HERE, COOKIECUTTER_SETTINGS['app_name']) |
|
|
|
|
REQUIREMENTS = os.path.join(COOKIE, 'requirements', 'dev.txt') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|