UNPKG

nodefony

Version:
139 lines (131 loc) 3.44 kB
{% if packageName == "app" %} /** * NODEFONY APP CONFIG * * @here You can OVERRIDE all Bundles Configurations */ const path = require("path"); const dirConfig = path.resolve(__dirname, "nodefony"); module.exports = { locale: "en_en", type : "{{ front }}", App: { projectYear: {{year}}, locale: "en_en", authorName: "{{authorFullName}}", authorMail: "{{authorMail}}", }, lang: { en_en: "english", fr_fr: "français" }, /** * WATCHERS * * watchers Listen to changes, deletion, renaming of files and directories * of different components * * For watch all components * watch: true * or * watch : { * controllers: true, * config: true, // only routing and services * views: true, * translations: true, * webpack: true * } * */ {% if front == "vue" %} watch: { controllers: true, config: true, translations: true, views: true, webpack: true }, {% else %} watch: false, {% endif %} /** * DEV SERVER */ devServer: { {% if front == "vue" %} hot: true {% else %} hot: false {% endif %} }, /* * OVERRIDE BUNDLES CONFIG */ "http-bundle": require(path.resolve(dirConfig, "http-bundle.js")), "monitoring-bundle": require(path.resolve(dirConfig, "monitoring-bundle.js")), "security-bundle": require(path.resolve(dirConfig, "security-bundle.js")), "framework-bundle": require(path.resolve(dirConfig, "framework-bundle.js")), "sequelize-bundle": require(path.resolve(dirConfig, "sequelize-bundle.js")), "mongoose-bundle": require(path.resolve(dirConfig, "mongoose-bundle.js")), "mail-bundle": require(path.resolve(dirConfig, "mail-bundle.js")), "redis-bundle": require(path.resolve(dirConfig, "redis-bundle.js")), "elastic-bundle": require(path.resolve(dirConfig, "elastic-bundle.js")), "realtime-bundle": require(path.resolve(dirConfig, "realtime-bundle.js")) }; {% else %} /** * * * {{projectName}} CONFIG BUNDLE {{ bundleName }} * * =============================================================================== * * Copyright © {{ projectYear }}/{{ projectYearNow }} {{authorName}} | {{authorEmail}} * * =============================================================================== * * GENERATE BY {{projectName}} BUILDER */ module.exports = { type : "{{ front }}", locale : "{{ local }}", /** * WATCHERS * * watchers Listen to changes, deletion, renaming of files and directories * of different components * * For watch all components * watch: true * or * watch:{ * controller: true, * config: true, // only routing and services * views: true, * translations: true, * webpack: true * } * */ watch: true, /** * DEV SERVER */ devServer: { {% if front == "vue" %} hot: true {% else %} hot: false {% endif %} } /** * * Insert here the bundle-specific configurations * * You can also override config of another bundle * with the name of the bundle * * example : create an other database connector */ }; {% endif %}