Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
kenwheeler committed Apr 21, 2015
1 parent 84ff37e commit 3d23e62
Show file tree
Hide file tree
Showing 8 changed files with 672 additions and 16 deletions.
15 changes: 9 additions & 6 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
var gulp = require('gulp');
var gutil = require('gulp-util');
var open = require('gulp-open');
var babel = require('gulp-babel');
var clean = require('gulp-clean');
var webpack = require('webpack');
var gwebpack = require('gulp-webpack');
Expand All @@ -20,14 +21,16 @@ gulp.task('open', function(){
});

gulp.task('clean', function(){
return gulp.src('dist', {read: false})
gulp.src('dist', {read: false})
.pipe(clean());
gulp.src('lib', {read: false})
.pipe(clean());
});

gulp.task("webpack", ['clean'], function() {
return gulp.src('index.js')
.pipe(gwebpack(webpackDistConfig))
.pipe(gulp.dest('dist/'));
gulp.task("babel", ['clean'], function() {
return gulp.src('src/*.js')
.pipe(babel())
.pipe(gulp.dest('lib'));
});

gulp.task("webpack-dev-server", function(callback) {
Expand Down Expand Up @@ -59,5 +62,5 @@ gulp.task("karma", ['lint'], function() {
});

gulp.task('test', ['lint', 'karma']);
gulp.task('build', ['clean', 'webpack']);
gulp.task('build', ['clean', 'babel']);
gulp.task('default', ['webpack-dev-server', 'open']);
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';

import Carousel from './src/carousel';
var Carousel = require('./lib/carousel');

export default Carousel;
module.exports = Carousel;
Loading

0 comments on commit 3d23e62

Please sign in to comment.