Skip to content
This repository has been archived by the owner on Feb 11, 2019. It is now read-only.

Commit

Permalink
Remove underscores from directory names, remove imgFixHeight #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Zack Philipps committed Sep 17, 2016
1 parent 2f2ab93 commit 4575b2f
Show file tree
Hide file tree
Showing 144 changed files with 296 additions and 300 deletions.
4 changes: 2 additions & 2 deletions 404.php
@@ -1,4 +1,4 @@
<?php get_template_part('_parts/header'); ?>
<?php get_template_part('parts/header'); ?>

<main>

Expand All @@ -11,4 +11,4 @@

</main>

<?php get_template_part('_parts/footer'); ?>
<?php get_template_part('parts/footer'); ?>
7 changes: 0 additions & 7 deletions _assets/core/README.md

This file was deleted.

48 changes: 0 additions & 48 deletions _assets/core/js/gutenberg.js

This file was deleted.

13 changes: 0 additions & 13 deletions _assets/css/master.css

This file was deleted.

7 changes: 0 additions & 7 deletions _assets/img/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions _assets/js/compiled/main.min.js

This file was deleted.

13 changes: 0 additions & 13 deletions _website/assets/css/master.css

This file was deleted.

4 changes: 0 additions & 4 deletions _website/assets/js/compiled/main.min.js

This file was deleted.

4 changes: 2 additions & 2 deletions archive-{rename}.php
@@ -1,4 +1,4 @@
<?php get_template_part('_parts/header'); ?>
<?php get_template_part('parts/header'); ?>

<main>

Expand Down Expand Up @@ -35,4 +35,4 @@

</main>

<?php get_template_part('_parts/footer'); ?>
<?php get_template_part('parts/footer'); ?>
4 changes: 2 additions & 2 deletions archive.php
@@ -1,4 +1,4 @@
<?php get_template_part('_parts/header'); ?>
<?php get_template_part('parts/header'); ?>

<main>

Expand Down Expand Up @@ -38,4 +38,4 @@

</main>

<?php get_template_part('_parts/footer'); ?>
<?php get_template_part('parts/footer'); ?>
7 changes: 7 additions & 0 deletions assets/core/README.md
@@ -0,0 +1,7 @@
# Scratch Theme for WordPress + ACF

## Core

DO NOT EDIT ANYTHING IN THIS DIRECTORY. Of course, there are exceptions to every rule.

