UNPKG

aurelia-aire

Version:
26 lines (21 loc) 656 B
module.paths.push(`${process.cwd()}/node_modules`); const fs = require('fs'), globalPaths = { assets: ['assets/**/*', 'src/**/*.json'], typescript: 'src/**/*.ts', pug: ['src/**/*.pug'], styles: ['themes/main.scss'], dest: 'dist', output: 'dist', }; const mergePaths = () => { let cwd = process.cwd(), localFilePath = `${cwd}/build/paths.js`, localFile = fs.lstatSync(localFilePath), contents = localFile && require(localFilePath); if (contents) { return Object.assign(globalPaths, contents); } return globalPaths; }; module.exports = mergePaths();