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

Commit

Permalink
Merge pull request #535 from olefredrik/feature/browserSync
Browse files Browse the repository at this point in the history
Feature/browser sync
  • Loading branch information
olefredrik committed Nov 1, 2015
2 parents d5f00fd + e76fee4 commit c0cc9da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ All contributions are welcome!

## Requirements

This project requires [NodeJS](http://nodejs.org) to be installed on your machine. Works with 0.10, 0.12, and 4.1! **Note that parts of our build process will break with NPM 3, due to the changes in how packages are installed.**
This project requires [NodeJS](http://nodejs.org) to be installed on your machine.

FoundationPress uses [Sass](http://Sass-lang.com/) (CSS with superpowers). In short, Sass is a CSS pre-processor that allows you to write styles more effectively and tidy.

Expand All @@ -26,7 +26,7 @@ $ cd FoundationPress
$ npm install
```

(Many project force their users to install [Bower](http://bower.io) and [Grunt](http://gruntjs.com/) globally. We don't like that and decided to use them via `npm scripts` which means, that Grunt and Bower are installed in your `node_modules` folder and we'll call them there. Bower install and grunt build will be called via npm scripts when you run npm install.)
(Many projects force their users to install [Bower](http://bower.io) and [Grunt](http://gruntjs.com/) globally. We don't like that and decided to use them via `npm scripts` which means, that Grunt and Bower are installed in your `node_modules` folder and we'll call them there. Bower install and grunt build will be called via npm scripts when you run npm install.)


### 2. While you're working on your project, run:
Expand All @@ -35,6 +35,11 @@ $ npm install
$ npm run watch
```

If you want to take advantage of browser-sync (automatic browser refresh when a file is saved), simply enter the URL of your local WP-server in Gruntfile.js line 184, save and run
```bash
$ npm run browsersync
```

### 3. For building all the assets, run:

```bash
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "foundationpress",
"title": "FoundationPress",
"version": "1.5.1",
"version": "1.6.0",
"description": "FoundationPress is a WordPress starter theme based on Foundation 5 by Zurb",
"keywords": [
"FoundationPress",
Expand Down Expand Up @@ -41,6 +41,7 @@
"grunt": "grunt",
"postinstall": "bower install && grunt build",
"watch": "grunt watch",
"browsersync": "grunt browser-sync",
"package": "grunt package"
}
}
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme Name: FoundationPress
Theme URI: http://foundationpress.olefredrik.com
Github Theme URI: https://github.com/olefredrik/FoundationPress
Description: FoundationPress is a WordPress starter theme based on Foundation 5 by Zurb
Version: 1.5.1
Version: 1.6.0
Author: Ole Fredrik Lie
Author URI: http://olefredrik.com/
Expand Down

0 comments on commit c0cc9da

Please sign in to comment.