Last active
November 20, 2015 12:27
-
-
Save localdisk/aebcfe0ded27b1e986ee to your computer and use it in GitHub Desktop.
フロントエンド片手間ンによる Laravel Elixir 入門 ref: http://qiita.com/localdisk/items/72bcbe71734253d1416f
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
{ | |
"name": "Laravel Application", | |
"dependencies": { | |
"bootstrap-sass-official": "~3.3.1", | |
"font-awesome": "~4.2.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
{ | |
"directory": "vendor/bower_components", | |
"scripts": { | |
"postinstall": "gulp publish" | |
} | |
} | |
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
$ gulp --production |
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
$ cd NetBeansProjects/laravel5 | |
$ npm install |
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
elixir(function(mix) { | |
mix.phpSpec(); | |
}); |
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
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"); | |
}); |
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
<?= 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