move the source files to ./src

This commit is contained in:
Martin
2017-08-04 22:28:54 +02:00
parent 58dd1c66fd
commit f36d6f5915
37 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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']);
+2 -2
View File
@@ -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');
}());