Skip to content

Instantly share code, notes, and snippets.

@astrsk-hori
Created October 3, 2014 05:46
Show Gist options
  • Save astrsk-hori/ca0db8be2913f03785f9 to your computer and use it in GitHub Desktop.
Save astrsk-hori/ca0db8be2913f03785f9 to your computer and use it in GitHub Desktop.
laravelにyoでangularJs&coffeescriptを使えるようにする。 ref: http://qiita.com/astrsk_hori/items/de77b992279bdf1c80c3
npm install -g yo bower generator-angular grunt-cli
mkdir client
cd client
yo angular:controller user
yo angular --coffee
grunt build
grunt build
copy: {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>',
src: [
'*.{ico,png,txt}',
'.htaccess',
'*.html',
'*.php',
'views/{,*/}*.html',
'images/{,*/}*.{webp}',
'fonts/*'
]
}, {
Route::group(array('prefix' => 'api'), function() {
Route::resource('users', 'UserController');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment