Ejemplo n.º 1
0
        protected async Task GenerateConstantsTemplateJs(CodeModelJs codeModel, GeneratorSettingsJs generatorSettings)
        {
            var ConstantsTemplate = new ConstantsTemplate {
                Model = codeModel
            };

            await Write(ConstantsTemplate, GetCoreSourceCodeFilePath(generatorSettings, "constants.js"));
        }
Ejemplo n.º 2
0
        private void TransformConstantsTemplate(SmartAppInfo manifest)
        {
            var template = new ConstantsTemplate(manifest);

            _writingService.WriteFile(Path.Combine(_context.BasePath, template.OutputPath), template.TransformText());
        }