- You may delete `.js` files located in [`assets/core/js/`](https://github.com/zackphilipps/scratch-theme/tree/master/assets/core/js) if you simply don't want 'em.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion _assets/css/README.md → assets/css/README.md
Expand Up @@ -2,4 +2,4 @@

## CSS

Shouldn't need to touch anything here. View the [`scss`](https://github.com/zackphilipps/scratch-theme/tree/master/_assets/scss) directory for more info.
Shouldn't need to touch anything here. View the [`scss`](https://github.com/zackphilipps/scratch-theme/tree/master/assets/scss) directory for more info.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions assets/css/master.css

Large diffs are not rendered by default.

File renamed without changes.
2 changes: 1 addition & 1 deletion _assets/fonts/README.md → assets/fonts/README.md
Expand Up @@ -2,4 +2,4 @@

## Fonts

View [`config/variables.scss`](https://github.com/zackphilipps/scratch-theme/blob/master/_assets/scss/config/_variables.scss) to see where fonts are declared.
View [`config/variables.scss`](https://github.com/zackphilipps/scratch-theme/blob/master/assets/scss/config/_variables.scss) to see where fonts are declared.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion _assets/grunt/README.md → assets/grunt/README.md
Expand Up @@ -2,6 +2,6 @@

## Grunt.js

You should only need to edit [`Gruntfile.js`](https://github.com/zackphilipps/scratch-theme/blob/master/_assets/grunt/Gruntfile.js) here.
You should only need to edit [`Gruntfile.js`](https://github.com/zackphilipps/scratch-theme/blob/master/assets/grunt/Gruntfile.js) here.

Run `npm install` in this directory from your command line to install all of the Node packages. Once that's done, you can run `grunt` from the same directory to begin your automated workflow.
2 changes: 1 addition & 1 deletion _assets/grunt/package.json → assets/grunt/package.json
@@ -1,6 +1,6 @@
{
"name": "scratch-theme-grunt",
"version": "1.6.6",
"version": "1.6.7",
"dependencies": {
"grunt": "0.4.x",
"grunt-cli": "~0.1.13",
Expand Down
2 changes: 1 addition & 1 deletion _assets/gulp/README.md → assets/gulp/README.md
Expand Up @@ -2,6 +2,6 @@

## Gulp.js

You should only need to edit [`gulpfile.js`](https://github.com/zackphilipps/scratch-theme/blob/master/_assets/gulp/gulpfile.js) here.
You should only need to edit [`gulpfile.js`](https://github.com/zackphilipps/scratch-theme/blob/master/assets/gulp/gulpfile.js) here.

Run `npm install` in this directory from your command line to install all of the Node packages. Once that's done, you can run `gulp` from the same directory to begin your automated workflow.
10 changes: 5 additions & 5 deletions _assets/gulp/gulpfile.js → assets/gulp/gulpfile.js
Expand Up @@ -25,16 +25,16 @@ gulp.task('images', function() {
});

gulp.task('javascript', function() {
return gulp.src(['../core/js/*.js', '../js/helper.js', '../js/plugins.js', '../js/acf-google-maps.js', '../js/main.js'])
return gulp.src(['../core/js/*.js', '../js/plugins.js', '../js/acf-google-maps.js', '../js/main.js'])
.pipe($.concat('main.js', {
newLine: ';'
}))
.pipe(gulp.dest('../js/concat/'))
.pipe(gulp.dest('../../_website/assets/js/concat/'))
.pipe(gulp.dest('../../website/assets/js/concat/'))
.pipe($.uglify(false))
.pipe($.rename('main.min.js'))
.pipe(gulp.dest('../js/compiled'))
.pipe(gulp.dest('../../_website/assets/js/compiled'))
.pipe(gulp.dest('../../website/assets/js/compiled'))
.pipe(browserSync.stream());
});

Expand All @@ -49,7 +49,7 @@ gulp.task('styles', function() {
}))
.pipe($.sourcemaps.write())
.pipe(gulp.dest('../css'))
.pipe(gulp.dest('../../_website/assets/css'))
.pipe(gulp.dest('../../website/assets/css'))
.pipe(browserSync.stream());
});

Expand All @@ -62,7 +62,7 @@ gulp.task('watch', function() {

gulp.task('browserSync', function() {
browserSync.init({
proxy: 'test.com', // change this to match your host
proxy: 'scratchdemo.com', // change this to match your host
watchTask: true
});
});
Expand Down
2 changes: 1 addition & 1 deletion _assets/gulp/package.json → assets/gulp/package.json
@@ -1,6 +1,6 @@
{
"name": "scratch-theme-gulp",
"version": "1.6.6",
"version": "1.6.7",
"dependencies": {
"browser-sync": "^2.11.1",
"gulp": "^3.9.0",
Expand Down
7 changes: 7 additions & 0 deletions assets/img/README.md
@@ -0,0 +1,7 @@
# Scratch Theme for WordPress + ACF

## Images

Both of the Scratch logos are referenced in [`header.php`](https://github.com/zackphilipps/scratch-theme/blob/master/parts/header.php) and [`login.scss`](https://github.com/zackphilipps/scratch-theme/blob/master/assets/scss/login.scss).

It's best to either place your images in `assets/img/` or upload them via WordPress. If you choose the latter, and you've installed & activated Scratch's recommended plugins, you are also taking advantage of automated image resizing and optimization. (The optimization happens regardless with Grunt or Gulp. The WordPress plugin just handles resizing.)
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion _assets/js/README.md → assets/js/README.md
Expand Up @@ -2,6 +2,6 @@

## JS

View the `concat` and `uglify` tasks in [`Gruntfile.js`](https://github.com/zackphilipps/scratch-theme/blob/master/_assets/grunt/Gruntfile.js), or the `javascript` task in [`gulpfile.js`](https://github.com/zackphilipps/scratch-theme/blob/master/_assets/gulp/gulpfile.js) and have a look at the structure.
View the `concat` and `uglify` tasks in [`Gruntfile.js`](https://github.com/zackphilipps/scratch-theme/blob/master/assets/grunt/Gruntfile.js), or the `javascript` task in [`gulpfile.js`](https://github.com/zackphilipps/scratch-theme/blob/master/assets/gulp/gulpfile.js) and have a look at the structure.

View [`functions.php`](https://github.com/zackphilipps/scratch-theme/blob/master/functions.php) to see how `main.js` and [Modernizr](http://modernizr.com/) are enqueued.
File renamed without changes.
4 changes: 4 additions & 0 deletions assets/js/compiled/main.min.js

Large diffs are not rendered by default.

0 comments on commit 4575b2f

Please sign in to comment.