nwb
Version:
A toolkit for React, Preact & Inferno apps, React libraries and other npm modules for the web, with no configuration (until you need it)
48 lines (38 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function getBaseConfig() {
return {};
}
function getDependencies() {
return [];
}
function getQuickConfig() {
return {
commandConfig: getBaseConfig(),
defaultTitle: 'Web App'
};
} // Vanilla JavaScript apps just use the default config for everything
var _default = args => ({
getName: () => 'Web',
getProjectDefaults: () => ({}),
getProjectDependencies: getDependencies,
getProjectQuestions: () => null,
getBuildDependencies: getDependencies,
getBuildConfig: getBaseConfig,
getServeConfig: getBaseConfig,
getQuickDependencies: getDependencies,
getQuickBuildConfig: getQuickConfig,
getQuickServeConfig() {
// Reload on unaccepted HMR changes by default; disable with --no-reload
if (args.reload !== false) {
args.reload = true;
}
return getQuickConfig();
},
getKarmaTestConfig: getBaseConfig
});
exports.default = _default;
module.exports = exports.default;