config.js (1410B)
1 // list of folders from where .js files are compiled and non-js files are symlinked 2 const dirs = [ 3 'chrome', 4 'components', 5 'defaults', 6 'resource', 7 'resource/web-library', 8 'test', 9 'test/resource/chai', 10 'test/resource/chai-as-promised', 11 'test/resource/mocha' 12 ]; 13 14 // list of folders from which all files are symlinked 15 const symlinkDirs = [ 16 'resource/tinymce', 17 'styles', 18 'translators' 19 ]; 20 21 // list of folders which are copied to the build folder 22 const copyDirs = [ 23 'test/tests/data' // browser follows symlinks when loading test data 24 // triggering false-positive test results with mismatched URIs 25 ]; 26 27 // list of files from root folder to symlink 28 const symlinkFiles = [ 29 'chrome.manifest', 'install.rdf', 'update.rdf' 30 ]; 31 32 33 // these files will be browserified during the build 34 const browserifyConfigs = [ 35 { 36 src: 'node_modules/sinon/lib/sinon.js', 37 dest: 'test/resource/sinon.js', 38 config: { 39 standalone: 'sinon' 40 } 41 }, 42 { 43 src: 'node_modules/chai-as-promised/lib/chai-as-promised.js', 44 dest: 'test/resource/chai-as-promised.js', 45 config: { 46 standalone: 'chaiAsPromised' 47 } 48 } 49 ]; 50 51 // exclude mask used for js, copy, symlink and sass tasks 52 const ignoreMask = ['**/#*']; 53 54 const jsFiles = [ 55 `{${dirs.join(',')}}/**/*.js`, 56 `!{${symlinkDirs.concat(copyDirs).join(',')}}/**/*.js` 57 ]; 58 59 module.exports = { 60 dirs, symlinkDirs, copyDirs, symlinkFiles, browserifyConfigs, jsFiles, ignoreMask 61 };