Skip to content

Commit

Permalink
Add back addon docs config
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Jan 16, 2024
1 parent 52ab2f3 commit 5ef1d1c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test-app/config/addon-docs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

const AddonDocsConfig = require('ember-cli-addon-docs/lib/config');

module.exports = class extends AddonDocsConfig {
// See https://ember-learn.github.io/ember-cli-addon-docs/docs/deploying
// for details on configuration you can override here.
};
27 changes: 27 additions & 0 deletions test-app/config/deploy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
'use strict';

module.exports = function (deployTarget) {
let ENV = {
build: {},
};

if (deployTarget === 'development') {
ENV.build.environment = 'development';
// configure other plugins for development deploy target here
}

if (deployTarget === 'staging') {
ENV.build.environment = 'production';
// configure other plugins for staging deploy target here
}

if (deployTarget === 'production') {
ENV.build.environment = 'production';
// configure other plugins for production deploy target here
}

// Note: if you need to build some configuration asynchronously, you can return
// a promise that resolves with the ENV object instead of returning the
// ENV object synchronously.
return ENV;
};

0 comments on commit 5ef1d1c

Please sign in to comment.