mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-19 22:04:56 -04:00
added folder clean up to grunt
removed unused tasks
This commit is contained in:
+6
-14
@@ -29,15 +29,10 @@ module.exports = function (grunt) {
|
|||||||
'UI/Content/messenger.future.css' : 'http://raw.github.com/HubSpot/messenger/master/build/css/messenger-theme-future.css'
|
'UI/Content/messenger.future.css' : 'http://raw.github.com/HubSpot/messenger/master/build/css/messenger-theme-future.css'
|
||||||
},
|
},
|
||||||
|
|
||||||
uglify: {
|
clean: {
|
||||||
files: {
|
folder: "_output/UI/"
|
||||||
expand: true, // Enable dynamic expansion.
|
|
||||||
cwd : 'UI/', // Src matches are relative to this path.
|
|
||||||
src : ['**/*.js'], // Actual pattern(s) to match.
|
|
||||||
dest : 'build/', // Destination path prefix.
|
|
||||||
ext : '.min.js'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
less : {
|
less : {
|
||||||
bootstrap: {
|
bootstrap: {
|
||||||
src : "UI/Content/bootstrap/bootstrap.less",
|
src : "UI/Content/bootstrap/bootstrap.less",
|
||||||
@@ -131,19 +126,16 @@ module.exports = function (grunt) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Load the plugin that provides the "uglify" task.
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-handlebars');
|
grunt.loadNpmTasks('grunt-contrib-handlebars');
|
||||||
grunt.loadNpmTasks('grunt-contrib-less');
|
grunt.loadNpmTasks('grunt-contrib-less');
|
||||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
|
||||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||||
grunt.loadNpmTasks('grunt-wrap');
|
|
||||||
grunt.loadNpmTasks('grunt-notify');
|
grunt.loadNpmTasks('grunt-notify');
|
||||||
grunt.loadNpmTasks('grunt-curl');
|
grunt.loadNpmTasks('grunt-curl');
|
||||||
|
grunt.loadNpmTasks('grunt-clean');
|
||||||
// Default task(s).
|
// Default task(s).
|
||||||
grunt.registerTask('default', ['copy', 'less', 'handlebars', 'watch']);
|
grunt.registerTask('package', ['clean', 'copy', 'less', 'handlebars']);
|
||||||
grunt.registerTask('package', ['copy', 'less', 'handlebars']);
|
grunt.registerTask('default', ['package', 'watch']);
|
||||||
grunt.registerTask('update', ['curl']);
|
grunt.registerTask('update', ['curl']);
|
||||||
|
|
||||||
};
|
};
|
||||||
+2
-4
@@ -16,14 +16,12 @@
|
|||||||
"readmeFilename": "readme.md",
|
"readmeFilename": "readme.md",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"grunt": "*",
|
"grunt": "*",
|
||||||
"grunt-contrib-uglify": "*",
|
|
||||||
"grunt-contrib-handlebars": "*",
|
"grunt-contrib-handlebars": "*",
|
||||||
"grunt-contrib-watch": "*",
|
"grunt-contrib-watch": "*",
|
||||||
"grunt-contrib-less": "*",
|
"grunt-contrib-less": "*",
|
||||||
"grunt-contrib-concat": "*",
|
|
||||||
"grunt-contrib-copy": "*",
|
"grunt-contrib-copy": "*",
|
||||||
"grunt-wrap": "*",
|
|
||||||
"grunt-curl": "*",
|
"grunt-curl": "*",
|
||||||
"grunt-notify": "*"
|
"grunt-notify": "*",
|
||||||
|
"grunt-clean": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user