From cf62a8047d77fed462888b5bb306c9706b572a0e Mon Sep 17 00:00:00 2001 From: Tom Price Date: Tue, 9 May 2017 13:42:20 +0100 Subject: [PATCH] Add node, gulp and travis build steps --- .travis.yml | 2 ++ gulpfile.js | 4 ++++ package.json | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1efb7729..03142b07 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,8 @@ before_install: install: - pip install -r requirements.txt - pip install coveralls codeclimate-test-reporter + - npm install + - npm build before_script: - python manage.py collectstatic --noinput diff --git a/gulpfile.js b/gulpfile.js index 6b249d35..87ac991f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -65,3 +65,7 @@ gulp.task('frontend', [ // 'css', 'js_lib' ]); + +gulp.task('build', [ + "frontend" +]); diff --git a/package.json b/package.json index 695384c5..10dc31cf 100644 --- a/package.json +++ b/package.json @@ -16,5 +16,8 @@ "gulp-sourcemaps": "^2.6.0", "gulp-watch": "^4.3.11", "jquery": "^1.9.1" + }, + "scripts": { + "build": "gulp build" } }