Permalink
Browse files

SCSS and Jasmine Test build steps added

  • Loading branch information...
1 parent a35fc11 commit 83830c17d638b464a7a8bc61b73ecdf47f7c6f07 @Inspiravetion committed Feb 25, 2014
Showing 997 changed files with 90,870 additions and 8 deletions.
View
@@ -5,24 +5,49 @@ var gulp = require('gulp');
var concat = require('gulp-concat');
var stripDebug = require('gulp-strip-debug');
var uglify = require('gulp-uglify');
+var sass = require('gulp-sass');
+var jasmine = require('gulp-jasmine');
-// JS concat, strip debugging and minify
+///////////////////////////////////////
+// Tasks //
+///////////////////////////////////////
+
gulp.task('scripts', function() {
//can specify order for deps
- gulp.src([/*'./src/scripts/lib.js',*/'./dev/scripts/*.js'])
+ var stream = gulp.src([/*'./src/scripts/lib.js',*/'./dev/scripts/*.js'])
.pipe(concat('script.js'))
.pipe(stripDebug())
.pipe(uglify())
.pipe(gulp.dest('./prod/scripts/'));
+
+ console.log(stream);
+});
+
+gulp.task('styles', function() {
+
+ gulp.src(['./dev/styles/*.scss'])
+ .pipe(sass())
+ .pipe(gulp.dest('./prod/styles/*.scss'));
+
});
+gulp.task('tests', function() {
+
+ gulp.src('./dev/spec/*.js')
+ .pipe(jasmine());
+
+});
+
+///////////////////////////////////////
+// Default Build Script //
+///////////////////////////////////////
-/**
- * Startup task watchers
- */
gulp.task('default', function(){
- //script compilation
- gulp.watch('./dev/scripts/*.js', ['scripts']);
+ //JS Compilation
+ gulp.watch('./dev/scripts/*.js', ['scripts', 'tests']);
+
+ //CSS Compilation
+ gulp.watch('./dev/styles/*.scss', ['styles']);
});

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 83830c1

Please sign in to comment.