function copyOnly(mid) { return (/test/.test(mid) && mid !== 'dgrid/test/data/perf') || mid in { // There are no modules right now in dojo boilerplate that are copy-only. If you have some, though, just add // them here like this: // 'app/module': 1 }; } var profile = { basePath: './', releaseDir: "./release/dgrid", packages: [ 'dojo', 'dijit', { name: "dgrid", resourceTags: { // Files that contain test code. test: function (filename, mid) { // any filename that has test anywhere in its path will be considered a test return copyOnly(mid); }, // Files that should be copied as-is without being modified by the build system. copyOnly: function (filename, mid) { return copyOnly(mid); }, // Files that are AMD modules. amd: function (filename, mid) { return !copyOnly(mid) && /\.js$/.test(filename); } } }, { name: "xstyle", resourceTags: { // Files that contain test code. test: function (filename, mid) { return copyOnly(mid); }, // Files that should be copied as-is without being modified by the build system. copyOnly: function (filename, mid) { return copyOnly(mid); }, // Files that are AMD modules. amd: function (filename, mid) { return !copyOnly(mid) && /\.js$/.test(filename); } } }, { name: "put-selector", resourceTags: { // Files that contain test code. test: function (filename, mid) { return copyOnly(mid); }, // Files that should be copied as-is without being modified by the build system. copyOnly: function (filename, mid) { return copyOnly(mid); }, // Files that are AMD modules. amd: function (filename, mid) { return !copyOnly(mid) && /\.js$/.test(filename); } } } ], cssOptimize: 'comments', // include the tests for now mini: false, optimize: 'closure', stripConsole: 'all', selectorEngine: 'lite', layers: { 'dojo/dojo': { include: ['dojo/dojo', 'dojo/domReady', 'dojo/_base/declare'], boot: true, customBase: true }, 'dgrid/dgrid': { include: ["dgrid/List", "dgrid/OnDemandGrid", "dgrid/Selection", "dgrid/Keyboard", "dgrid/test/data/perf"] } }, staticHasFeatures: { // The trace & log APIs are used for debugging the loader, so we don’t need them in the build 'dojo-trace-api': 0, 'dojo-log-api': 0, // This causes normally private loader data to be exposed for debugging, so we don’t need that either 'dojo-publish-privates': 0, // We’re fully async, so get rid of the legacy loader 'dojo-sync-loader': 0, // We aren’t loading tests in production 'dojo-test-sniff': 0 } };