-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
59 lines (50 loc) · 2.13 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
57
58
59
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Less
| file for our application, as well as publishing vendor resources.
|
*/
var bowerPath = "vendor/bower_components";
var resourcePath = "resources/assets";
var publicPath = "public"
elixir(function(mix) {
// Move vendor packages to appropriate locations
mix
.copy(bowerPath+"/bootstrap-sass-official/assets/stylesheets", resourcePath+"/sass/bootstrap")
.copy(bowerPath+"/bootstrap-sass-official/assets/javascripts/bootstrap.js", publicPath+"/js/vendor/bootstrap.js")
.copy(bowerPath+"/bootstrap-sass-official/assets/fonts/bootstrap", publicPath+"/fonts")
.copy(bowerPath+"/jquery/dist/jquery.js", publicPath+"/js/vendor/jquery.js")
// Stylesheets
.sass('app.scss')
.styles([
publicPath+"/css/app.css"
], publicPath+"/css/application.css", publicPath+"/css")
// ACE scripts
.scripts([
publicPath+"/js/vendor/codemirror/codemirror.js",
publicPath+"/js/vendor/codemirror/mod-xml.js",
publicPath+"/js/vendor/codemirror/mod-css.js",
publicPath+"/js/vendor/codemirror/mod-clike.js",
publicPath+"/js/vendor/codemirror/mod-javascript.js",
publicPath+"/js/vendor/codemirror/mod-htmlmixed.js",
publicPath+"/js/vendor/codemirror/mod-markdown.js",
publicPath+"/js/vendor/codemirror/mod-php.js",
publicPath+"/js/vendor/codemirror/mod-sass.js",
publicPath+"/js/vendor/jquery.js",
publicPath+"/js/vendor/bootstrap.js",
publicPath+"/js/pages/snippets/index.js",
publicPath+"/js/pages/snippets/show.js",
publicPath+"/js/pages/files/form.js",
publicPath+"/js/app.js",
], publicPath+"/js/application.js", publicPath+"/js")
// CACHE assets
//.version([
// "js/application.js",
// "css/application.css"
//]);
});