From a93979f95ac296e3255b0c4911ee45cceb73e13a Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Fri, 29 Jan 2016 13:00:17 +0100 Subject: [PATCH] Add engines field in templateEngine --- CHANGELOG | 2 ++ js/server/modules/@arangodb/foxx/templateEngine.js | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index daebb2b06f..c23a1fa672 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -44,6 +44,8 @@ combine it with graph names. * fixed undefined behavior in AQL function `PARSE_IDENTIFIER` +* added "engines" field to Foxx services generated in the admin interface + * added AQL function `IS_SAME_COLLECTION`: *IS_SAME_COLLECTION(collection, document)*: Return true if *document* has the same diff --git a/js/server/modules/@arangodb/foxx/templateEngine.js b/js/server/modules/@arangodb/foxx/templateEngine.js index 2649a75b56..63d5e79a43 100644 --- a/js/server/modules/@arangodb/foxx/templateEngine.js +++ b/js/server/modules/@arangodb/foxx/templateEngine.js @@ -139,9 +139,12 @@ _.extend(Engine.prototype, { buildManifest: function() { var manifest = { name: this.name, - description: this.description, - author: this.author, version: '0.0.1', + description: this.description, + engines: { + arangodb: '^2.8.0' + }, + author: this.author, license: this.license, controllers: {}, scripts: {