mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
* Add lite-serve with VSCode launcher * Make lite-serve smarter to work with Basic authtype as well * Change and unify app-config-replace script
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
/*
|
|
* Copyright 2005-2019 Alfresco Software, Ltd. All rights reserved.
|
|
*
|
|
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
|
* pursuant to a written agreement and any use of this program without such an
|
|
* agreement is prohibited.
|
|
*/
|
|
|
|
import * as angularJson from 'angular.json';
|
|
|
|
export const getApps = () => {
|
|
return Object.keys(angularJson.projects)
|
|
.map((projectName) => ({ name: projectName, ...angularJson.projects[projectName] }))
|
|
.filter((project) => project.projectType === 'application')
|
|
.filter((project) => project.name.indexOf('e2e') === -1);
|
|
};
|
|
|
|
export const getE2Es = () => {
|
|
return Object.keys(angularJson.projects)
|
|
.map((projectName) => ({ name: projectName, ...angularJson.projects[projectName] }))
|
|
.filter((project) => project.projectType === 'application')
|
|
.filter((project) => project.name.endsWith('-e2e'));
|
|
};
|
|
|
|
export const getLibs = () => {
|
|
return Object.keys(angularJson.projects)
|
|
.map((projectName) => ({ name: projectName, ...angularJson.projects[projectName] }))
|
|
.filter((project) => project.projectType === 'library');
|
|
};
|