This repository has been archived by the owner on Jan 18, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched to Elixir for asset management
Closes #167. Signed-off-by: Graham Campbell <graham@alt-three.com>
- Loading branch information
1 parent
04a0b43
commit ef615a3
Showing
15 changed files
with
55 additions
and
125 deletions.
There are no files selected for viewing
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,3 +1,4 @@ | ||
.env | ||
phpunit.xml | ||
vendor | ||
node_modules |
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//disable gulp notifications to avoid issues with gulp-notify on Homestead VMs | ||
process.env.DISABLE_NOTIFIER = true | ||
|
||
var elixir = require('laravel-elixir'); | ||
// | ||
stylesPath = 'public/assets/styles/'; | ||
scriptsPath = 'public/assets/scripts/'; | ||
|
||
elixir.config.css.outputFolder = stylesPath; | ||
elixir.config.js.outputFolder = scriptsPath; | ||
//disable source maps | ||
elixir.config.sourcemaps = false; | ||
/* | ||
* This is the Elixir gulpfile. It is used by Bootstrap CMS for asset management. | ||
*/ | ||
elixir(function (mix) { | ||
//Bootstrap themes | ||
mix.copy('resources/assets/css/bootstrap.*.min.css', stylesPath); | ||
mix.styles(['bootstrap.min.css'], stylesPath + 'bootstrap.default.min.css'); | ||
mix.styles(['bootstrap.min.css', 'bootstrap-theme.min.css'], stylesPath + 'bootstrap.legacy.min.css'); | ||
|
||
//BoostrapCMS styles (custom style sheets used site-wide may be added to the array below). | ||
mix.styles(['cms-main.css'], stylesPath + 'cms-main.css'); | ||
|
||
//BootstrapCMS scripts | ||
mix.scripts(['cms-timeago.js', 'cms-restfulizer.js', 'cms-carousel.js', 'cms-alerts.js'], scriptsPath + 'cms-main.js'); | ||
mix.scripts(['cms-picker.js'], scriptsPath + 'cms-picker.js'); | ||
mix.scripts(['cms-comment-core.js', 'cms-comment-edit.js', 'cms-comment-delete.js', 'cms-comment-create.js', 'cms-comment-fetch.js', 'cms-comment-main.js'], scriptsPath + 'cms-comment.js'); | ||
|
||
//maximebf/DebugBar assets | ||
mix.copy('vendor/maximebf/debugbar/src/DebugBar/Resources/vendor/highlightjs/styles/github.css', stylesPath + 'debugbar.css') | ||
mix.copy('vendor/maximebf/debugbar/src/DebugBar/Resources/vendor/highlightjs/highlight.pack.js', scriptsPath + 'debugbar.js') | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"private": true, | ||
"devDependencies": { | ||
"gulp": "^3.8.8" | ||
}, | ||
"dependencies": { | ||
"laravel-elixir": "^3.0.0", | ||
"bootstrap-sass": "^3.0.0" | ||
} | ||
} |
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
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
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
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
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