Skip to content

Commit

Permalink
added grunt time. Closes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
dreh23 committed Jun 26, 2015
1 parent d4d7018 commit 4b92ab8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
module.exports = function(grunt) {

var port = grunt.option('port') || 8080;
require('time-grunt')(grunt);
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
Expand Down Expand Up @@ -61,6 +62,7 @@ module.exports = function(grunt) {
define: false,
exports: false,
angular: true,
require: false,
$: false,
_: false
}
Expand Down Expand Up @@ -105,7 +107,8 @@ module.exports = function(grunt) {
banner: '<%= meta.banner %>\n',
compress: true,
sourceMap: true,
mangle: false
mangle: false,
nameCache: 'tmp/uglify.cache'
},
js: {
files: {
Expand Down Expand Up @@ -271,8 +274,7 @@ module.exports = function(grunt) {
grunt.registerTask( 'default', [ 'build', 'index', 'angularHtmlify' ] );

// Building bricks
grunt.registerTask( 'js', [ 'jshint', 'uglify', 'qunit' ] );
grunt.registerTask( 'depbuild', [ 'bowercopy', 'newer:jshint', 'newer:qunit', 'newer:concat', 'newer:cssmin', 'newer:uglify' ] );
grunt.registerTask( 'depbuild', [ 'bowercopy', 'newer:jshint', 'newer:qunit', 'newer:concat', 'newer:cssmin', 'newer:uglify', 'qunit' ] );

// git fetch and rebase
grunt.registerTask( 'upgrade', [ 'gitfetch', 'gitreset', 'build', 'index' ] );
Expand All @@ -281,7 +283,7 @@ module.exports = function(grunt) {
grunt.registerTask( 'build', [ 'depbuild' ] );

// Indexing
grunt.registerTask( 'index', [ 'validation', 'metaparser', 'execute' ] );
grunt.registerTask( 'index', [ 'newer:validation', 'metaparser', 'execute' ] );

// Run tests
grunt.registerTask( 'test', [ 'jshint', 'qunit', 'validation' ] );
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"node-sass": "~3.2.0",
"grunt-git": "~0.3.4",
"grunt-execute": "~0.2.2",
"bower": "~1.4.1"
"bower": "~1.4.1",
"time-grunt": "~1.2.1"
},
"licenses": [
{
Expand Down

0 comments on commit 4b92ab8

Please sign in to comment.