Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
ajb committed Mar 9, 2016
0 parents commit d21ac57
Show file tree
Hide file tree
Showing 22 changed files with 285 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = spaces
indent_size = 2

[*.md]
trim_trailing_whitespace = true
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_site
node_modules
.sass-cache
.grunt
.env
!.env.example
.asset-cache
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.1.5
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source 'https://rubygems.org'

gem 'autoprefixer-rails', github: 'ajb/autoprefixer-rails', branch: 'bundle-process'
gem 'dvl-core', github: 'dobtco/dvl-core'
gem 'html-proofer', '~>2.3.0'
gem 'jekyll'
gem 'jekyll-assets'
gem 'uglifier'
117 changes: 117 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
GIT
remote: git://github.com/ajb/autoprefixer-rails.git
revision: 2d172c1e88b1c3941c43feb394ebe300e55ecc41
branch: bundle-process
specs:
autoprefixer-rails (6.3.1)
execjs
json

GIT
remote: git://github.com/dobtco/dvl-core.git
revision: d38500b207468a1ef6f422dcffe3a77850125a39
specs:
dvl-core (0.1.0)
activesupport
coffee-script
sass

GEM
remote: https://rubygems.org/
specs:
activesupport (4.2.6)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.3.8)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
colorator (0.1)
colored (1.2)
concurrent-ruby (1.0.1)
ethon (0.8.1)
ffi (>= 1.3.0)
execjs (2.6.0)
fastimage (1.9.0)
addressable (~> 2.3.5)
ffi (1.9.10)
html-proofer (2.3.0)
addressable (~> 2.3)
colored (~> 1.2)
mercenary (~> 0.3.2)
nokogiri (~> 1.5)
parallel (~> 1.3)
typhoeus (~> 0.7)
yell (~> 2.0)
i18n (0.7.0)
jekyll (3.1.2)
colorator (~> 0.1)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 3.0)
mercenary (~> 0.3.3)
rouge (~> 1.7)
safe_yaml (~> 1.0)
jekyll-assets (2.1.2)
fastimage (~> 1.8)
jekyll (~> 3.0)
sprockets (~> 3.3)
sprockets-helpers (~> 1.2)
tilt (~> 2.0)
jekyll-sass-converter (1.4.0)
sass (~> 3.4)
jekyll-watch (1.3.1)
listen (~> 3.0)
json (1.8.3)
kramdown (1.10.0)
liquid (3.0.6)
listen (3.0.6)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9.7)
mercenary (0.3.5)
mini_portile2 (2.0.0)
minitest (5.8.4)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
parallel (1.6.2)
rack (1.6.4)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
rouge (1.10.1)
safe_yaml (1.0.4)
sass (3.4.21)
sprockets (3.5.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-helpers (1.2.1)
sprockets (>= 2.2)
thread_safe (0.3.5)
tilt (2.0.2)
typhoeus (0.8.0)
ethon (>= 0.8.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.7.2)
execjs (>= 0.3.0)
json (>= 1.8.0)
yell (2.0.5)

PLATFORMS
ruby

DEPENDENCIES
autoprefixer-rails!
dvl-core!
html-proofer (~> 2.3.0)
jekyll
jekyll-assets
uglifier

BUNDLED WITH
1.11.2
21 changes: 21 additions & 0 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-gh-pages'
grunt.loadNpmTasks 'grunt-shell'

grunt.initConfig
pkg: '<json:package.json>'

shell:
build_production:
command: 'bundle exec jekyll build --config _config.yml,_config-production.yml'

'gh-pages':
options:
base: '_site'
message: 'Deploy (via Grunt)'
production:
src: ['**']
options:
repo: 'https://github.com/dobtco/screendoor-nps.git'

grunt.registerTask 'deploy:production', ['shell:build_production', 'gh-pages:production']
11 changes: 11 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'html/proofer'

task :test do
sh 'bundle exec jekyll build'
HTML::Proofer.new(
'./_site',
disable_external: true,
checks_to_ignore: %w(ImageCheck),
check_html: true
).run
end
4 changes: 4 additions & 0 deletions _assets/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//= require vendor/assets/javascripts/dvl/core/hacks
//= require vendor/assets/javascripts/dvl/core/styled_controls
//= require vendor/assets/javascripts/dvl/core/styled_select
//= require_tree ./application
2 changes: 2 additions & 0 deletions _assets/javascripts/application/main.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$ ->
# yeaaaaah.
1 change: 1 addition & 0 deletions _assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'vendor/assets/stylesheets/dvl/core';
1 change: 1 addition & 0 deletions _config-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
segment_write_key: xtgMvFI7GkrMupREiaXNH9svh2MOmhlQ
21 changes: 21 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
title: Your feedback for Screendoor

sass:
style: :compressed

exclude:
- Gemfile
- Gemfile.lock
- README.md
- browserslist
- node_modules
- Gruntfile.coffee
- circle.yml
- package.json
- Rakefile

assets:
sources:
- _assets/fonts
- _assets/javascripts
- _assets/stylesheets
6 changes: 6 additions & 0 deletions _plugins/ext.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'jekyll-assets'
require 'sprockets'
require 'dvl/core'

# Add assets to load path
Sprockets.append_path Gem.loaded_specs['dvl-core'].full_gem_path
4 changes: 4 additions & 0 deletions browserslist
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
last 3 versions
Explorer >= 9
Firefox >= 20
Safari >= 5
11 changes: 11 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
test:
override:
- script/cibuild

deployment:
staging:
branch: master
commands:
- git config --global user.email "[email protected]"
- git config --global user.name "CircleCI"
- grunt deploy:production
Binary file added favicon.ico
Binary file not shown.
33 changes: 33 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
---

<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ site.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet application %}
<script src="//use.typekit.net/ckb1dps.js"></script>
<script>try{Typekit.load();}catch(e){}</script>
<!--[if lt IE 9]><script src="//d2yxgjkkbvnhdt.cloudfront.net/dist/shim.js"></script><![endif]-->
</head>

<body>
Hi!

<!--[if lt IE 9]><script src="//d2yxgjkkbvnhdt.cloudfront.net/dist/polyfills.js"></script><![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="/js/vendor/jquery.js"><\/script>')</script>
{% javascript application %}
<script type="text/javascript">
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.0.1";
{% if site.segment_write_key %}
analytics.load("{{ site.segment_write_key }}");
{% endif %}
analytics.page()
}}();
</script>
</body>
</html>
4 changes: 4 additions & 0 deletions js/vendor/jquery.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "screendoor-nps",
"version": "0.0.0",
"main": "",
"homepage": "https://github.com/dobtco/screendoor-nps",
"devDependencies": {
"coffee-script": "^1.9.0",
"grunt": "^0.4.5",
"grunt-gh-pages": "^0.9.1",
"grunt-shell": "^1.1.1"
}
}
4 changes: 4 additions & 0 deletions script/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /bin/sh

bundle install
npm install
3 changes: 3 additions & 0 deletions script/cibuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/sh

bundle exec rake test
3 changes: 3 additions & 0 deletions script/server
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/sh

bundle exec jekyll serve --watch

0 comments on commit d21ac57

Please sign in to comment.