Skip to content

Commit

Permalink
init project
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaBazhenov committed Jul 8, 2014
1 parent 1a2f79f commit 052634c
Show file tree
Hide file tree
Showing 37 changed files with 1,607 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "app/bower_components"
}
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]

# Change these settings to your own preference
indent_style = space
indent_size = 4

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
6 changes: 6 additions & 0 deletions .ftppass
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"irenca": {
"username": "username",
"password": "password"
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
dist
.tmp
.sass-cache
app/bower_components
.idea/
21 changes: 21 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"node": true,
"browser": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 4,
"latedef": true,
"newcap": true,
"noarg": true,
"quotmark": "single",
"undef": true,
"unused": true,
"strict": true,
"trailing": true,
"smarttabs": true,
"jquery": true
}
193 changes: 193 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
module.exports = function (grunt) {
'use strict';

require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);

grunt.initConfig({
yeoman: {
app: 'app',
dist: 'dist'
},
watch: {
js: {
files: ['<%= yeoman.app %>/scripts/{,*/}*.js'],
tasks: ['jshint'],
options: {
livereload: true
}
},
gruntfile: {
files: ['Gruntfile.js']
},
compass: {
files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
tasks: ['compass:dev']
},
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
files: [
'<%= yeoman.app %>/{,*/}*.html',
'.tmp/styles/{,*/}*.css',
'<%= yeoman.app %>/images/{,*/}*.{gif,jpeg,jpg,png,svg,webp}'
]
}
},
connect: {
options: {
port: 9002,
livereload: 35729,
hostname: 'localhost'
},
livereload: {
options: {
open: true,
base: [
'.tmp',
'<%= yeoman.app %>'
]
}
}
},
clean: {
dist: {
files: [{
dot: true,
src: [
'.tmp',
'<%= yeoman.dist %>/*',
'!<%= yeoman.dist %>/.git*'
]
}]
},
dev: '.tmp'
},
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
all: [
'Gruntfile.js',
'<%= yeoman.app %>/scripts/{,*/}*.js'
]
},
compass: {
options: {
sassDir: '<%= yeoman.app %>/styles',
cssDir: '.tmp/styles',
relativeAssets: false,
assetCacheBuster: false
},
dev: {
options: {
debugInfo: false
}
}
},
bower: {
install: {}
},
rev: {
dist: {
files: {
src: [
'<%= yeoman.dist %>/scripts/{,*/}*.js',
'<%= yeoman.dist %>/styles/{,*/}*.css'
]
}
}
},
useminPrepare: {
options: {
dest: '<%= yeoman.dist %>'
},
html: '<%= yeoman.app %>/index.html'
},
usemin: {
options: {
assetsDirs: ['<%= yeoman.dist %>']
},
html: ['<%= yeoman.dist %>/{,*/}*.html'],
css: ['<%= yeoman.dist %>/styles/{,*/}*.css']
},
htmlmin: {
dist: {
options: {
collapseBooleanAttributes: true,
collapseWhitespace: true,
removeAttributeQuotes: true,
removeCommentsFromCDATA: true,
removeEmptyAttributes: true,
removeOptionalTags: true,
removeRedundantAttributes: true,
useShortDoctype: true
},
files: [{
expand: true,
cwd: '<%= yeoman.dist %>',
src: '{,*/}*.html',
dest: '<%= yeoman.dist %>'
}]
}
},
copy: {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>',
src: [
'*.{ico,png,txt,xml,html}',
'.htaccess',
'images/{,*/}*.{gif,jpeg,jpg,png}'
]
}]
}
},
'ftp-deploy': {
build: {
auth: {
host: 'ftp.iren.ca',
port: 21,
authKey: 'irenca'
},
src: '<%= yeoman.dist %>',
dest: '/'
}
}
});

grunt.registerTask('default', function (target) {
grunt.task.run([
'clean:dev',
'bower:install',
'compass:dev',
'connect:livereload',
'watch'
]);
});

grunt.registerTask('build', [
'clean:dist',
'bower:install',
'compass:dev',
'useminPrepare',
'concat',
'cssmin',
'uglify',
'copy:dist',
'rev',
'usemin',
'htmlmin'
]);

grunt.registerTask('deploy', [
'build',
'ftp-deploy'
]);

};
31 changes: 28 additions & 3 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
iren.ca
=======
# [iren.ca](http://www.iren.ca)
***git

Project files for http://www.iren.ca/
## Overview

Project files for [iren.ca](http://www.iren.ca)

### Tools

[![Yeoman](http://iren.ca/images/libs/yo.jpg)](http://yeoman.io/)
[![Grunt](http://iren.ca/images/libs/grunt.jpg)](http://gruntjs.com/)
[![Bower](http://iren.ca/images/libs/bower.jpg)](http://bower.io/)
[![SASS + Compass](file:///Users/nikitabazhenov/Desktop/1/sass.jpg)](http://compass-style.org)

### Libraries

[![Parallax](http://iren.ca/images/libs/parallax.jpg)](http://wagerfield.github.io/parallax/)
[![Bourbon](http://iren.ca/images/libs/bourbon.jpg)](http://bourbon.io/)

##Instructions

$ npm install
$ grunt

### For distribution

$ grunt build


Loading

0 comments on commit 052634c

Please sign in to comment.