Speed up builds by cutting corners given config and env
This commit is contained in:
parent
feaae8da65
commit
be77e3d981
|
@ -1,5 +1,7 @@
|
||||||
/* eslint-env node */
|
/* eslint-env node */
|
||||||
|
|
||||||
|
const USE_MIRAGE = true;
|
||||||
|
|
||||||
module.exports = function(environment) {
|
module.exports = function(environment) {
|
||||||
var ENV = {
|
var ENV = {
|
||||||
modulePrefix: 'nomad-ui',
|
modulePrefix: 'nomad-ui',
|
||||||
|
@ -35,7 +37,8 @@ module.exports = function(environment) {
|
||||||
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
||||||
|
|
||||||
ENV['ember-cli-mirage'] = {
|
ENV['ember-cli-mirage'] = {
|
||||||
// enabled: false,
|
enabled: USE_MIRAGE,
|
||||||
|
excludeFilesFromBuild: !USE_MIRAGE,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ const EmberApp = require('ember-cli/lib/broccoli/ember-app');
|
||||||
|
|
||||||
const environment = EmberApp.env();
|
const environment = EmberApp.env();
|
||||||
const isProd = environment === 'production';
|
const isProd = environment === 'production';
|
||||||
|
const isTest = environment === 'test';
|
||||||
|
|
||||||
module.exports = function(defaults) {
|
module.exports = function(defaults) {
|
||||||
var app = new EmberApp(defaults, {
|
var app = new EmberApp(defaults, {
|
||||||
|
@ -25,6 +26,14 @@ module.exports = function(defaults) {
|
||||||
babel: {
|
babel: {
|
||||||
plugins: ['transform-object-rest-spread'],
|
plugins: ['transform-object-rest-spread'],
|
||||||
},
|
},
|
||||||
|
'ember-cli-babel': {
|
||||||
|
includePolyfill: isProd,
|
||||||
|
},
|
||||||
|
hinting: isTest,
|
||||||
|
tests: isTest,
|
||||||
|
sourcemaps: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// Use `app.import` to add additional libraries to the generated
|
// Use `app.import` to add additional libraries to the generated
|
||||||
|
|
Loading…
Reference in a new issue