forked from scottsteinbeck/cbvue
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGulpfile.js
More file actions
56 lines (51 loc) · 1.77 KB
/
Gulpfile.js
File metadata and controls
56 lines (51 loc) · 1.77 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
var elixir = require( 'coldbox-elixir' );
var del = require( 'del' );
var gulp = require( 'gulp' );
var shell = require( 'gulp-shell' );
/*********************************************************************************/
/* Gulp TASKS */
/*********************************************************************************/
gulp.task( 'cleanup', function(){
del.sync( [
'includes/css',
'includes/js',
'includes/fonts'
] );
});
gulp.task( 'tests', shell.task( 'box testbox run reporter="mintext"' ) );
gulp.watch( [ 'handlers/**', 'tests/**/*.cfc', 'models/**/*.cfc' ], [ 'tests' ] );
/*********************************************************************************/
/* Elixir TASKS */
/*********************************************************************************/
elixir( function( mix ){
mix.task( "cleanup" )
// Font Awesome
.copy( "bower_components/font-awesome-sass/assets/fonts", "includes/fonts" )
.copy( "bower_components/bootstrap-sass/assets/fonts", "includes/fonts" )
// Vendor Scripts
.scripts(
[
"jquery/dist/jquery.min.js",
"bootstrap-sass/assets/javascripts/bootstrap.min.js",
"vue/dist/vue.min.js",
"vue-resource/dist/vue-resource.min.js"
], // concatenated + minified files
"includes/js/vendor.min.js", // ouput file
"bower_components" // base dir
)
// Dev Vendor Scripts : Great for local development
.scripts(
[
"jquery/dist/jquery.min.js",
"bootstrap-sass/assets/javascripts/bootstrap.min.js",
"vue/dist/vue.js",
"vue-resource/dist/vue-resource.js"
], // concatenated + minified files
"includes/js/vendor-dev.js", // ouput file
"bower_components" // base dir
)
// Mix App styles
.sass( "App.scss" )
// Mix JS
.scripts( "App.js" );
} );