UNPKG

generator-confit

Version:

Yeoman generator for creating the development process, tools and a sample project for current-generation web applications

34 lines (27 loc) 655 B
'use strict'; module.exports = function() { return { configure, write, }; }; /** * @this generator */ function configure() { if (!this.answers.entryPoints) { this.answers.entryPoints = {}; } if (!this.answers.entryPoints.main) { let config = this.getGlobalConfig(); this.answers.entryPoints.main = [config.paths.input.srcDir + this.getResources().entryPoint.defaults.entryPoint[config.buildJS.sourceFormat]]; } } /** * @this generator */ function write() { this.log('Writing NPM entryPoint options'); let toolResources = this.buildTool.getResources().entryPoint; this.writeBuildToolConfig(toolResources); }