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

Commit 7444b60

Browse files
authored
Merge pull request #16 from alibo/add-elixir
Add elixir and browsersync
2 parents 4b74cbc + 49b855a commit 7444b60

File tree

8 files changed

+168
-1
lines changed

8 files changed

+168
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/vendor
22
/_cache
33
/public
4+
/node_modules
45
.DS_Store
56
composer.lock
File renamed without changes.

content/_includes/base.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

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

1515
<body>

content/assets/.gitkeep

Whitespace-only changes.

content/assets/css/all.css

Lines changed: 133 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/assets/css/all.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
var gulp = require('gulp');
2+
var elixir = require('laravel-elixir');
3+
var argv = require('yargs').argv;
4+
5+
elixir.config.assetsPath = 'content/_includes/_assets';
6+
elixir.config.publicPath = 'content/assets';
7+
8+
elixir(function(mix) {
9+
var env = argv.e || argv.env || 'default';
10+
11+
mix.styles(['style.css'])
12+
.exec('php katana build --env=' + env, [
13+
'./content/*',
14+
'./content/**/*',
15+
'./config*.php'
16+
])
17+
.browserSync({
18+
server: {
19+
baseDir: 'public'
20+
},
21+
proxy: null,
22+
files: ['public/**/*']
23+
});
24+
});

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"private": true,
3+
"devDependencies": {
4+
"gulp": "^3.9.1",
5+
"laravel-elixir": "^5.0.0",
6+
"yargs": "^4.7.0"
7+
}
8+
}

0 commit comments

Comments
 (0)