Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Initial source commit
  • Loading branch information
pzi committed Mar 14, 2015
1 parent 0311dd6 commit 7b8131d
Show file tree
Hide file tree
Showing 26 changed files with 784 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
@@ -0,0 +1,3 @@
{
"directory": "vendor/assets/bower"
}
20 changes: 20 additions & 0 deletions .editorconfig
@@ -0,0 +1,20 @@
# For more information about the properties used in
# this file, please see the EditorConfig documentation:
# http://editorconfig.org/

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[bower.json]
indent_size = 2
indent_style = space
21 changes: 21 additions & 0 deletions .gitattributes
@@ -0,0 +1,21 @@
# Automatically normalize line endings for all text-based files
# http://git-scm.com/docs/gitattributes#_end_of_line_conversion
* text=auto

# For the following file types, normalize line endings to LF on
# checkin and prevent conversion to CRLF when they are checked out
# (this is required in order to prevent newline related issues like,
# for example, after the build script is run)
.* text eol=lf
*.css text eol=lf
*.html text eol=lf
*.js text eol=lf
*.json text eol=lf
*.md text eol=lf
*.sh text eol=lf
*.txt text eol=lf
*.xml text eol=lf

# Exclude the `.htaccess` file from GitHub's language statistics
# https://github.com/github/linguist#using-gitattributes
source/.htaccess linguist-vendored
14 changes: 14 additions & 0 deletions .gitignore
@@ -0,0 +1,14 @@
# Ignore bundler config
/.bundle

# Ignore the build directory
/build

# Ignore Sass' cache
/.sass-cache

# Ignore vendor
/vendor/assets/bower

# Ignore .DS_store file
.DS_Store
1 change: 1 addition & 0 deletions .ruby-gemset
@@ -0,0 +1 @@
middleman-basis
1 change: 1 addition & 0 deletions .ruby-version
@@ -0,0 +1 @@
2.1.2
13 changes: 13 additions & 0 deletions Gemfile
@@ -0,0 +1,13 @@
source 'https://rubygems.org'

gem "middleman-sprockets"
gem "middleman"
gem "middleman-bower"
gem "middleman-livereload"
gem 'middleman-search_engine_sitemap'

