[gnome-builder] meson-templates: use .tmpl suffix for .js files



commit bd533c36a5d9631464b31bb69b8eac178964d380
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 29 17:29:37 2018 -0800

    meson-templates: use .tmpl suffix for .js files
    
    This ensures that the GJS indexer doesn't try to index these files.

 src/plugins/meson-templates/meson-templates.gresource.xml             | 4 ++--
 src/plugins/meson-templates/meson_templates.py                        | 4 ++--
 src/plugins/meson-templates/resources/src/{main.js => main.js.tmpl}   | 0
 .../meson-templates/resources/src/{window.js => window.js.tmpl}       | 0
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/meson-templates/meson-templates.gresource.xml 
b/src/plugins/meson-templates/meson-templates.gresource.xml
index 589114552..594bce612 100644
--- a/src/plugins/meson-templates/meson-templates.gresource.xml
+++ b/src/plugins/meson-templates/meson-templates.gresource.xml
@@ -2,7 +2,7 @@
 <gresources>
   <gresource prefix="/org/gnome/builder/plugins/meson_templates">
     <file compressed="true">resources/src/window.ui</file>
-    <file compressed="true">resources/src/window.js</file>
+    <file compressed="true">resources/src/window.js.tmpl</file>
     <file compressed="true">resources/src/meson-py.build</file>
     <file compressed="true">resources/src/window.h</file>
     <file compressed="true">resources/src/hello.js.in</file>
@@ -15,7 +15,7 @@
     <file compressed="true">resources/src/meson-c-vala.build</file>
     <file compressed="true">resources/src/meson-empty.build</file>
     <file compressed="true">resources/src/gi_composites.py</file>
-    <file compressed="true">resources/src/main.js</file>
+    <file compressed="true">resources/src/main.js.tmpl</file>
     <file compressed="true">resources/src/main.c</file>
     <file compressed="true">resources/src/main.cpp</file>
     <file compressed="true">resources/src/hello.src.gresource.xml</file>
diff --git a/src/plugins/meson-templates/meson_templates.py b/src/plugins/meson-templates/meson_templates.py
index 280ee5906..6af435474 100644
--- a/src/plugins/meson-templates/meson_templates.py
+++ b/src/plugins/meson-templates/meson_templates.py
@@ -274,9 +274,9 @@ class GnomeProjectTemplate(MesonTemplate):
             files['resources/src/main.vala'] = 'src/main.vala'
             files['resources/src/window.vala'] = 'src/window.vala'
         elif self.language == 'javascript':
-            files['resources/src/main.js'] = 'src/main.js'
+            files['resources/src/main.js.tmpl'] = 'src/main.js'
             files['resources/src/hello.js.in'] = 'src/%(appid)s.in'
-            files['resources/src/window.js'] = 'src/window.js'
+            files['resources/src/window.js.tmpl'] = 'src/window.js'
             files['resources/src/hello.src.gresource.xml'] = 'src/%(appid)s.src.gresource.xml'
             resource_name = 'src/%(appid)s.data.gresource.xml'
             meson_file = 'resources/src/meson-js.build'
diff --git a/src/plugins/meson-templates/resources/src/main.js 
b/src/plugins/meson-templates/resources/src/main.js.tmpl
similarity index 100%
rename from src/plugins/meson-templates/resources/src/main.js
rename to src/plugins/meson-templates/resources/src/main.js.tmpl
diff --git a/src/plugins/meson-templates/resources/src/window.js 
b/src/plugins/meson-templates/resources/src/window.js.tmpl
similarity index 100%
rename from src/plugins/meson-templates/resources/src/window.js
rename to src/plugins/meson-templates/resources/src/window.js.tmpl


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]