client/gruntfile.js
changeset 647 eaaa1efce396
parent 600 e12243191095
child 651 fd209e3af0c7
--- a/client/gruntfile.js	Tue Oct 04 16:40:25 2016 +0200
+++ b/client/gruntfile.js	Thu Jan 05 16:26:07 2017 +0100
@@ -41,7 +41,7 @@
                         underscore: "empty:",
                         filesaver: "empty:",
                         'ckeditor-core': "empty:",
-                        'screenfull': "empty:"
+                        screenfull: "empty:"
                     },
                     include: [ "jquery-private"],
                 }
@@ -54,9 +54,20 @@
                     //amd: true
                 },
                 files: {
-                    "dist/js/templates.js": ["templates/**/*.html"]
+                    "dist/js/templates.js": ["templates/**/*.html"],
+                }
+            },
+            compile_test: {
+                options: {
+                    namespace: 'renkanJSTTest',
+                    //amd: true
+                },
+                files: {
+                    "data/templates/youtube_template.js": ["test/templates/youtube_template.html"],
+                    "data/templates/audio_template.js": ["test/templates/audio_template.html"]
                 }
             }
+
         },
         uglify: {
             options: {
@@ -221,8 +232,8 @@
                 tasks: ['cssmin', 'copy:renkan_css'],
             },
             js: {
-                files: ['js/**/*.js', 'templates/**/*.html'],
-                tasks: ['jshint', 'requirejs', 'jst', 'concat', 'uglify', 'copy:renkan', 'clean:renderer'],
+                files: ['js/**/*.js', 'templates/**/*.html', 'test/templates/*.html'],
+                tasks: ['jshint', 'requirejs', 'jst:compile', 'jst:compile_test', 'concat', 'uglify', 'copy:renkan', 'clean:renderer'],
             },
             lib: {
                 files: ['bower.json'],
@@ -340,7 +351,8 @@
         'copy:vendors',
         'clean:renkan',
         'requirejs',
-        'jst',
+        'jst:compile',
+        'jst:compile_test',
         'concat',
         'uglify',
         'cssmin',