UNPKG

generator-nitro

Version:

Yeoman generator for the nitro frontend framework

56 lines (51 loc) 1.21 kB
'use strict'; /** * Main Project Config * see '/project/docs/nitro-config.md' */ const extend = require('extend'); const baseConfig = require('@nitro/app/app/core/config'); const defaultConfig = { code: { validation: { htmllint: { // enabling this live validation slows down rendering live: false, }, jsonSchema: { live: true, logMissingSchemaAsError: false, logMissingSchemaAsWarning: true, }, }, }, nitro: { viewFileExtension: '<%= options.viewExt %>', templateEngine: '<%= options.templateEngine %>', patterns: require('./default/patterns'), mode: { livereload: true, }, watch: { partials: true, delay: 1000, }, }, server: { port: 8080, hmrPort: 3000, // hostname: 'localhost', }, gulp: require('./default/gulp'), feature: { i18next: { middlewareOptions: { ignoreRoutes: ['api/', 'assets/', 'dist/', 'content/'], }, }, },<% if (options.exporter) { %> exporter: require('./default/exporter'),<% } %><% if (options.themes) { %> themes: require('./default/themes'),<% } %> }; const config = extend(true, {}, baseConfig, defaultConfig); module.exports = config;