Skip to content

Commit

Permalink
moved the js files to make it easier to create a deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jettro committed Dec 23, 2014
1 parent c05e97e commit 0fac52b
Show file tree
Hide file tree
Showing 26 changed files with 40 additions and 7 deletions.
44 changes: 38 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ module.exports = function (grunt) {
'bower_components/d3/d3.js',
'bower_components/c3/c3.js',
'bower_components/moment/moment.js',
'js/c3js-directive.js',
'js/app.js','js/controllers/*','js/directives.js','js/filters.js','js/services/*'
'javascript/c3js-directive.js',
'javascript/app.js',
'javascript/controllers/*',
'javascript/directives.js',
'javascript/filters.js',
'javascript/services/*'
],
dest: 'assets/js/<%= pkg.name %>.js'
}
Expand All @@ -45,9 +49,9 @@ module.exports = function (grunt) {
},
all: [
'Gruntfile.js',
'js/controllers/*',
'js/services/*',
'js/*.js'
'javascript/controllers/*',
'javascript/services/*',
'javascript/*.js'
]
},
uglify: {
Expand All @@ -69,18 +73,46 @@ module.exports = function (grunt) {
style: 'compressed'
},
files: {
// 'assets/vendor/bootstrap.min.css': 'src/scss/bootstrap/bootstrap.scss',
'assets/css/app.min.css': 'sass/style.scss'
}
}
},
rsync: {
options: {
src: "./",
args: ["--verbose"],
exclude: ['.git*',
'.idea',
'.sass-cache',
'bower_components',
'node_modules',
'sass',
'.jshintrc',
'bower.json',
'*.iml',
'Gruntfile.js',
'package.json',
'.DS_Store',
'README.md'
],
recursive: true,
syncDestIgnoreExcl: true
},
staging: {
options: {
dest: "/Users/jettrocoenradie/temp/gridshoregui"
}
}
}

});

grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-rsync');

grunt.registerTask('combine',['concat:dist','uglify:dist']);
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.5.0",
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-sass": "~0.8.1"
"grunt-contrib-sass": "~0.8.1",
"grunt-rsync": "~0.6.2"
}
}

0 comments on commit 0fac52b

Please sign in to comment.