Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #16 from alibo/add-elixir
Browse files Browse the repository at this point in the history
Add elixir and browsersync
  • Loading branch information
themsaid authored Jul 8, 2016
2 parents 4b74cbc + 49b855a commit 7444b60
Show file tree
Hide file tree
Showing 8 changed files with 168 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/vendor
/_cache
/public
/node_modules
.DS_Store
composer.lock
File renamed without changes.
2 changes: 1 addition & 1 deletion content/_includes/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<link href='https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="@url('style.css')">
<link rel="stylesheet" href="@url('assets/css/all.css')">
</head>

<body>
Expand Down
Empty file added content/assets/.gitkeep
Empty file.
133 changes: 133 additions & 0 deletions content/assets/css/all.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions content/assets/css/all.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
var gulp = require('gulp');
var elixir = require('laravel-elixir');
var argv = require('yargs').argv;

elixir.config.assetsPath = 'content/_includes/_assets';
elixir.config.publicPath = 'content/assets';

elixir(function(mix) {
var env = argv.e || argv.env || 'default';

mix.styles(['style.css'])
.exec('php katana build --env=' + env, [
'./content/*',
'./content/**/*',
'./config*.php'
])
.browserSync({
server: {
baseDir: 'public'
},
proxy: null,
files: ['public/**/*']
});
});
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"private": true,
"devDependencies": {
"gulp": "^3.9.1",
"laravel-elixir": "^5.0.0",
"yargs": "^4.7.0"
}
}

0 comments on commit 7444b60

Please sign in to comment.