import { join } from 'path' ; import { SeedConfig } from './seed.config' ; import { ExtendPackages } from './seed.config.interfaces' ; /**
 * This class extends the basic seed configuration, allowing for project specific overrides. A few examples can be found
 * below.
 */ export class ProjectConfig extends SeedConfig { PROJECT_TASKS_DIR = join ( process . cwd ( ) , this . TOOLS_DIR , 'tasks' , 'project' ) ; constructor ( ) { super ( ) ; this . APP_TITLE = '调查问卷管理系统' ; this . NPM_DEPENDENCIES = [ ... this . NPM_DEPENDENCIES ] ; this . APP_ASSETS = [ ... this . APP_ASSETS , { src : `${ this . CSS_SRC }/libs/bootstrap.min.css` , inject : true , vendor : false } ] ; let additionalPackages = [ { name : 'ng2-bootstrap' , path : 'node_modules/ng2-bootstrap/bundles/ng2-bootstrap.umd.min.js' } , { name : 'ng2-bootstrap/*' , path : 'node_modules/ng2-bootstrap/bundles/ng2-bootstrap.umd.min.js' } ] ; this . addPackagesBundles ( additionalPackages ) ; this . mergeObject ( this . SYSTEM_CONFIG_DEV . paths , { moment : 'node_modules/moment/moment.js' } ) ; } }