UNPKG

knighkit

Version:

knighkit 是自动化,模块开发,并支持自动打包,支持远程调试的前端开发框架。 目的是减少前端开发过程中的重复工作,使你更关注程序本身。

21 lines 855 B
/** * 管理读取配置文件 */ var path = require('path'); var configs = null; var rootPath = require('./runtime').rootPath; module.exports = function () { if (configs === null) { configs = require(path.resolve(rootPath, 'kConfig/configs')); } return { output: path.resolve(rootPath, configs.output), template: path.resolve(rootPath, configs.template), moduleTemplatePath: path.resolve(rootPath, configs.buildTemplate, './moduleTemplate.js'), moduleObject: path.resolve(rootPath, configs.buildTemplate, './moduleObject.js'), allModuleTemplate: path.resolve(rootPath, configs.buildTemplate, './allModuleTp.js'), testPage: path.resolve(rootPath, configs.buildTemplate, 'testPageTemplate.html'), css: path.resolve(rootPath, configs.cssOutput), configs: configs } };