diff --git a/.gitignore b/.gitignore index a48353f7b..9d6b1d0e3 100644 --- a/.gitignore +++ b/.gitignore @@ -15,5 +15,6 @@ spec/reports doc/*.html .rspec /Gemfile.local +spec/javascripts/lib bower_components node_modules diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 000000000..db8571b38 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,24 @@ +module.exports = function (grunt) { + 'use strict'; + grunt.initConfig({ + dir: { + src: 'src', + dest: 'dist' + }, + pkg: grunt.file.readJSON("package.json"), + bower: { + install: { + options: { + targetDir: './spec/javascripts/lib', + layout: 'byComponent', + install: true, + verbose: false, + cleanTargetDir: true, + cleanBowerDir: false + } + } + }, + }); + grunt.loadNpmTasks('grunt-bower-task'); + grunt.registerTask('default', ['bower:install']); +}; diff --git a/bower.json b/bower.json index 4ce046a3f..2b3a315f7 100644 --- a/bower.json +++ b/bower.json @@ -10,9 +10,7 @@ "**/.*", "node_modules", "bower_components", - "spec/javascripts", - "test", - "tests" + "spec/javascripts/lib" ], "devDependencies": { "jquery": "~2.1.0",