Skip to content

Instantly share code, notes, and snippets.

@localdisk
Last active November 20, 2015 12:27
Show Gist options
  • Save localdisk/aebcfe0ded27b1e986ee to your computer and use it in GitHub Desktop.
Save localdisk/aebcfe0ded27b1e986ee to your computer and use it in GitHub Desktop.
フロントエンド片手間ンによる Laravel Elixir 入門 ref: http://qiita.com/localdisk/items/72bcbe71734253d1416f
{
"name": "Laravel Application",
"dependencies": {
"bootstrap-sass-official": "~3.3.1",
"font-awesome": "~4.2.0"
}
}
{
"directory": "vendor/bower_components",
"scripts": {
"postinstall": "gulp publish"
}
}
$ gulp --production
$ cd NetBeansProjects/laravel5
$ npm install
elixir(function(mix) {
mix.phpSpec();
});
var elixir = require("laravel-elixir");
var gulp = require("gulp");
var shell = require("gulp-shell");
elixir.extend("message", function(message) {
gulp.task("say", function() {
gulp.src("").pipe(shell("say " + message));
});
return this.queueTask("say");
});
<?= elixir('css/all.css') ?>
// -> /build/css/all-feda974a.css
<?= elixir('js/all.js') ?>
// -> /build/js/all-d1b9950f.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment