mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-15 20:00:08 -07:00
32 lines
1010 B
JavaScript
32 lines
1010 B
JavaScript
var gulp = require('gulp'),
|
|
plugins = require('gulp-load-plugins')(),
|
|
build_sematnic = require('./app/Resources/assets/semantic/tasks/build'),
|
|
watch_sematnic = require('./app/Resources/assets/semantic/tasks/watch');
|
|
|
|
|
|
gulp.task('semantic:build', build_sematnic);
|
|
|
|
gulp.task('semantic:watch', watch_sematnic);
|
|
|
|
gulp.task('css', function() {
|
|
return gulp.src([
|
|
'app/Resources/assets/semantic/dist/semantic.css',
|
|
])
|
|
.pipe(plugins.sass().on('error', plugins.sass.logError))
|
|
.pipe(plugins.concat('main.css', {newLine: ' '}))
|
|
.pipe(gulp.dest('web/resources/css'));
|
|
});
|
|
|
|
gulp.task('js', function() {
|
|
return gulp.src([
|
|
'node_modules/jquery/dist/jquery.js',
|
|
'app/Resources/assets/semantic/dist/semantic.js',
|
|
'node_modules//three/build/three.js'
|
|
])
|
|
.pipe(plugins.concat('main.js'))
|
|
.pipe(gulp.dest('web/resources/js'));
|
|
});
|
|
|
|
gulp.task('default', ['semantic:build'], function () {
|
|
return gulp.start(['js', 'css']);
|
|
}); |