Revert "feat: 🎸 Add feature editions (#1072)" (#1079)

This reverts commit 56d84d652b.
This commit is contained in:
Carlos Alcaide Corvo authored and GitHub committed 2022-04-28 12:14:27 -07:00
1 parent 56d84d652b
commit f71d01902a
3 files changed
+14 -26

No files matched your search

+2 -3
View File
@@ -13,9 +13,8 @@
]
},
"scripts": {
"build": "yarn build:ui:admin:oss",
"build:ui:admin:oss": "cd ui/admin && yarn build:oss",
"build:ui:admin:enterprise": "cd ui/admin && yarn build:enterprise",
"build": "yarn build:ui:admin",
"build:ui:admin": "cd ui/admin && yarn build",
"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",
+11 -20
View File
@@ -2,25 +2,6 @@
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 = {
@@ -110,7 +91,17 @@ module.exports = function (environment) {
directory: '../../addons/api/mirage',
},
featureFlags: featureEditions[EDITION],
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,
},
};
// Unsafe policy is necessary in development and test environments, but should
+1 -3
View File
@@ -12,9 +12,7 @@
"scripts": {
"doc:toc": "doctoc README.md",
"build:development": "ember build",
"build": "yarn build:oss",
"build:oss": "EDITION=oss ember build --environment=production",
"build:enterprise": "EDITION=enterprise ember build --environment=production",
"build": "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 .",