diff --git a/gulpfile.js b/gulpfile.js index c3cd41b..00b25fd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -2,6 +2,7 @@ import gulp from 'gulp'; import babel from 'gulp-babel'; import jsxCoverage from 'gulp-jsx-coverage'; import path from 'path'; +import coveralls from 'gulp-coveralls'; gulp.task('test', jsxCoverage.createTask({ src: ['./tests/**/*{.js,.jsx}'], // will pass to gulp.src as mocha tests @@ -37,8 +38,6 @@ gulp.task('build', () => { .pipe(gulp.dest('./dist')); }); -/* - gulp.task('coveralls', ['test'], () => { if (!process.env.CI) { return void 0; @@ -47,7 +46,7 @@ gulp.task('coveralls', ['test'], () => { return gulp.src(path.join(__dirname, 'coverage/lcov.info')) .pipe(coveralls()); }); -*/ + gulp.doneCallback = (err) => { process.exit(err ? 1 : 0); diff --git a/package.json b/package.json index 17bd4e4..bc68ab6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-translate-maker", - "version": "0.1.0", + "version": "0.1.2", "description": "Universal internationalization (i18n) open source library for React", "main": "dist/index.js", "keywords": [ @@ -32,6 +32,7 @@ "prepublish": "npm run build", "test": "babel-node ./node_modules/gulp/bin/gulp.js test", "build": "babel-node ./node_modules/gulp/bin/gulp.js build", + "coveralls": "babel-node ./node_modules/gulp/bin/gulp.js coveralls", "eslint": "node ./node_modules/eslint/bin/eslint.js --ext .js,.jsx ." }, "repository": { @@ -63,6 +64,7 @@ "eslint-plugin-react": "^3.15.0", "gulp": "^3.9.0", "gulp-babel": "^6.1.1", + "gulp-coveralls": "^0.1.4", "gulp-jsx-coverage": "^0.3.7", "gulp-util": "^3.0.7", "react": "^0.14.6",