Skip to content

Commit

Permalink
ci: delete after test [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakutoc committed Mar 25, 2024
1 parent 3a40084 commit 5e1eede
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 40 deletions.
27 changes: 1 addition & 26 deletions .github/config-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,5 @@
"caldera",
"caldera-online",
"sdds-serv"
],
"meta": {
"caldera": ["caldera-online-themes", "plasma-new-hope"],
"caldera-online": ["caldera-online-themes", "plasma-new-hope"],
"plasma-asdk": ["plasma-tokens", "plasma-tokens-b2b", "plasma-typo", "plasma-themes"],
"plasma-b2c": [
"plasma-core",
"plasma-hope",
"plasma-new-hope",
"plasma-tokens-b2c",
"plasma-tokens-web",
"plasma-typo"
],
"plasma-new-hope": ["plasma-core"],
"plasma-ui": ["plasma-core", "plasma-typo"],
"plasma-web": [
"plasma-core",
"plasma-hope",
"plasma-new-hope",
"plasma-tokens-b2c",
"plasma-tokens-b2b",
"plasma-tokens-web",
"plasma-typo"
],
"sdds-serv": ["sdds-themes", "plasma-new-hope"]
}
]
}
21 changes: 7 additions & 14 deletions .github/get-lerna-scope.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
const CONFIG = require('./config-ci.json');
const META = require('./meta');

module.exports = () => {
const { PROCESSED_DATA, PACKAGE } = process.env;

const processedData = JSON.parse(PROCESSED_DATA);
const { meta } = CONFIG;

const deps = [...(meta[PACKAGE] || []), `${PACKAGE}-docs`];
const packageScope = META[PACKAGE].scope || [];
const requiredDeps = META[PACKAGE]['required-deps'] || [];

const scope = [
...processedData.filter((dep) => deps.includes(dep)),
PACKAGE,
'plasma-core',
'plasma-docs-ui',
'plasma-icons',
];
const deps = [...packageScope, `${PACKAGE}-docs`, 'plasma-icons'];

// INFO: Пока не починили медленный css build for b2c/web ставим plasma-new-hope
if (scope.includes('plasma-b2c') || scope.includes('plasma-web')) {
scope.push('plasma-new-hope');
}
const computedScope = processedData.filter((dep) => deps.includes(dep));

const scope = [...computedScope, ...requiredDeps, PACKAGE, 'plasma-docs-ui'];

// TODO: Как избавиться от этой зависимости
if (processedData.includes('plasma-tokens-native')) {
Expand Down
48 changes: 48 additions & 0 deletions .github/meta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module.exports = {
caldera: {
scope: ['caldera-online-themes', 'plasma-new-hope'],
'required-deps': [],
},
'caldera-online': {
scope: ['caldera-online-themes', 'plasma-new-hope'],
},
'plasma-asdk': {
scope: ['plasma-tokens', 'plasma-tokens-b2b', 'plasma-typo', 'plasma-themes'],
'required-deps': ['plasma-core'],
},
'plasma-b2c': {
scope: [
'plasma-core',
'plasma-hope',
'plasma-new-hope',
'plasma-tokens-b2c',
'plasma-tokens-web',
'plasma-typo',
],
'required-deps': ['plasma-new-hope'],
},
'plasma-new-hope': {
scope: ['plasma-core'],
'required-deps': [],
},
'plasma-ui': {
scope: ['plasma-core', 'plasma-typo'],
'required-deps': ['plasma-icons'],
},
'plasma-web': {
scope: [
'plasma-core',
'plasma-hope',
'plasma-new-hope',
'plasma-tokens-b2c',
'plasma-tokens-b2b',
'plasma-tokens-web',
'plasma-typo',
],
'required-deps': ['plasma-new-hope'],
},
'sdds-serv': {
scope: ['sdds-themes', 'plasma-new-hope'],
'required-deps': [],
},
};

0 comments on commit 5e1eede

Please sign in to comment.