-
Notifications
You must be signed in to change notification settings - Fork 0
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 #26 from joshukraine/gulp-update
Gulp update
- Loading branch information
Showing
58 changed files
with
686 additions
and
1,202 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"commonjs": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
2 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
] | ||
} | ||
} |
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,25 +1,20 @@ | ||
language: node_js | ||
node_js: | ||
- "5" | ||
|
||
env: | ||
global: | ||
- secure: VZw0GE1/Sn3QW7fgNuvqqs31Mg8sbFeGpO/kxPc2vhe55Bopzc5ZriqSbWhNz26BZtvvZZuDC9Ap2BQmnJm9pq9lcLsLrKKr2d+Iv/5zekJbmuG5eYbr5wQsiJjT5R+wxRw31lfq+xikur59W8XXK115O3jGlMeENSStU91fpV2kJcUGJxUuZv/nAX5RZn48FSF9lhMAJeK7KVoBDS2BRvHOmk6JPM/joEb6LibCmzk4lCzmS0VPerJXr9k94DGKhnAjLROdi3C9E6I5t8Av+Sj9SXkhCJzSLQbsVa6e3fmkCaCM9uf+ELD2swPargQgNf97NHb5P3TYh30TL+Zms0X01b41CL+/jK0rLuoGz6xBjC0EOc1XkwzW9KgWhIaeer3kyDFLMB4dkrL8AoTCMkHN7ti7RPJi/xAYmT3ot5bdCbt8Rns8q+kLKRMu/ViJfPIVqjClly4yyefshSRrwzv8VprolVTwzMKvg8v25JAs80FODFb42206qF2MOa4/Gm0Edoxb5rcdJQFrQoCR0qbxk4V2rbRjIJqw3le4+/VwRHsbpB1FUKccU6WlBJrfllguaQLuGgEpT8gM0y1YhXAm5aFJ8JUBYyQ1H0UOafqiu2a+L61H3juimyU1207ivjklL/g+y2/2DjUa5ZldwHqD1S9dpI8jU0TkBLEq7IY= | ||
- secure: yNqcBnXm1XDvwVR9W41y27vk1PjHEPjYmsQiTQMxk5zR9TKRA1fy66mC4ot3+OWGdfIcXmo9Ij/oYLwLevjY+PIr08isNGhre2OPYXDw8GP/YgrxeoIJnu9Grvhwa3e8KhsHyzaSsP73atX/cf/1bp00lON1DTho+BWv/94MZlK7TNJnTIpGQHcxWpyaKLgtG9q6/5uY+TJlZESOdgaH4xUR8FT+Qk+29/09SQQCBF6rbsQJuKpx7ZvzW9vIdtWT85pX1h1QJuXHWiVIMa1e+ualc0pxp9tpUXXl0KxyrvK7vWseXKjZzysQmXQVMMSxce25SY12bJeKTPk/6iPqtNzX9zRCaVb7i8TNb/veczESSXAuYKATRNxKlIw5OaAZB5r1Z4bASLfa7BfZHd1s/FRF6oi6fTpHJwwv4ujAp2U5vAUNur6q++qc+nHzjpsqKwJ0hZnyZBPkRnFZeO1wM4uyTtigpG0ovXUsVNWg1naRqblOlr1vFqX3X5vHAiLY/MSspW/XAz3RnSpp7XOa3RTKKjWNm0WBj6sgV4kwKQvR2SF3n5/MtjLFpBtC8Ia6olHVBuEs0PsLDgmw7yGQhjMzCc2IFJIv/mXGILebJgHVj0N8HgVb1Idlhjwy3xBgfiVCDiHZdFWUzXFTK2jjngXEnwE2fqF1fAmT/vB/t6k= | ||
- "5" | ||
|
||
before_install: | ||
- rvm install 2.3.1 | ||
- rvm install 2.3.1 | ||
|
||
install: | ||
- bundle install | ||
- npm install -g lodash marked varstream svgicons2svgfont node-gyp ttf2woff2 | ||
- npm install -g gulp | ||
- npm install | ||
- bundle install | ||
- npm install -g lodash marked varstream svgicons2svgfont node-gyp ttf2woff2 | ||
- npm install -g gulp-cli | ||
- npm install | ||
|
||
before_script: bin/rspec | ||
|
||
script: bin/deploy | ||
script: bundle exec middleman build --clean | ||
|
||
branches: | ||
only: | ||
- master | ||
- master |
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 |
---|---|---|
@@ -1,31 +1,89 @@ | ||
# euroteamoutreach.org | ||
euroteamoutreach.org | ||
==================== | ||
|
||
[![Build Status](https://travis-ci.org/joshukraine/euroteamoutreach.org.svg?branch=master)](https://travis-ci.org/joshukraine/euroteamoutreach.org) | ||
|
||
[euroteamoutreach.org](http://euroteamoutreach.org/) is the web site for Euro Team Outreach, Inc., a Christian organization dedicated to the advancement of the Gospel of Jesus Christ. | ||
[euroteamoutreach.org](http://euroteamoutreach.org/) is the official web site for Euro Team Outreach, Inc., a Christian organization dedicated to the advancement of the Gospel of Jesus Christ. | ||
|
||
This site was built using [Middleman 4](https://middlemanapp.com/). | ||
|
||
![euroteamoutreach.org screenshot](https://s3.amazonaws.com/images.euroteamoutreach.org/eto-screenshot.jpg) | ||
|
||
### Setup | ||
Requirements | ||
------------ | ||
|
||
* [Ruby 2.x](https://github.com/rbenv/rbenv#readme) | ||
* [Node 5.x](https://github.com/creationix/nvm#readme) | ||
* [Gulp CLI](https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md#getting-started) | ||
|
||
|
||
Setup | ||
----- | ||
|
||
To get started, clone the repo, cd into it, and run the setup script. | ||
|
||
```sh | ||
$ bin/setup | ||
``` | ||
|
||
### Development | ||
Development | ||
----------- | ||
|
||
This project uses [Gulp](http://gulpjs.com/) with Middleman's new [`external_pipeline`](https://middlemanapp.com/advanced/external-pipeline/) feature introduced in v4. When running the local development server, append `-e gulp` to [set the environment](https://middlemanapp.com/basics/upgrade-v4/#environments-and-changes-to-configure-blocks) to `gulp` and invoke the external pipeline. | ||
This project uses [Gulp](http://gulpjs.com/) with Middleman's new [`external_pipeline`](https://middlemanapp.com/advanced/external-pipeline/) feature introduced in v4. | ||
|
||
# With Gulp | ||
$ bundle exec middleman server -e gulp | ||
|
||
# Without Gulp | ||
# Run the development server with Gulp | ||
$ bundle exec middleman server | ||
|
||
# Build the site (also invokes Gulp) | ||
$ bundle exec middleman build | ||
|
||
Environments | ||
------------ | ||
|
||
Middleman has two default environments: `development` and `production`. This app is configured to run the external pipeline (Gulp in our case) in both. There are times, however, when the external pipeline should not run. Two good examples are tests and the console. We therefore define two additional environments: `test` and `console`. | ||
|
||
Custom environments can be invoked on the command line with `-e` flag like so: | ||
|
||
# Start the console in the console enviroment | ||
$ bundle exec middleman console -e console | ||
|
||
Code for custom environments is stored in `environments/<your-custom-env>.rb`. Note that custom environments can be invoked without the existence of a corresponding file in the `environments/` directory. If, for example, you merely wanted to start a server without the default `development` configs, you could run `middleman server -e <anything-here>`. | ||
|
||
For completeness, all four environments used in this app have corresponding files: | ||
|
||
```sh | ||
environments/ | ||
├── console.rb | ||
├── development.rb | ||
├── production.rb | ||
└── test.rb | ||
``` | ||
|
||
Tests | ||
----- | ||
|
||
Testing is done with Rspec. Run the tests like so: | ||
|
||
$ bin/rspec spec/ | ||
|
||
Aliases | ||
------- | ||
|
||
### Deployment | ||
Consider adding the following to your `.bashrc` or `.zshrc` file: | ||
|
||
```sh | ||
mm='bundle exec middleman' | ||
mmb='bundle exec middleman build --clean' | ||
mmc='bundle exec middleman console -e console' | ||
mms='bundle exec middleman server' | ||
``` | ||
|
||
Deployment | ||
---------- | ||
|
||
euroteamoutreach.org is currently deployed on Amazon S3. [Detailed instructions](http://docs.aws.amazon.com/gettingstarted/latest/swh/website-hosting-intro.html) are available from Amazon. | ||
|
||
Legal | ||
----- | ||
|
||
Site content is copyrighted (c) 2016 by Euro Team Outreach, Inc. Software is under the [MIT license](https://github.com/joshukraine/euroteamoutreach.org/blob/master/LICENSE). |
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 @@ | ||
activate :pry |
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,7 @@ | ||
# https://middlemanapp.com/basics/upgrade-v4/#environments-and-changes-to-configure-blocks | ||
|
||
activate :external_pipeline, | ||
name: :gulp, | ||
command: "npm run development", | ||
source: ".tmp", | ||
latency: 1 |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
# This file is for reference only. Actual settings for the production | ||
# environment are stored in the build configuation block in config.rb. | ||
# | ||
# https://middlemanapp.com/basics/upgrade-v4/#environments-and-changes-to-configure-blocks |
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,4 @@ | ||
# This file is for reference only. The test environment is set in | ||
# spec/spec_helper.rb | ||
# | ||
# https://middlemanapp.com/basics/upgrade-v4/#environments-and-changes-to-configure-blocks |
Oops, something went wrong.