Skip to content

Commit

Permalink
Release by 11.07.2024 (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakutoc authored Jul 11, 2024
2 parents 59f73cd + 7075f85 commit 5f65db1
Show file tree
Hide file tree
Showing 906 changed files with 133,466 additions and 174,081 deletions.
23 changes: 16 additions & 7 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,25 @@ const plugins = [
'@babel/plugin-proposal-class-properties',
'babel-plugin-annotate-pure-calls',
'@babel/plugin-transform-react-constant-elements',
[
'babel-plugin-styled-components',
{
displayName: false,
namespace,
},
],
];
const ignore = ['**/*.d.ts', '**/helpers', '**/__helpers', '**/*.stories.tsx'];

process.env.EMOTION
? plugins.push([
'@emotion/babel-plugin',
{
autoLabel: 'always',
labelFormat: `${namespace}__[local]`,
},
])
: plugins.push([
'babel-plugin-styled-components',
{
displayName: false,
namespace,
},
]);

process.env.COVERAGE && plugins.push(['babel-plugin-istanbul']);

module.exports = {
Expand Down
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ packages/plasma-asdk/*
packages/sdds-serv/*
!packages/sdds-serv/src

packages/sdds-dfa/*
!packages/sdds-dfa/src

packages/caldera-online/*
!packages/caldera-online/src

Expand Down
3 changes: 2 additions & 1 deletion .github/config-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"plasma-new-hope",
"plasma-asdk",
"caldera-online",
"sdds-serv"
"sdds-serv",
"sdds-dfa"
]
}
2 changes: 1 addition & 1 deletion .github/get-lerna-scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = () => {
}

if (scope.has(packageTheme)) {
scope.add('data-themes');
scope.add('core-themes');
scope.add('plasma-typo');
}

Expand Down
5 changes: 5 additions & 0 deletions .github/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ module.exports = {
required: ['plasma-core'],
themes: 'sdds-themes',
},
'sdds-dfa': {
scope: [...commonScope, 'sdds-themes', 'plasma-new-hope'],
required: ['plasma-core'],
themes: 'sdds-themes',
},
};
33 changes: 33 additions & 0 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ESLint

on:
merge_group:
pull_request:
branches:
- dev
- master

concurrency:
# New commit on branch cancels running workflows of the same branch
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false

- name: Prepare environment
uses: ./.github/actions/prepare-environment

# INFO: Для корректной работы ESLint не нужно build typings, etc.
# INFO: Только установить пакеты и сделать symlink
- name: Lerna bootstrap
run: npx lerna bootstrap --ignore-scripts

- name: Lint
run: npm run lint
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Required primary checks
name: Unit tests

on:
merge_group:
pull_request:
branches:
- dev
Expand All @@ -13,35 +12,16 @@ concurrency:
cancel-in-progress: true

env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
LERNA_IGNORE_LIST: "@salutejs/plasma-{cy-utils,sb-utils}"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
show-progress: false

- name: Prepare environment
uses: ./.github/actions/prepare-environment

- name: Lerna bootstrap
run: npx lerna bootstrap

- name: Lint
run: npm run lint

tests:
name: Unit Tests
run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false

- name: Prepare environment
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/documentation-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ jobs:
run: |
npm run build --prefix="./website/sdds-serv-docs"
cp -R ./website/sdds-serv-docs/build ./s3_build/next-${{ github.sha }}/sdds-serv
- name: SDDS-DFA Docs
run: |
npm run build --prefix="./website/sdds-dfa-docs"
cp -R ./website/sdds-dfa-docs/build ./s3_build/next-${{ github.sha }}/sdds-dfa
- name: CALDERA-ONLINE Docs
run: |
Expand Down Expand Up @@ -97,6 +102,11 @@ jobs:
run: |
npm run storybook:build --prefix="./packages/sdds-serv"
cp -R ./packages/sdds-serv/build-sb ./s3_build_sb/sdds-serv-storybook
- name: Plasma "SDDS DFA" Storybook
run: |
npm run storybook:build --prefix="./packages/sdds-dfa"
cp -R ./packages/sdds-dfa/build-sb ./s3_build_sb/sdds-dfa-storybook
- name: Install s3cmd
run: pip3 install s3cmd
Expand Down Expand Up @@ -220,3 +230,18 @@ jobs:
sync
./s3_build_sb/sdds-serv-storybook/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/sdds-serv-storybook/
- name: Upload to S3 storybook "SDDS DFA"
run: >
s3cmd
--access_key ${{ secrets.AWS_ACCESS_KEY_ID }}
--secret_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
--host ${{ secrets.AWS_ENDPOINT }}
--host-bucket ${{ secrets.AWS_ENDPOINT }}
--bucket-location ${{ secrets.AWS_REGION }}
--signature-v2
--delete-removed
--no-mime-magic
sync
./s3_build_sb/sdds-dfa-storybook/
s3://${{ secrets.AWS_S3_BUCKET_2 }}/sdds-dfa-storybook/
10 changes: 10 additions & 0 deletions .github/workflows/documentation-deploy-stage-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ jobs:
npm run build --prefix="./website/sdds-serv-docs"
cp -R ./website/sdds-serv-docs/build ./s3_build/sdds-serv
- name: SDDS DFA Docs
run: |
npm run build --prefix="./website/sdds-dfa-docs"
cp -R ./website/sdds-dfa-docs/build ./s3_build/sdds-dfa
- name: CALDERA-ONLINE Docs
run: |
npm run build --prefix="./website/caldera-online-docs"
Expand Down Expand Up @@ -83,6 +88,11 @@ jobs:
npm run storybook:build --prefix="./packages/sdds-serv"
cp -R ./packages/sdds-serv/build-sb ./s3_build/sdds-serv-storybook
- name: Plasma "SDDS DFA" Storybook
run: |
npm run storybook:build --prefix="./packages/sdds-dfa"
cp -R ./packages/sdds-dfa/build-sb ./s3_build/sdds-dfa-storybook
- name: Install s3cmd
run: pip3 install s3cmd

Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/documentation-deploy-stage-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
npm run build --prefix="./website/sdds-serv-docs"
cp -R ./website/sdds-serv-docs/build ./s3_build/next-${{ github.sha }}/sdds-serv
- name: Plasma SDDS DFA Docs
run: |
npm run build --prefix="./website/sdds-dfa-docs"
cp -R ./website/sdds-dfa-docs/build ./s3_build/next-${{ github.sha }}/sdds-dfa
- name: Plasma UI Storybook
run: |
npm run storybook:build --prefix="./packages/plasma-ui"
Expand Down Expand Up @@ -81,6 +86,11 @@ jobs:
npm run storybook:build --prefix="./packages/sdds-serv"
cp -R ./packages/sdds-serv/build-sb ./s3_build_sb/sdds-serv-storybook
- name: Plasma "SDDS DFA" Storybook
run: |
npm run storybook:build --prefix="./packages/sdds-dfa"
cp -R ./packages/sdds-dfa/build-sb ./s3_build_sb/sdds-dfa-storybook
- name: Install s3cmd
run: pip3 install s3cmd

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/documentation-pull-request-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ jobs:
run: |
npm run storybook:build --prefix="./packages/sdds-serv"
cp -R ./packages/sdds-serv/build-sb ./s3_build/${PR_NAME}/sdds-serv-storybook
- name: Plasma "SDDS DFA" Storybook
run: |
npm run storybook:build --prefix="./packages/sdds-dfa"
cp -R ./packages/sdds-dfa/build-sb ./s3_build/${PR_NAME}/sdds-dfa-storybook
- name: Install s3cmd
run: pip3 install s3cmd
Expand Down Expand Up @@ -131,5 +136,6 @@ jobs:
asdk storybook: http://plasma.sberdevices.ru/pr/pr-${number}/asdk-storybook/
caldera-online storybook: http://plasma.sberdevices.ru/pr/pr-${number}/caldera-online-storybook/
sdds-serv storybook: http://plasma.sberdevices.ru/pr/pr-${number}/sdds-serv-storybook/
sdds-dfa storybook: http://plasma.sberdevices.ru/pr/pr-${number}/sdds-dfa-storybook/
`
});
2 changes: 1 addition & 1 deletion .github/workflows/typescript-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Typescript coverage

on:
merge_group:
pull_request:
branches:
- master
Expand All @@ -21,6 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false

- name: Prepare environment
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ packages/plasma-hope/api/
packages/plasma-core/api/
packages/plasma-asdk/api/
packages/sdds-serv/api/
packages/sdds-dfa/api/
packages/caldera-online/api/

utils/plasma-cy-utils/lib
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"author": "Salute Frontend Team <[email protected]>",
"license": "MIT",
"scripts": {
"scaffold:update-components-docs": "npm run scaffold:components",
"scaffold:docs": "simple-scaffold -c scaffold/scaffold-config.js --name $npm_config_package",
"scaffold:components": "node scaffold/scaffold-components.js",
"scaffold:update-docs-ui": "node scaffold/update-docs-ui.js && npm i --no-audit --no-progress --package-lock-only --lockfile-version 2 --legacy-peer-deps --prefix=$npm_config_dir",
Expand Down
Loading

0 comments on commit 5f65db1

Please sign in to comment.