writeProjectConfigFile () { var configJson = { 'projectName': this.options.projectName, 'qtyScreens': this.options.qtyScreens, 'markupLanguage': this.options.markupLanguage, 'frontEndFramework': this.options.frontEndFramework, 'jQuery': this.options.jQuery || this.options.frontEndFramework, 'generatedBy': 'Pixel2HTML', 'generatorVersion': pkg.version, 'generatedAt': new Date(), } this.fs.writeJSON('./.project.conf', configJson) }
writeHtmlFiles () { if (this.options.markupLanguage === 'html') { for (var i = 1; i < this.options.qtyScreens + 1; i++) { const filePath = i === 1 ? '/index.html' : '/screen-' + i + '.' + this.options.markupLanguage this.fs.copyTpl( this.templatePath('markup/_screen.' + this.options.markupLanguage + '.ejs'), this.destinationPath(this.paths.src.markup + filePath), { screenNumber: i, projectName: this.options.projectName, frontEndFramework: this.options.frontEndFramework, jQuery: this.options.jQuery } ) } } }
for (var i = 1; i < this.options.qtyScreens + 1; i++) { this.fs.copyTpl( this.templatePath('styles/main/screens/_screen.scss'), screenNumber: i, projectName: this.options.projectName, qtyScreens: this.options.qtyScreens, frontEndFramework: this.options.frontEndFramework
frontEndFramework: this.options.frontEndFramework, jQuery: this.options.jQuery, qtyScreens: this.options.qtyScreens, markupLanguage: this.options.markupLanguage, now: new Date(),
writePugFiles () { if (this.options.markupLanguage === 'pug') { for (var i = 1; i < this.options.qtyScreens + 1; i++) { const filePath = i === 1 ? 'index.pug'