-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add deps manually to gulpfile rather than using elixir-gulp, since it didn't catch LESS/SASS, and seemed to produce race conditions. - Drop bower in favour of npm, so we can just execute one command rather than two. - Use the version feature of elixir two avoid cache issues.
- Loading branch information
1 parent
d8b0458
commit 4e5b149
Showing
28 changed files
with
37,669 additions
and
158 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,97 @@ | ||
var elixir = require('laravel-elixir'); | ||
var runSequence = require('run-sequence'); | ||
|
||
require('laravel-elixir-bower'); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Compile Sass | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
elixir(function(mix) { | ||
mix.sass('app.scss'); | ||
}); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Concat Bower files | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This will scan your bower files and concat all css files in a | ||
| styles/vendor.css file, and all js files in a scripts/vendor.js file. | ||
| | ||
*/ | ||
mix | ||
.sass('app.scss') | ||
.styles([ | ||
|
||
// Bootstrap | ||
'bootstrap/dist/css/bootstrap.css', | ||
|
||
// Slider component | ||
'bootstrap-slider/dist/css/bootstrap-slider.css', | ||
|
||
// Selectize | ||
'selectize/dist/css/selectize.css', | ||
|
||
// Icon fonts | ||
'font-awesome/css/font-awesome.css', | ||
'material-design-iconic-font/dist/css/material-design-iconic-font.css', | ||
|
||
// Froala WYSIWYG editor | ||
'froala-editor/css/froala_editor.min.css', | ||
'froala-editor/css/froala_style.min.css', | ||
'froala-editor/css/plugins/char_counter.min.css', | ||
'froala-editor/css/plugins/code_view.min.css', | ||
'froala-editor/css/plugins/colors.min.css', | ||
'froala-editor/css/plugins/emoticons.min.css', | ||
'froala-editor/css/plugins/file.min.css', | ||
'froala-editor/css/plugins/fullscreen.min.css', | ||
'froala-editor/css/plugins/image_manager.min.css', | ||
'froala-editor/css/plugins/image.min.css', | ||
'froala-editor/css/plugins/line_breaker.min.css', | ||
'froala-editor/css/plugins/table.min.css', | ||
'froala-editor/css/plugins/video.min.css', | ||
|
||
], 'public/css/vendor.css', './node_modules/') | ||
.scripts([ | ||
|
||
// jQuery | ||
'jquery/dist/jquery.js', | ||
|
||
// Bootstrap (Uncomment if we start using any of the JS components) | ||
// 'bootstrap/dist/js/bootstrap.js', | ||
|
||
// Slider component | ||
'bootstrap-slider/js/bootstrap-slider.js', | ||
|
||
// Selectize | ||
'microplugin/src/microplugin.js', | ||
'sifter/sifter.js', | ||
'selectize/dist/js/selectize.js', | ||
|
||
], 'public/js/vendor.js', './node_modules/') | ||
.scripts([ | ||
|
||
// Froala WYSIWYG editor | ||
'froala-editor/js/froala_editor.min.js', | ||
'froala-editor/js/plugins/align.min.js', | ||
'froala-editor/js/plugins/char_counter.min.js', | ||
'froala-editor/js/plugins/code_beautifier.min.js', | ||
'froala-editor/js/plugins/code_view.min.js', | ||
'froala-editor/js/plugins/colors.min.js', | ||
'froala-editor/js/plugins/emoticons.min.js', | ||
'froala-editor/js/plugins/entities.min.js', | ||
'froala-editor/js/plugins/file.min.js', | ||
'froala-editor/js/plugins/font_family.min.js', | ||
'froala-editor/js/plugins/font_size.min.js', | ||
'froala-editor/js/plugins/fullscreen.min.js', | ||
'froala-editor/js/plugins/image.min.js', | ||
'froala-editor/js/plugins/image_manager.min.js', | ||
'froala-editor/js/plugins/inline_style.min.js', | ||
'froala-editor/js/plugins/line_breaker.min.js', | ||
'froala-editor/js/plugins/link.min.js', | ||
'froala-editor/js/plugins/lists.min.js', | ||
'froala-editor/js/plugins/paragraph_format.min.js', | ||
'froala-editor/js/plugins/paragraph_style.min.js', | ||
'froala-editor/js/plugins/quote.min.js', | ||
'froala-editor/js/plugins/save.min.js', | ||
'froala-editor/js/plugins/table.min.js', | ||
'froala-editor/js/plugins/url.min.js', | ||
'froala-editor/js/plugins/video.min.js', | ||
|
||
], 'public/js/editing.js', './node_modules/') | ||
.version([ | ||
'public/css/app.css', | ||
'public/css/vendor.css', | ||
'public/js/vendor.js', | ||
'public/js/editing.js', | ||
]) | ||
.copy('bower_components/font-awesome/fonts', 'public/build/fonts') | ||
.copy('bower_components/material-design-iconic-font/dist/fonts', 'public/build/fonts'); | ||
|
||
elixir(function(mix) { | ||
mix.bower(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.