Skip to content

Commit

Permalink
refactor: update build
Browse files Browse the repository at this point in the history
  • Loading branch information
core-ds-bot committed Dec 23, 2024
1 parent 960951e commit 17906e7
Show file tree
Hide file tree
Showing 13 changed files with 503 additions and 1,095 deletions.
6 changes: 3 additions & 3 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ lerna exec \
-- "$copy_css"

# собираю пакет themes
lerna exec --scope @alfalab/core-components-themes -- node $(pwd)/bin/build-themes.js
# lerna exec --scope @alfalab/core-components-themes -- node $(pwd)/bin/build-themes.js

# экспорт CSS-переменных в JS-переменные
lerna exec --scope @alfalab/core-components-vars -- node $(pwd)/bin/export-css-custom-properties-as-js-vars.js
# lerna exec --scope @alfalab/core-components-vars -- node $(pwd)/bin/export-css-custom-properties-as-js-vars.js

# собираю все подпакеты с компонентами
lerna exec --concurrency $CONCURRENCY \
--ignore @alfalab/core-components-codemod \
--scope @alfalab/core-components-button \
-- $(pwd)/bin/rollup.sh

# копирую package.json в сборку корневого пакета
Expand Down
4 changes: 4 additions & 0 deletions bin/rollup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

echo "Building $(pwd)"

ROLLUP_CONFIG_PATH="rollup.config.mjs"
rollup -c ${LERNA_ROOT_PATH}/${ROLLUP_CONFIG_PATH} --silent

echo "Build $(pwd) done"
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,12 @@
"ui-primitives": "^22.7.0"
},
"devDependencies": {
"@alfalab/rollup-plugin-postcss": "^3.6.1",
"@changesets/cli": "^2.25.0",
"@changesets/get-github-info": "^0.5.1",
"@commitlint/config-conventional": "^17.3.0",
"@commitlint/config-lerna-scopes": "^17.2.1",
"@oat-sa/rollup-plugin-wildcard-external": "^0.1.0",
"@rollup/plugin-json": "^5.0.2",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-typescript": "^12.1.2",
"@storybook/addon-a11y": "^7.6.2",
"@storybook/addon-docs": "^7.6.2",
"@storybook/addon-knobs": "^7.0.2",
Expand Down Expand Up @@ -173,7 +172,6 @@
"jest-image-snapshot": "^6.1.0",
"json": "^10.0.0",
"lerna": "^6.1.0",
"levenary": "^1.1.1",
"lint-staged": "^12.5.0",
"mini-css-extract-plugin": "^2.7.5",
"playwright": "^1.33.0",
Expand All @@ -185,6 +183,7 @@
"postcss-for": "^2.1.1",
"postcss-import": "^12.0.1",
"postcss-mixins": "^6.2.3",
"postcss-modules": "^6.0.1",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.7.1",
"purgecss": "^2.2.1",
Expand All @@ -195,10 +194,10 @@
"react-github-btn": "^1.2.0",
"react-scripts": "^5.0.1",
"rimraf": "^3.0.2",
"rollup": "^3.19.1",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-multi-input": "^1.3.1",
"rollup-plugin-ts": "^3.0.2",
"rollup": "^4.29.1",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-multi-input": "^1.5.0",
"rollup-pluginutils": "^2.8.2",
"shelljs": "^0.8.5",
"standard-version": "^8.0.0",
"storybook": "^7.6.2",
Expand Down
Loading

0 comments on commit 17906e7

Please sign in to comment.