feat: 🎸 Add feature editions (#1094)

* feat: 🎸 Add feature editions
This commit is contained in:
Carlos Alcaide Corvo authored and GitHub committed 2022-05-05 07:42:02 -07:00
1 parent eb36cde137
commit 5e2c6ca0fd
3 files changed
+24 -11

No files matched your search

+2
View File
@@ -15,6 +15,8 @@
"scripts": {
"build": "yarn build:ui:admin",
"build:ui:admin": "cd ui/admin && yarn build",
"build:ui:admin:oss": "cd ui/admin && yarn build:oss",
"build:ui:admin:enterprise": "cd ui/admin && yarn build:enterprise",
"build:ui:desktop": "cd ui/desktop && yarn build",
"build:ui:desktop:win": "docker-compose -f docker-compose-embedding.yml run build-desktop-production && yarn build:ui:desktop:app",
"build:ui:desktop:production": "cd ui/desktop && yarn build:production",
+20 -11
View File
@@ -2,6 +2,25 @@
const APP_NAME = process.env.APP_NAME || 'Boundary';
const API_HOST = process.env.API_HOST || '';
const EDITION = process.env.EDITION || 'oss'; // Default edition is OSS
// Object that defines edition features.
const featureEditions = {
oss: {
'primary-auth-method': true,
oidc: true,
'oidc-crud': true,
'oidc-account-crud': true,
search: false,
filter: true,
'credential-store': true,
'managed-groups': true,
},
};
featureEditions.enterprise = {
...featureEditions.oss,
'ssh-target': true,
};
module.exports = function (environment) {
let ENV = {
@@ -91,17 +110,7 @@ module.exports = function (environment) {
directory: '../../addons/api/mirage',
},
featureFlags: {
'primary-auth-method': true,
oidc: true,
'oidc-crud': true,
'oidc-account-crud': true,
search: false,
filter: true,
'credential-store': true,
'managed-groups': true,
'ssh-target': false,
},
featureFlags: featureEditions[EDITION],
};
// Unsafe policy is necessary in development and test environments, but should
+2
View File
@@ -13,6 +13,8 @@
"doc:toc": "doctoc README.md",
"build:development": "ember build",
"build": "ember build --environment=production",
"build:oss": "EDITION=oss ember build --environment=production",
"build:enterprise": "EDITION=enterprise ember build --environment=production",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel 'lint:!(fix)'",
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
"lint:hbs": "ember-template-lint .",