From 912ac833144e8843f9304641cf4a686eeafe3e13 Mon Sep 17 00:00:00 2001 From: Will Roberts Date: Fri, 23 Jun 2017 10:55:00 +0200 Subject: [PATCH] created travis: npm run lint and npm run build --- {{cookiecutter.app_name}}/.eslintrc | 3 ++- {{cookiecutter.app_name}}/.travis.yml | 11 +++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.app_name}}/.eslintrc b/{{cookiecutter.app_name}}/.eslintrc index 1fd76fb..d2573f8 100644 --- a/{{cookiecutter.app_name}}/.eslintrc +++ b/{{cookiecutter.app_name}}/.eslintrc @@ -15,6 +15,7 @@ }, "globals": { "__dirname": true, - "jQuery": true + "jQuery": true, + "$": true } } diff --git a/{{cookiecutter.app_name}}/.travis.yml b/{{cookiecutter.app_name}}/.travis.yml index e28b70b..938fc8d 100644 --- a/{{cookiecutter.app_name}}/.travis.yml +++ b/{{cookiecutter.app_name}}/.travis.yml @@ -8,6 +8,13 @@ python: - 3.4 - 3.5 - 3.6 -install: pip install -r requirements/dev.txt -before_script: flask lint +install: + - pip install -r requirements/dev.txt + - nvm install 6.10 + - nvm use 6.10 + - npm install +before_script: + - npm run lint + - npm run build + - flask lint script: flask test