Skip to content

Commit

Permalink
re-organise examples
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyreilly committed May 15, 2017
1 parent 9249f56 commit f27b313
Show file tree
Hide file tree
Showing 69 changed files with 3 additions and 570 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,48 +1,32 @@
/* eslint-disable no-var, strict, prefer-arrow-callback */
'use strict';

var gulp = require('gulp');
var gutil = require('gulp-util');
var eslint = require('gulp-eslint');
var webpack = require('./gulp/webpack');
var staticFiles = require('./gulp/staticFiles');
var tests = require('./gulp/tests');
var clean = require('./gulp/clean');
var inject = require('./gulp/inject');

var lintSrcs = ['./gulp/**/*.js'];

gulp.task('delete-dist', function (done) {
clean.run(done);
});

gulp.task('build-process.env.NODE_ENV', function () {
process.env.NODE_ENV = 'production';
});

gulp.task('build-js', ['delete-dist', 'build-process.env.NODE_ENV'], function(done) {
gulp.task('build-js', ['delete-dist'], function(done) {
webpack.build().then(function() { done(); });
});

gulp.task('build-other', ['delete-dist', 'build-process.env.NODE_ENV'], function() {
gulp.task('build-other', ['delete-dist'], function() {
staticFiles.build();
});

gulp.task('build', ['build-js', 'build-other', 'lint'], function () {
inject.build();
});

gulp.task('lint', function () {
return gulp.src(lintSrcs)
.pipe(eslint())
.pipe(eslint.format());
});

gulp.task('watch', ['delete-dist'], function(done) {
process.env.NODE_ENV = 'development';
Promise.all([
webpack.watch()//,
//less.watch()
webpack.watch()
]).then(function() {
gutil.log('Now that initial assets (js and css) are generated inject will start...');
inject.watch();
Expand All @@ -51,7 +35,6 @@ gulp.task('watch', ['delete-dist'], function(done) {
gutil.log('Problem generating initial assets (js and css)', error);
});

gulp.watch(lintSrcs, ['lint']);
staticFiles.watch();
tests.watch();
});
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
201 changes: 0 additions & 201 deletions examples/webpack1-gulp-react-flux-babel-karma/.gitignore

This file was deleted.

22 changes: 0 additions & 22 deletions examples/webpack1-gulp-react-flux-babel-karma/LICENSE

This file was deleted.

15 changes: 0 additions & 15 deletions examples/webpack1-gulp-react-flux-babel-karma/README.md

This file was deleted.

0 comments on commit f27b313

Please sign in to comment.