Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
3,824 additions
and
912 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
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,6 +1,166 @@ | ||
/*global module:false, require*/ | ||
// | ||
// Grunt Build | ||
// | ||
// ========================================================================== | ||
|
||
module.exports = function(grunt){ | ||
module.exports = function(grunt) { | ||
'use strict'; | ||
|
||
grunt.initConfig({ | ||
|
||
sass: { | ||
dev: { | ||
options: { | ||
style: 'expanded', | ||
compass: true, | ||
require: ['susy', 'breakpoint'] | ||
}, | ||
files: { | ||
'css/base.css': 'css/base.scss' | ||
} | ||
}, | ||
dist: { | ||
options: { | ||
style: 'compressed', | ||
compass: true, | ||
require: ['susy', 'breakpoint'], | ||
sourcemap: 'none' | ||
}, | ||
files: { | ||
'css/base.css': 'css/base.scss' | ||
} | ||
} | ||
}, | ||
|
||
|
||
jshint: { | ||
options: { | ||
'-W058': true, | ||
curly: true, | ||
eqeqeq: true, | ||
immed: true, | ||
latedef: false, | ||
newcap: true, | ||
noarg: true, | ||
sub: true, | ||
undef: true, | ||
unused: false, | ||
boss: true, | ||
eqnull: false, | ||
browser: true, | ||
esnext: true, | ||
debug: true, | ||
globalstrict: true, | ||
globals: { | ||
'$': false, | ||
'module': true, | ||
'require': false, | ||
'console': false, | ||
'window': true | ||
}, | ||
ignores: ['js/dist.js', 'js/dist.min.js'] | ||
}, | ||
files: ['Gruntfile.js', 'js/*.js'] | ||
}, | ||
|
||
|
||
concat: { | ||
options: { | ||
stripBanners: true | ||
}, | ||
dist: { | ||
src: ['js/core.js', 'core/plugins.js'], | ||
dest: 'js/dist.js' | ||
}, | ||
}, | ||
|
||
|
||
uglify: { | ||
my_target: { | ||
files: { | ||
'js/dist.min.js': 'js/dist.js' | ||
} | ||
} | ||
}, | ||
|
||
|
||
jasmine: { | ||
pivotal: { | ||
src: 'js/core.js', | ||
options: { | ||
vendor: ['js/vendor/jquery.min.js'], | ||
helpers: ['spec/helpers/jasmine-jquery.js'], | ||
specs: 'spec/*Spec.js', | ||
keepRunner: true | ||
} | ||
} | ||
}, | ||
|
||
|
||
preprocess: { | ||
dev: { | ||
options: { | ||
context: { ENV: 'DEV' } | ||
}, | ||
src : 'tmpl/index.html', | ||
dest : 'index.html' | ||
}, | ||
dist: { | ||
options: { | ||
context: { ENV: 'PROD' } | ||
}, | ||
src : 'tmpl/index.html', | ||
dest : 'index.html' | ||
} | ||
}, | ||
|
||
|
||
watch: { | ||
sass: { | ||
files: ['css/**/*.scss'], | ||
tasks: ['sass:dev'] | ||
}, | ||
js: { | ||
files: ['Gruntfile.js', 'js/*.js'], | ||
tasks: ['jshint'] | ||
}, | ||
test: { | ||
files: ['spec/**/*.js', 'tmpl/inc/*.html'], | ||
tasks: ['test'] | ||
}, | ||
html: { | ||
files: ['tmpl/index.html', 'tmpl/inc/*.html'], | ||
tasks: ['preprocess'] | ||
}, | ||
options: { | ||
livereload: true | ||
} | ||
} | ||
|
||
}); | ||
|
||
|
||
// Load Modules | ||
// ---------------------------------------------------------- | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-sass'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-jasmine'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-preprocess'); | ||
|
||
|
||
// Register Tasks | ||
// ---------------------------------------------------------- | ||
grunt.registerTask('default', ['sass:dev', 'jshint', 'preprocess:dev', 'jasmine']); | ||
grunt.registerTask('dev', ['sass:dev', 'jshint', 'preprocess:dev', 'jasmine', 'watch']); | ||
grunt.registerTask('dist', ['sass:dist', 'jshint', 'concat', 'uglify', 'preprocess:dist', 'jasmine']); | ||
grunt.registerTask('test', ['jshint', 'jasmine']); | ||
|
||
|
||
// Show Timer | ||
// ---------------------------------------------------------- | ||
require('time-grunt')(grunt); | ||
require('load-grunt-config')(grunt); | ||
|
||
}; |
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 John Rodler | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,16 @@ | ||
#### LATER | ||
- 'later' | ||
|
||
|
||
#### NEXT | ||
- 'next' | ||
|
||
|
||
#### READY | ||
- 'setup default html template preprocess' | ||
- 'setup default concat + uglify' | ||
- 'setup default jasmine testing' | ||
- 'add font-awesome 4.3.0' | ||
- 'update normalize to 3.0.2' | ||
- 'update jquery to 1.11.2' | ||
- 'update modernizr to 2.8.3' |
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,43 +1,73 @@ | ||
# basejump [v1.0.1] | ||
basejump is a stable starting point for building web apps :rocket: | ||
# basejump v1.0.2 [![devDependencies](https://david-dm.org/jrodl3r/basejump/dev-status.svg)](https://david-dm.org/jrodl3r/basejump#info=devDependencies) [![Release](https://img.shields.io/github/release/jrodl3r/basejump.svg?style=flat)](https://github.com/jrodl3r/basejump/releases) [![License](https://img.shields.io/npm/l/express.svg?style=flat)](https://github.com/jrodl3r/basejump/blob/master/LICENSE) | ||
|
||
basejump is a stable starting point for building awesome web apps :rocket: | ||
|
||
|
||
## Components | ||
- **HTML5 Boilerplate** (boilerplate) | ||
- **Susy** (layout) | ||
- **GruntJS** (build) | ||
- **JSHint** (lint) | ||
- **Uglify** (minify) | ||
- **Sass + Compass** (preprocess) | ||
- **TargetHTML** (template) | ||
- **Notify** (update) | ||
- **Atom** (edit) | ||
|
||
## How to use | ||
### Install Tools | ||
Npm, Node, Homebrew, Grunt, Ruby, Sass, Compass, Susy + Atom | ||
|
||
### Setup Build | ||
|
||
#### Npm | ||
- **Grunt** (http://gruntjs.com) | ||
- **JSHint** (http://goo.gl/ycmy2O) | ||
- **Jasmine** (http://goo.gl/uWPF7N) | ||
- **Preprocess** (http://goo.gl/Py7arH) | ||
- **Watch** (http://goo.gl/xD4Wqn) | ||
- **Timer** (http://goo.gl/rXVNZZ) | ||
|
||
#### Ruby | ||
- **Sass** (http://sass-lang.com » http://goo.gl/wW0qJe) | ||
- **Compass** (http://compass-style.org » http://goo.gl/5k7nGm) | ||
- **Breakpoint** (http://breakpoint-sass.com » http://goo.gl/rqQ5dC) | ||
- **Susy** (http://susy.oddbird.net » http://goo.gl/r3pCcX) | ||
|
||
#### JS | ||
- **jQuery** (http://jquery.com) | ||
- **Modernizr** (http://modernizr.com) | ||
|
||
#### CSS | ||
- **Normalize** (http://necolas.github.io/normalize.css) | ||
- **Font Awesome** (http://fortawesome.github.io/Font-Awesome) | ||
|
||
|
||
## Install | ||
|
||
#### Homebrew | ||
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | ||
$ brew update && brew doctor | ||
$ export PATH="/usr/local/bin:$PATH" | ||
|
||
#### Node & Ruby | ||
$ brew install node | ||
$ brew install ruby | ||
|
||
#### Grunt | ||
$ sudo npm install -g grunt-cli | ||
$ npm update --save-dev | ||
$ sudo gem install sass // also: compass, susy | ||
|
||
#### Sass & Compass | ||
$ sudo gem install compass | ||
|
||
#### Dependencies | ||
$ npm install | ||
|
||
#### Susy & Breakpoint | ||
$ sudo gem install susy | ||
$ sudo gem install breakpoint | ||
|
||
|
||
## Start | ||
|
||
#### Update | ||
$ vim package.json | ||
|
||
#### Launch | ||
$ atom . | ||
$ grunt | ||
$ server 7777 | ||
|
||
### Development | ||
#### Development | ||
$ grunt dev | ||
|
||
### CSS | ||
$ grunt css | ||
|
||
### JS | ||
$ grunt js | ||
|
||
### Watch | ||
$ grunt watch | ||
|
||
### Release | ||
#### Release | ||
$ grunt dist | ||
|
||
<br> | ||
|
||
**Cheers** :beers: |
Oops, something went wrong.