summaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js49
1 files changed, 49 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..35ef388
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,49 @@
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ concat: {
+ js: {
+ options: {
+ separator: "\n;\n"
+ },
+ src: [
+ "public/js/vendor/lodash.min.js",
+ "public/js/vendor/util.js",
+ "public/js/vendor/view/view.js",
+ "public/js/vendor/view/uploadview.js",
+ "public/js/drag.js",
+ "public/js/nav.js",
+ "public/js/index.js",
+ ],
+ dest: 'public/js/app.concat.js'
+ },
+ },
+
+ uglify: {
+ options: {
+ },
+ index: {
+ src: 'public/js/app.concat.js',
+ dest: 'public/js/app.min.js'
+ },
+ },
+
+ clean: {
+ release: [
+ "dist/app.concat.js",
+ ],
+ },
+ });
+
+ // Load tasks that we'll be using
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-contrib-clean');
+ grunt.loadNpmTasks('grunt-dentist');
+
+ // Default task(s).
+ // grunt.registerTask('default', ['dentist', 'concat', 'uglify', 'copy', 'clean']);
+ grunt.registerTask('default', ['concat', 'uglify', 'clean']);
+};