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
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -3,3 +3,6 @@ venv
|
|||
static/snapshots/
|
||||
screenshots/screenshots/
|
||||
stack
|
||||
grunt/node_modules
|
||||
dist
|
||||
dest
|
||||
|
|
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']);
|
||||
};
|
10
grunt/package.json
Normal file
10
grunt/package.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"name": "quay-frontend",
|
||||
"version": "0.1.0",
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.4",
|
||||
"grunt-contrib-concat": "~0.4.0",
|
||||
"grunt-contrib-cssmin": "~0.9.0",
|
||||
"grunt-angular-templates": "~0.5.4"
|
||||
}
|
||||
}
|
Reference in a new issue