move the source files to ./src
This commit is contained in:
+3
-3
@@ -7,7 +7,7 @@ var buffer = require('vinyl-buffer');
|
||||
var jshint = require('gulp-jshint');
|
||||
|
||||
gulp.task('build', function() {
|
||||
var app = browserify('./src/js/main.js');
|
||||
var app = browserify('./src/main.js');
|
||||
return app.bundle()
|
||||
.pipe(source("not-used-but-needed-string.js"))
|
||||
.pipe(buffer())
|
||||
@@ -18,13 +18,13 @@ gulp.task('build', function() {
|
||||
});
|
||||
|
||||
gulp.task('lint', function() {
|
||||
return gulp.src('src/**/*.js')
|
||||
return gulp.src('./src/**/*.js')
|
||||
.pipe(jshint())
|
||||
.pipe(jshint.reporter('default'));
|
||||
});
|
||||
|
||||
gulp.task('watch', function() {
|
||||
gulp.watch('src/**/*.js', ['build']);
|
||||
gulp.watch('./src/**/*.js', ['build']);
|
||||
});
|
||||
|
||||
gulp.task('default', ['lint', 'build']);
|
||||
@@ -6,13 +6,13 @@
|
||||
* Fabric functionality is extended with some custom functionality. This is done before
|
||||
* we do anything else.
|
||||
*/
|
||||
require('./includes/extend-fabric-functionality')();
|
||||
require('./extend-fabric-functionality')();
|
||||
|
||||
/**
|
||||
* ImageEditor is the starting point of all files. Here the image editor is created and
|
||||
* it receives attributes from the initialisation. As this is done from outside of this file,
|
||||
* the ImageEditor should be available on globally.
|
||||
*/
|
||||
window.ImageEditor = require('./includes/ImageEditor');
|
||||
window.ImageEditor = require('./ImageEditor');
|
||||
|
||||
}());
|
||||
Reference in New Issue
Block a user