Permalink
Browse files

Update to 4.0.0

install via npm, add gulp watch
  • Loading branch information...
Bloggerschmidt committed Jun 8, 2015
1 parent d6800d9 commit 45882f8b39ff39730e447d8947a5960170ff5256
@@ -0,0 +1 @@
jQuery(function(n){});
@@ -0,0 +1 @@
html{overflow-y:scroll}
@@ -0,0 +1,2 @@
/* IE 9 */

@@ -1,39 +1,3 @@
/* FRONTEND CSS
*********************************************/

html {
/* scrollbar fix (prevent ugly left pull for lower content sites) */
overflow-y: scroll;
}

body {

}



/* MEDIA QUERIES
*********************************************/

/* Extra small devices (phones, less than 768px) */
/* No media query -> mobile first strategy */

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {

}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {

}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

}
overflow-y: scroll; }

/* for higher resolutions (android and retina) */
@media screen and (-webkit-min-device-pixel-ratio: 1.5), screen and (max--moz-device-pixel-ratio: 1.5) {

}
@@ -0,0 +1,19 @@
//=======================================================================
// FRONTEND SASS
//=======================================================================

html {
overflow-y: scroll; // scrollbar fix (prevent ugly left pull)
}

body {

}



@media (min-width: 768px) {}

@media (min-width: 992px) {}

@media (min-width: 1200px) {}
@@ -0,0 +1,87 @@
//=======================================================================
// VARIABLES
//=======================================================================

var gulp = require('gulp');
var uglify = require('gulp-uglify');
var minifyCSS = require('gulp-minify-css');
var concat = require('gulp-concat');
var less = require('gulp-less');
var sass = require('gulp-sass');
var autoprefix = require('gulp-autoprefixer');
var convertEncoding = require('gulp-convert-encoding');
var notify = require('gulp-notify');



//=======================================================================
// WATCH
//=======================================================================

gulp.task('watch', function(){

// TEMPLATE
gulp.watch('js/**/*.js',['template-js']);
gulp.watch('css/**/*.less',['template-less']);
gulp.watch('css/**/*.scss',['template-sass']);
gulp.watch('css/**/*.css', ['template-css']);

});



//=======================================================================
// TEMPLATE
//=======================================================================

// JAVASCRIPT

gulp.task('template-js', function () {
return gulp.src([
'js/script.js'
])
.pipe(uglify())
.pipe(concat('app.js'))
.pipe(convertEncoding({to: 'utf8'}))
.pipe(gulp.dest('build'))
.pipe(notify({message:'template -> app.js'}));
});



// LESS

gulp.task('template-less', function () {
gulp.src('css/template.less')
.pipe(less())
.pipe(autoprefix('last 10 versions', 'ie 9', 'ie 8'))
.pipe(gulp.dest('css'))
.pipe(notify({message:'template -> less -> css'}));
});



// SASS

gulp.task('template-sass', function () {
gulp.src('css/template.scss')
.pipe(sass())
.pipe(autoprefix('last 10 versions', 'ie 9', 'ie 8'))
.pipe(gulp.dest('css'))
.pipe(notify({message:'template -> sass -> css'}));
});



// CSS

gulp.task('template-css', function () {
gulp.src([
'css/normalize.css',
'css/template.css'
])
.pipe(minifyCSS())
.pipe(concat('style.css'))
.pipe(gulp.dest('build'))
.pipe(notify({message:'template -> style.css'}));
});
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN -619 Bytes images/calendar.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN -178 Bytes images/j_button2_left.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN -198 Bytes images/selector-arrow.png
Binary file not shown.
@@ -0,0 +1,28 @@
<?php defined( '_JEXEC' ) or die; ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<style type="text/stylesheet">
@-webkit-viewport { width: device-width; }
@-moz-viewport { width: device-width; }
@-ms-viewport { width: device-width; }
@-o-viewport { width: device-width; }
@viewport { width: device-width; }
</style>
<script type="text/javascript">
//<![CDATA[
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style");
msViewportStyle.appendChild(
document.createTextNode("@-ms-viewport{width:auto!important}")
);
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
}
//]]>
</script>
<meta name="HandheldFriendly" content="true">
<meta name="apple-mobile-web-app-capable" content="YES">
<link rel="apple-touch-icon" href="<?php echo $tpath; ?>/images/apple-touch-icon.png">
<!--[if lte IE 9]>
<link rel="stylesheet" href="<?php echo $tpath; ?>/css/ie.css">
<script type="text/javascript" src="<?php echo $tpath; ?>/js/ie/html5shiv.js"></script>
<script type="text/javascript" src="<?php echo $tpath; ?>/js/ie/respond.js"></script>
<![endif]-->
@@ -12,8 +12,8 @@
// generator tag
$this->setGenerator(null);
// template js
$doc->addScript($tpath.'/js/logic.js');
// template css
$doc->addStyleSheet($tpath.'/css/template.css');
$doc->addStyleSheet($tpath.'/build/style.css');
// template js
$doc->addScript($tpath.'/build/app.js');
@@ -1,22 +1,23 @@
<?php defined( '_JEXEC' ) or die;
include_once JPATH_THEMES.'/'.$this->template.'/logic.php';
include_once JPATH_THEMES.'/'.$this->template.'/inc/logic.php';
?><!doctype html>

<html lang="<?php echo $this->language; ?>">

<head>
<jdoc:include type="head" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<link rel="apple-touch-icon-precomposed" href="<?php echo $tpath; ?>/images/apple-touch-icon-57x57-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo $tpath; ?>/images/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo $tpath; ?>/images/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo $tpath; ?>/images/apple-touch-icon-144x144-precomposed.png">
<jdoc:include type="head" /><?php include_once JPATH_THEMES.'/'.$this->template.'/inc/head.php'; ?>
</head>

<body class="<?php echo (($menu->getActive() == $menu->getDefault()) ? ('front') : ('site')).' '.$active->alias.' '.$pageclass; ?>">

<body id="origin" class="<?php
echo (($menu->getActive() == $menu->getDefault()) ? ('front') : ('site'))
. ' ' .$active->alias . ' ' . $pageclass;
echo $option
. ' view-' . $view
. ($layout ? ' layout-' . $layout : ' no-layout')
. ($task ? ' task-' . $task : ' no-task')
. ($itemid ? ' itemid-' . $itemid : '');
?>" role="document">

<!--
YOUR CODE HERE
-->

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,5 @@
jQuery(function($) {

// YOUR SCRIPT HERE

});
@@ -0,0 +1,19 @@
{
"name": "frontend",
"description": "frontend template for Joomla!",
"version": "1.0.0",
"homepage": "http://example.org",
"author": "Your Name",
"private": true,
"devDependencies": {
"gulp": "^3.8.11",
"gulp-autoprefixer": "^2.1.0",
"gulp-concat": "^2.2.0",
"gulp-convert-encoding": "0.0.3",
"gulp-less": "^3.0.1",
"gulp-minify-css": "^1.0.0",
"gulp-notify": "^2.2.0",
"gulp-sass": "^1.3.3",
"gulp-uglify": "^0.2.1"
}
}

0 comments on commit 45882f8

Please sign in to comment.