mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
added some sample grunt tasks.
This commit is contained in:
parent
f662b5de8a
commit
fb47bac883
3 changed files with 57 additions and 0 deletions
34
Gruntfile.js
Normal file
34
Gruntfile.js
Normal file
|
@ -0,0 +1,34 @@
|
|||
module.exports = function(grunt) {
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
uglify: {
|
||||
files: {
|
||||
expand: true, // Enable dynamic expansion.
|
||||
cwd: 'NzbDrone.Backbone/', // Src matches are relative to this path.
|
||||
src: ['**/*.js'], // Actual pattern(s) to match.
|
||||
dest: 'build/', // Destination path prefix.
|
||||
ext: '.min.js' // Dest filepaths will have this extension.
|
||||
}
|
||||
},
|
||||
handlebars: {
|
||||
options: {
|
||||
namespace: "NzbDrone.Templates"
|
||||
},
|
||||
files: {
|
||||
expand: true, // Enable dynamic expansion.
|
||||
cwd: 'NzbDrone.Backbone/', // Src matches are relative to this path.
|
||||
src: ['**/*Template.html'],
|
||||
ext: '.hbs' // Actual pattern(s) to match.
|
||||
}
|
||||
}});
|
||||
|
||||
// Load the plugin that provides the "uglify" task.
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-handlebars');
|
||||
|
||||
// Default task(s).
|
||||
grunt.registerTask('default', ['uglify']);
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue