-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.js
More file actions
39 lines (33 loc) · 1.07 KB
/
index.js
File metadata and controls
39 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
const Elixir = require ('laravel-elixir');
const gulp = require ('gulp');
const Jasmine = require ('gulp-jasmine');
/*
|----------------------------------------------------------------
| Jasmine Testing
|----------------------------------------------------------------
|
| This task will trigger your entire Jasmine test suite.
| It's works great with the bdd task.
| If you have any issues please report on
| https://github.com/melanholly/elixir-jasmine/issues
*/
const Task = Elixir.Task;
Elixir.extend ('jasmine', function (options, path) {
const paths = path||prepGulpPaths();
new Task ('jasmine', function () {
gulp.src ('spec/test.js')
.pipe (Jasmine (options))
})
.watch (paths.src.baseDir + '/**/*.+js','default')
.ignore (paths.output.path);
});
/**
* Prep the Gulp src and output paths.
*
* @return {GulpPaths}
*/
const prepGulpPaths = function () {
return new Elixir.GulpPaths ()
.src (Elixir.config.get ('assets.js.folder'))
.output (Elixir.config.get ('public.js.outputFolder'), 'bundle.js');
};