Start work on getting grunt setup for the Quay frontend. Note that this change is NOT working code
This commit is contained in:
parent
a03fd73b04
commit
cbd0f30070
3 changed files with 42 additions and 0 deletions
29
grunt/Gruntfile.js
Normal file
29
grunt/Gruntfile.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
module.exports = function(grunt) {
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
concat: {
|
||||
options: {
|
||||
process: function(src, filepath) {
|
||||
return '// Source: ' + filepath + '\n' +
|
||||
'(function() {\n' + src + '\n})();\n';
|
||||
},
|
||||
},
|
||||
build: {
|
||||
src: ['../static/lib/**/*.js', '../static/js/*.js', '!../static/lib/jquery.overscroll.min.js'],
|
||||
dest: '../dest/<%= pkg.name %>.js'
|
||||
}
|
||||
},
|
||||
|
||||
cssmin: {
|
||||
'../dest/<%= pkg.name %>.css': ['../static/lib/**/*.css', '../static/css/*.css']
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||
|
||||
// Default task(s).
|
||||
grunt.registerTask('default', ['concat', 'cssmin']);
|
||||
};
|
Reference in a new issue