Permalink
Browse files

added grunt tasks

  • Loading branch information...
1 parent 6257632 commit 5378713ba1389a028048b5ffe494ab49015546b8 @maxgillett committed Jan 25, 2013
View
@@ -8,4 +8,8 @@ config.ru
*.gem
.rvmrc
-.rspec
+.rspec
+
+_SpecRunner.html
+
+/node_modules
View
@@ -13,7 +13,7 @@ group :development do
gem 'rspec'
gem 'rspec-rails'
gem 'capybara'
- gem 'jasmine'
+ # gem 'jasmine'
# assets
gem 'sass-rails', '~> 3.2.3'
View
@@ -1,10 +1,10 @@
-begin
- require 'jasmine'
- require 'yaml'
- load 'jasmine/tasks/jasmine.rake'
-rescue LoadError
- task :jasmine do
- abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
- end
-end
+# begin
+# require 'jasmine'
+# require 'yaml'
+# load 'jasmine/tasks/jasmine.rake'
+# rescue LoadError
+# task :jasmine do
+# abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
+# end
+# end
View
@@ -0,0 +1,44 @@
+module.exports = function(grunt) {
+
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-jasmine-runner');
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+
+ concat: {
+ lib : {
+ src : [
+ 'javascripts/header.js',
+ 'javascripts/s3mp.js',
+ 'javascripts/upload.js',
+ 'javascripts/uploadpart.js',
+ 'javascripts/footer.js'
+ ],
+ dest : 'vendor/assets/javascripts/s3_multipart/lib.js'
+ }
+ },
+
+ jasmine : {
+ src : [
+ 'javascripts/libs/underscore.js',
+ 'javascripts/s3mp.js',
+ 'javascripts/upload.js',
+ 'javascripts/uploadpart.js'
+ ],
+ helpers : 'spec/javascripts/helpers/*.js',
+ specs : 'spec/javascripts/*.js'
+ },
+
+ min: {
+ myPlugin: {
+ src: [
+ '<config:concat.lib.dest>'
+ ],
+ dest: 'vendor/assets/javascripts/s3_multipart/lib.min.js'
+ }
+ }
+
+ });
+};
View
@@ -0,0 +1,9 @@
+{
+ "name": "s3_multipart",
+ "version": "0.0.6",
+ "devDependencies": {
+ "grunt": "latest",
+ "grunt-contrib-uglify": "latest",
+ "grunt-jasmine-runner": "latest"
+ }
+}
@@ -1,3 +1,10 @@
+#######################################################
+## ##
+## No longer being used. For use with jasmine gem ##
+## ##
+#######################################################
+
+
# src_files
#
# Return an array of filepaths relative to src_dir to include before jasmine specs.
Oops, something went wrong.

0 comments on commit 5378713

Please sign in to comment.