Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
* include WordPress core (v4.4.2)
* include commonly used Sass files
* include commonly used Bower packages and @import them in Sass & js
* update readme
  • Loading branch information
Andy Richardson committed Apr 1, 2016
1 parent ad5014d commit 530a46a
Show file tree
Hide file tree
Showing 2,937 changed files with 430,742 additions and 45 deletions.
File renamed without changes.
23 changes: 13 additions & 10 deletions README.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#<Project Name> WordPress
#<project-name> WordPress

<description>

##Project Initialization
1. Move files in `deploy-assets/` to the root of the WordPress install
2. Move plugins in `plugins/` to `wp-content/plugins`
3. Delete empty `deploy-assets/` & `plugins/`
4. Remove this section from this readme
1. `git clone [email protected]:kohactive/sage-but-better.git`
2. Change the root and theme directory names to `<project-name>`
3. Find and replace <project-name> with the project name used in step 2
4. Add a <description> above
5. Add the Migrate DB Pro connection information below
6. Replace <jaws-db-url> in app.json if using heroku
7. Remove this section from this readme

##Environment Setup
1. Create local database: `wp_<project_name>`
Expand All @@ -15,11 +18,11 @@

##Installation
1. `git clone [email protected]:kohactive/<project-name>.git`
2. Navigate your browser to the local site: http://localhost/mk-films
2. Navigate your browser to the local site: http://localhost/<project-name>
3. Follow the WordPress install instructions
4. Activate Migrate DB Pro(license key is in 1password)
5. Pull from staging(connection string below)
6. `cd /path/to/mk-films`
6. `cd /path/to/<project-name>`
7. If you don't have the Gulp cli installed: `sudo npm install gulp-cli -g`
8. `./install.sh`

Expand All @@ -29,16 +32,16 @@ To watch for changes:
`./watch.sh`

##Staging
[<url>.herokuapp.com](http://<url>.herokuapp.com)
[<project-name>.herokuapp.com](http://<project-name>.herokuapp.com)

##Database
[Migrate DB Pro](https://deliciousbrains.com/wp-migrate-db-pro/)
* set up local dev install to **pull** staging db
* **DO NOT PUSH TO STAGING. MAKE DB EDITS ON STAGING & PULL.**

Connection string:
Connection info:
```
<staging wp admin connection string>
<staging wp admin connection info>
```

##Base Theme
Expand Down
2 changes: 1 addition & 1 deletion deploy-assets/app.json → app.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "<projectname>",
"name": "<project-name>",
"scripts": {
"postdeploy": "bash db.sh"
},
Expand Down
Binary file removed assets/.DS_Store
Binary file not shown.
Binary file removed assets/images/.DS_Store
Binary file not shown.
Binary file removed assets/scripts/.DS_Store
Binary file not shown.
Binary file removed assets/styles/.DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion assets/styles/main.sass

This file was deleted.

8 changes: 0 additions & 8 deletions bower.json

This file was deleted.

2 changes: 1 addition & 1 deletion deploy-assets/buildpack-run.sh → buildpack-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PATH=$PATH:$PWD/vendor/node/bin:$PWD/.wpcli:$PWD/.heroku/vendor/mysql/bin
LD_LIBRARY_PATH=$LIBRARY_PATH:$PWD/.heroku/vendor/mysql/lib
LIBRARY_PATH=$LIBRARY_PATH:$PWD/.heroku/vendor/mysql/lib

cd wp-content/themes/hubgroup-mobile
cd wp-content/themes/<project-name>
npm install bower
npm install
./node_modules/.bin/bower install
Expand Down
File renamed without changes.
4 changes: 0 additions & 4 deletions deploy-assets/development.sh

This file was deleted.

4 changes: 0 additions & 4 deletions deploy-assets/watch.sh

This file was deleted.

4 changes: 4 additions & 0 deletions development.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

cd wp-content/themes/<project-name>
gulp
27 changes: 15 additions & 12 deletions index.php
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<?php get_template_part('templates/page', 'header'); ?>
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

<?php if (!have_posts()) : ?>
<div class="alert alert-warning">
<?php _e('Sorry, no results were found.', 'sage'); ?>
</div>
<?php get_search_form(); ?>
<?php endif; ?>
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

<?php while (have_posts()) : the_post(); ?>
<?php get_template_part('templates/content', get_post_type() != 'post' ? get_post_type() : get_post_format()); ?>
<?php endwhile; ?>

<?php the_posts_navigation(); ?>
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
2 changes: 1 addition & 1 deletion deploy-assets/install.sh → install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

cd wp-content/themes/<theme-dir>
cd wp-content/themes/<project-name>
npm install bower
npm install
bower install
Expand Down
Loading

0 comments on commit 530a46a

Please sign in to comment.