# Source minification
gem "middleman-minify-html"
gem "middleman-smusher"
# TODO: Not working yet
# gem 'middleman-imageoptim' # brew install advancecomp gifsicle jhead jpegoptim jpeg optipng pngcrush
151 changes: 151 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,151 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (4.1.9)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
builder (3.2.2)
celluloid (0.16.0)
timers (~> 4.0.0)
chunky_png (1.3.4)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.9.1)
compass (1.0.3)
chunky_png (~> 1.2)
compass-core (~> 1.0.2)
compass-import-once (~> 1.0.5)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
sass (>= 3.3.13, < 3.5)
compass-core (1.0.3)
multi_json (~> 1.0)
sass (>= 3.3.0, < 3.5)
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
erubis (2.7.0)
eventmachine (1.0.7)
execjs (2.4.0)
ffi (1.9.7)
haml (4.0.6)
tilt
hike (1.2.3)
hitimes (1.2.2)
hooks (0.4.0)
uber (~> 0.0.4)
htmlcompressor (0.1.2)
http_parser.rb (0.6.0)
httpclient (2.6.0.1)
i18n (0.7.0)
json (1.8.2)
kramdown (1.6.0)
listen (2.9.0)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
middleman (3.3.10)
coffee-script (~> 2.2)
compass (>= 1.0.0, < 2.0.0)
compass-import-once (= 1.0.5)
execjs (~> 2.0)
haml (>= 4.0.5)
kramdown (~> 1.2)
middleman-core (= 3.3.10)
middleman-sprockets (>= 3.1.2)
sass (>= 3.4.0, < 4.0)
uglifier (~> 2.5)
middleman-bower (1.0.2)
sprockets-bower (>= 0.0.2)
middleman-core (3.3.10)
activesupport (~> 4.1.0)
bundler (~> 1.1)
erubis
hooks (~> 0.3)
i18n (~> 0.7.0)
listen (>= 2.7.9, < 3.0)
padrino-helpers (~> 0.12.3)
rack (>= 1.4.5, < 2.0)
rack-test (~> 0.6.2)
thor (>= 0.15.2, < 2.0)
tilt (~> 1.4.1, < 2.0)
middleman-livereload (3.4.2)
em-websocket (~> 0.5.1)
middleman-core (>= 3.3)
rack-livereload (~> 0.3.15)
middleman-minify-html (3.4.0)
htmlcompressor (~> 0.1.0)
middleman-core (>= 3.2)
middleman-search_engine_sitemap (1.3.0)
builder
middleman-core (~> 3.2)
middleman-smusher (3.0.0)
middleman (>= 3.0.0)
smusher (~> 0.4.9)
middleman-sprockets (3.4.2)
middleman-core (>= 3.3)
sprockets (~> 2.12.1)
sprockets-helpers (~> 1.1.0)
sprockets-sass (~> 1.3.0)
minitest (5.5.1)
multi_json (1.11.0)
padrino-helpers (0.12.5)
i18n (~> 0.6, >= 0.6.7)
padrino-support (= 0.12.5)
tilt (~> 1.4.1)
padrino-support (0.12.5)
activesupport (>= 3.1)
rack (1.6.0)
rack-livereload (0.3.15)
rack
rack-test (0.6.3)
rack (>= 1.0)
rake (10.4.2)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
sass (3.4.13)
smusher (0.4.9)
httpclient (>= 2.2)
json
rake
sprockets (2.12.3)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-bower (0.0.2)
sprockets-helpers (1.1.0)
sprockets (~> 2.0)
sprockets-sass (1.3.1)
sprockets (~> 2.0)
tilt (~> 1.1)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
timers (4.0.1)
hitimes
tzinfo (1.2.2)
thread_safe (~> 0.1)
uber (0.0.13)
uglifier (2.7.1)
execjs (>= 0.3.0)
json (>= 1.8.0)

PLATFORMS
ruby

DEPENDENCIES
middleman
middleman-bower
middleman-livereload
middleman-minify-html
middleman-search_engine_sitemap
middleman-smusher
middleman-sprockets
62 changes: 62 additions & 0 deletions README.md
@@ -0,0 +1,62 @@
# Middleman Basis

## General Information

* [middleman][middleman-url]
* [bower][bower-url]

### Description

The Basis for building a good website. Middleman Basis uses:

* COMPASS
* HAML
* SASS
* CoffeeScript
* Bower
* Modernizr.js
* Normalize.css
* Search Engine Sitemap
* ImageOptim

## Getting Started

Before you get started, make sure you have [node.js][nodejs-url] & [Bower][bower-url] already installed.

1. Install **middleman-basis** as Middleman template.

```bash
git clone https://github.com/pzi/middleman-basis.git ~/.middleman/middleman-basis
```

2. Initialize a new Middleman project with the **middleman-basis** template

```bash
middleman init project_name --template=middleman-basis
cd project_name
rm -rf .git/
git init
```

3. Install Gems and Bower packages

```bash
bundle && bower install
```

4. Run `middleman`

## TODO

* Make use of config settings/file
* GitHub page

## License

**Middleman Basis** was created by [Patrik Affentranger][pzi-url] and is distributed under the [MIT license](LICENSE).


[bower-url]: http://bower.io/
[nodejs-url]: http://nodejs.org/
[middleman-url]: http://middlemanapp.com/
[pzi-url]: http://patrikaffentranger.me
21 changes: 21 additions & 0 deletions bower.json
@@ -0,0 +1,21 @@
{
"name": "middleman-basis",
"version": "0.1.0",
"description": "Middleman Basis - The foundation for any middleman site.",
"author": {
"name": "Patrik Affentranger",
"url": "http://patrikaffentranger.me"
},
"license": "MIT",
"homepage": "http://patrikaffentranger.me",
"private": true,
"ignore": [
"**/.*",
"bower_components",
"js/vendor"
],
"dependencies": {
"jquery": "<2.0.0",
"normalize.css": "~3.0.2"
}
}

0 comments on commit 7b8131d

Please sign in to comment.