All Downloads are FREE. Search and download functionalities are using the official Maven repository.

archetype-resources.Gruntfile.js Maven / Gradle / Ivy

There is a newer version: 2.08alpha
Show newest version
module.exports = function(grunt) {

  grunt.initConfig({
    pkg: grunt.file.readJSON("package.json"),
    bower: { install: { } },
    bower_concat: {
      all: {
        dest: "lib/_bower.js"
      }
    },
    jshint: {
      all: {
        src: [ "Gruntfile.js", "src/**/*.js" ],
        filter: function(path) { return path !== "src/main/webapp/libs.js"; }
      },
      options: {
        // options here to override JSHint defaults
        globals: {
          jQuery: true,
          console: true,
          module: true,
          document: true
        }
      }
    },
    clean: ["lib/", "bower_components/", "dist/", "node/", "node_modules/" ]
  });

  grunt.loadNpmTasks("grunt-bower-task");
  grunt.loadNpmTasks("grunt-bower-concat");
  grunt.loadNpmTasks("grunt-contrib-jshint");
  grunt.loadNpmTasks("grunt-contrib-clean");

  grunt.registerTask("default", ["bower", "bower_concat", "jshint"]);

};




© 2015 - 2025 Weber Informatics LLC | Privacy Policy