first commit
This commit is contained in:
70
public/assets/spectrum/Gruntfile.js
Normal file
70
public/assets/spectrum/Gruntfile.js
Normal file
@@ -0,0 +1,70 @@
|
||||
|
||||
module.exports = function(grunt) {
|
||||
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
|
||||
qunit: {
|
||||
all: {
|
||||
options: {
|
||||
urls: ['test/index.html', 'test/loaders.html'],
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
jshint: {
|
||||
options: {
|
||||
sub: true,
|
||||
strict: true,
|
||||
newcap: false,
|
||||
globals: {
|
||||
jQuery: true
|
||||
}
|
||||
},
|
||||
|
||||
with_overrides: {
|
||||
options: {
|
||||
strict: false
|
||||
},
|
||||
files: {
|
||||
src: ['i18n/*.js', 'test/tests.js']
|
||||
}
|
||||
},
|
||||
|
||||
all: ['spectrum.js']
|
||||
},
|
||||
|
||||
|
||||
uglify: {
|
||||
options: {
|
||||
},
|
||||
dist: {
|
||||
files: {
|
||||
'build/spectrum-min.js': ['spectrum.js']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-qunit');
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
|
||||
|
||||
// Testing tasks
|
||||
grunt.registerTask('test', ['jshint', 'qunit']);
|
||||
|
||||
// Travis CI task.
|
||||
grunt.registerTask('travis', 'test');
|
||||
|
||||
// Default task.
|
||||
grunt.registerTask('default', ['test']);
|
||||
|
||||
//Build Task.
|
||||
grunt.registerTask('build', ['test', 'uglify']);
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user