-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from usamamuneerchaudhary/master
Added Gulp Support
- Loading branch information
Showing
13 changed files
with
241 additions
and
17 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
use Timber\Timber; | ||
/** | ||
* Default 404 Page | ||
*/ | ||
|
||
$context = Timber::get_context(); | ||
|
||
Timber::render('views/pages/404.twig',$context); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
var gulp = require('gulp'); | ||
var concat = require('gulp-concat'); | ||
var rename = require('gulp-rename'); | ||
var sass = require('gulp-sass'); | ||
var uglify = require('gulp-uglify'); | ||
var cleancss = require('gulp-clean-css'); | ||
var imgmin = require('gulp-imagemin'); | ||
|
||
/** | ||
* Styles Task | ||
*/ | ||
gulp.task('styles',function(){ | ||
return gulp.src(['resources/sass/style.scss']) | ||
.pipe(sass()) | ||
.pipe(cleancss()) | ||
.pipe(concat('main.css')) | ||
.pipe(rename({suffix : '.min'})) | ||
.pipe(gulp.dest('assets/css/')) | ||
}); | ||
|
||
/** | ||
* Images Task | ||
*/ | ||
gulp.task('images', function () { | ||
return gulp.src(['resources/images/**/*']) | ||
.pipe(imgmin()) | ||
.pipe(gulp.dest('assets/images/')); | ||
}); | ||
|
||
/** | ||
* Scripts Task | ||
*/ | ||
gulp.task('scripts', function(){ | ||
return gulp.src(['resources/js/**/*.js']) | ||
.pipe(concat('all.min.js')) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('assets/js/')) | ||
|
||
}); | ||
|
||
/** | ||
* Watch Task | ||
*/ | ||
gulp.task('watch', function () { | ||
gulp.watch('resources/sass/**/*.scss', ['styles']); | ||
gulp.watch('resources/js/*.js', ['scripts']); | ||
}); | ||
|
||
/** | ||
* Default Task | ||
*/ | ||
gulp.task('default', ['styles','scripts','images','watch']); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
<?php | ||
|
||
require_once __DIR__ . '/vendor/autoload.php'; | ||
|
||
|
||
/** | ||
* Die and Dump method | ||
*/ | ||
if(!function_exists('dd')) { | ||
function dd() | ||
{ | ||
echo "<pre>"; | ||
array_map(function ($data) { | ||
print_r($data); | ||
}, func_get_args()); | ||
echo "</pre>"; | ||
die; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "@THEME_NAME@", | ||
"version": "1.0.0", | ||
"description": "Pine uses NPM", | ||
"author": "@AUTHOR_NAME@", | ||
"devDependencies": { | ||
"gulp": "^3.9.1", | ||
"gulp-clean-css": "^3.2.0", | ||
"gulp-concat": "^2.6.1", | ||
"gulp-imagemin": "^3.2.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-sass": "^3.1.0", | ||
"gulp-uglify": "^2.1.2" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
|
||
<script src="{{ site.theme.link }}/assets/js/all.min.js"></script> | ||
</body> | ||
</html> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{% include 'views/includes/header.twig' %} | ||
{% block content %}{% endblock %} | ||
{% block content %} {% endblock %} | ||
{% include 'views/includes/footer.twig' %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends 'views/layouts/master.twig' %} | ||
|
||
{% block content %} | ||
|
||
<div class="content"> | ||
<div class="title m-b-md"> | ||
404 | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
{% endblock %} |
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