UNPKG

aurelia-view-manager

Version:

A view manager for aurelia plugins. Add support for overriding views, and multiple frameworks

37 lines (31 loc) 1.15 kB
var path = require('path'); var fs = require('fs'); // hide warning // var emitter = require('events'); emitter.defaultMaxListeners = 5; var appRoot = 'src/'; var pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8')); var paths = { root: appRoot, source: appRoot + '**/*.js', style: 'styles/**/*.css', output: 'dist/', doc:'./doc', test: 'test/**/*.js', exampleSource: 'doc/example/', exampleOutput: 'doc/example-dist/', packageName: pkg.name, ignore: [], useTypeScriptForDTS: false, importsToAdd: [], // eg. non-concated local imports in the main file as they will get removed during the build process importsToIgnoreForDts: [], // imports that are only used internally. no need to d.ts export them jsResources: [], // js to transpile, but not be concated and keeping their relative path resources: appRoot + '{**/*.css,**/*.html}', sort: true, concat: true }; // files to be traspiled (and concated if selected) paths.mainSource = [paths.source].concat(paths.jsResources.map(function(resource) {return '!' + resource;})); // files to be linted paths.lintSource = paths.source; module.exports = paths;