Skip to content

Commit

Permalink
Update all dependencies 🌴 (#79)
Browse files Browse the repository at this point in the history
* chore(package): update dependencies

https://greenkeeper.io/

* fix: use eslint cli instead of gulp-eslint

* fix: eslint path in npm scripts

* fix: globally install eslint on ci server

* fix: globally install babel-eslint on ci server
  • Loading branch information
greenkeeperio-bot authored and zacharygolba committed May 14, 2016
1 parent 2560584 commit af3e72b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ before_script:
- psql -c 'create database lux_test;' -U postgres
- touch test/test-app/db/lux_test_test.sqlite
- cd test/test-app && npm install && cd ../../
- npm install -g eslint babel-eslint
- npm link

env:
Expand Down
10 changes: 1 addition & 9 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import gulp from 'gulp';
import babel from 'gulp-babel';
import mocha from 'gulp-mocha';
import eslint from 'gulp-eslint';
import uglify from 'gulp-uglify';

import rmrf from './src/packages/cli/utils/rmrf';
Expand All @@ -10,20 +9,13 @@ gulp.task('clean', () => {
return rmrf('dist');
});

gulp.task('build', ['lint', 'clean'], () => {
gulp.task('build', ['clean'], () => {
return gulp.src('src/**/*.js')
.pipe(babel())
.pipe(uglify())
.pipe(gulp.dest('dist'));
});

gulp.task('lint', () => {
return gulp.src('src/**/*.js')
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});

gulp.task('test', ['build'], () => {
return gulp.src([
'test/helper.js',
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
"lux": "bin/lux"
},
"scripts": {
"build": "npm run lint && gulp build",
"lint": "eslint ./src/**",
"start": "lux serve",
"test": "gulp test"
"test": "npm run lint && gulp test"
},
"author": "Zachary Golba",
"license": "MIT",
Expand All @@ -34,7 +36,6 @@
"babel-preset-es2015": "6.6.0",
"babel-preset-stage-1": "6.5.0",
"chai": "3.5.0",
"eslint": "2.8.0",
"gulp": "3.9.1",
"gulp-babel": "6.1.2",
"gulp-eslint": "2.0.0",
Expand Down

0 comments on commit af3e72b

Please sign in to comment.