Sha256: cc43e854858f85f3a3a171e0e22ecdce8d29ec47cb4f8c8b300b0867d2ab48b4

Contents?: true

Size: 1.48 KB

Versions: 40

Compression:

Stored size: 1.48 KB

Contents

module.exports = function(grunt) {
  var pkg = require("./package.json");
  global.jasmineVersion = pkg.version;

  grunt.initConfig({
    pkg: pkg,
    jshint: require('./grunt/config/jshint.js'),
    concat: require('./grunt/config/concat.js'),
    compass: require('./grunt/config/compass.js'),
    compress: require('./grunt/config/compress.js')
  });

  require('load-grunt-tasks')(grunt);

  grunt.loadTasks('grunt/tasks');

  grunt.registerTask('default', ['jshint:all']);

  var version = require('./grunt/tasks/version.js');
  var standaloneBuilder = require('./grunt/tasks/build_standalone.js');

  grunt.registerTask('build:copyVersionToGem',
    "Propagates the version from package.json to version.rb",
    version.copyToGem);

  grunt.registerTask('buildDistribution',
    'Builds and lints jasmine.js, jasmine-html.js, jasmine.css',
    [
      'compass',
      'jshint:beforeConcat',
      'concat',
      'jshint:afterConcat',
      'build:copyVersionToGem'
    ]
  );

  grunt.registerTask("execSpecsInNode",
    "Run Jasmine core specs in Node.js",
    function() {
      var exitInfo = require("shelljs").exec("node_modules/.bin/jasmine");
      if (exitInfo.code !== 0) {
        grunt.fail.fatal("Specs Failed", exitInfo.code);
      }
    }
  );

  grunt.registerTask("execSpecsInNode:performance",
    "Run Jasmine performance specs in Node.js",
    function() {
      require("shelljs").exec("node_modules/.bin/jasmine JASMINE_CONFIG_PATH=spec/support/jasmine-performance.json");
    }
  );
};

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/bootstrap-tagsinput/lib/jasmine/Gruntfile.js
upjs-rails-0.11.0 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.10.5 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.10.4 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.10.3 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.10.2 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.10.1 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.10.0 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.9.1 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.9.0 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.8.2 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.8.1 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.8.0 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.7.8 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.7.7 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.7.6 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.7.5 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.7.4 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.7.3 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js
upjs-rails-0.7.2 spec_app/vendor/assets/bower_components/jasmine/Gruntfile.js