{"size": 597, "ext": "js", "max_stars_repo_path": "gulp-tasks/util/build/prepareTransform.js", "max_stars_repo_name": "leonkyr/jsshop", "max_stars_repo_stars_event_min_datetime": "2015-06-09T09:20:50.000Z", "max_stars_repo_stars_event_max_datetime": "2016-02-19T20:16:59.000Z", "max_issues_repo_path": "gulp-tasks/util/build/prepareTransform.js", "max_issues_repo_name": "leonkyr/jsshop", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gulp-tasks/util/build/prepareTransform.js", "max_forks_repo_name": "leonkyr/jsshop", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.88, "max_line_length": 52, "alphanum_fraction": 0.5711892797}
'use strict';

var gulp = require('gulp'),
    Q = require('q'),
    extend = require('node.extend'),
    react = require('gulp-react'),
    concat = require('gulp-concat');

function transformJsx () {
    console.log('transformJsx');
    var deferred = Q.defer();
    
    gulp.src(['components/**/*.jsx'])
        .pipe(react())
        .pipe(concat('app.js'))
        .pipe(gulp.dest('build/dev/src'))
        .on('finish', function () {
            deferred.resolve(true);
        });
    return extend(deferred.promise, module.exports);
}

module.exports = {
    transformJsx: transformJsx
};