-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
56 lines (44 loc) · 1.71 KB
/
gulpfile.js
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('laravel-elixir');
/*
|--------------------------------------------------------------------------
| FRONT-END DIRECTIONS:
|--------------------------------------------------------------------------
|
| 1. Run 'npm install' to install Gulp && Elixir
| 2. Create '.bowerrc' in root directory, see (https://gist.github.com/alexhernandez/c3b0d97538f5869d7f86)
| 3. Create 'elixir.json' in root directory, see (https://gist.github.com/alexhernandez/963c188f23e14e33929e)
| 4. Run 'bower init' followed by "bower install {package-name} --save"
| 5. Run any of the following: 'gulp', 'gulp watch', 'gulp --production'
|
*/
var bowerPath = './vendor/bower_components';
// Get Bower Package Paths
var paths = {
'jquery': bowerPath + '/jquery/dist/',
'bootstrap': bowerPath + '/bootstrap-sass/assets/',
'fontawesome': bowerPath + '/font-awesome/'
}
// Begin Elixir Project
elixir(function(mix) {
// Add Styles to project
mix.copy(paths.bootstrap + 'stylesheets', 'resources/assets/bootstrap-sass')
.copy(paths.fontawesome + 'css/font-awesome.css', 'resources/css/font-awesome.css');
// Add Fonts to project
mix.copy(paths.fontawesome + 'fonts', 'public/fonts');
// Add Scripts to project
mix.copy(paths.jquery + 'jquery.js', 'resources/js/jquery.js')
.copy(paths.bootstrap + 'javascripts/bootstrap.js', 'resources/js/bootstrap.js');
// Merge Styles
mix.styles([
'font-awesome.css'
],'public/css/components.css', 'resources/css');
// Merge Scripts
mix.scripts([
'jquery.js',
'bootstrap.js'
],'public/js/app.js', 'resources/js');
// Compile SASS
mix.sass('app.scss');
// Run Tests
mix.phpUnit();
});