Commit 35a86a62 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Fixes #13 - gulp concurrency issue

parent 67499b34
Pipeline #8099 passed with stage
in 1 minute and 13 seconds
......@@ -14,7 +14,6 @@ test:
- pwd
- head tests/settings.json.ci
- cp tests/settings.json.ci ./local_settings.json
# Sometimes gulp mixes the order of tasks and does not generate templates, hence it's run twice below:
- cd beacon && yarn install && node node_modules/gulp/bin/gulp.js && node node_modules/gulp/bin/gulp.js && cd ../
- cd beacon && yarn install && node node_modules/gulp/bin/gulp.js && cd ../
- coverage run --source beacon setup.py test
- coverage report -m
\ No newline at end of file
......@@ -11,31 +11,31 @@ var css_path = 'src/*.css',
template_path = 'src/templates/*.html';
gulp.task('css', function() {
gulp.src(css_path)
return gulp.src(css_path)
.pipe(gulp_clean_css())
.pipe(gulp_concat('build.css'))
.pipe(gulp.dest('static'))
.pipe(gulp.dest('static'));
});
gulp.task('png', function() {
gulp.src(png_path)
.pipe(gulp.dest('static'))
return gulp.src(png_path)
.pipe(gulp.dest('static'));
});
gulp.task('svg', function() {
gulp.src(svg_path)
.pipe(gulp.dest('static'))
return gulp.src(svg_path)
.pipe(gulp.dest('static'));
});
gulp.task('js', function() {
gulp.src(js_path)
return gulp.src(js_path)
.pipe(gulp_uglify())
.pipe(gulp_concat('build.js'))
.pipe(gulp.dest('static'))
.pipe(gulp.dest('static'));
});
gulp.task('templates', ['css', 'js', 'png', 'svg'], function() {
gulp.src(template_path)
return gulp.src(template_path)
.pipe(gulp_inject(gulp.src('static/*.js', {read:false}), {
transform: function(filepath) {
filepath = filepath.slice(filepath.lastIndexOf("/") + 1);
......@@ -48,7 +48,7 @@ gulp.task('templates', ['css', 'js', 'png', 'svg'], function() {
return "<link rel='stylesheet' href=\"{{ url_for('static', filename='" + filepath + "') }}\" />";
}
}))
.pipe(gulp.dest('templates'))
.pipe(gulp.dest('templates'));
});
gulp.task('watch', function() {
......
......@@ -24,7 +24,7 @@ def get_test_suite():
setup(
name='elixir_beacon',
version='1.3.7',
version='1.3.8',
description="ELIXIR Beacon",
author="Jacek Lebioda",
author_email='jacek.lebioda@uni.lu',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment