Skip to content

Commit

Permalink
[web-ui-library] Fixing web ui build commands (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 4, 2024
1 parent 7fd4361 commit 7c99897
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 21 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- name: "Check styles linter"
run: "yarn lint:styles"

build-storybook:
build-docs:
name: "Test build Storybook"
runs-on: "${{ matrix.operating-system }}"

Expand Down Expand Up @@ -125,12 +125,12 @@ jobs:
run: "yarn workspace @fastybird/web-ui-docs build"

- name: "Test build"
run: "yarn storybook:build"
run: "yarn workspace @fastybird/web-ui-docs build"

publish-npmjs:
name: "Build library and publish it to NPM"
runs-on: "${{ matrix.operating-system }}"
needs: [ "qa", "lint", "build-storybook" ]
needs: [ "qa", "lint", "build-docs" ]

strategy:
matrix:
Expand Down Expand Up @@ -256,7 +256,7 @@ jobs:
publish-github:
name: "Build library and publish it to Github packages"
runs-on: "${{ matrix.operating-system }}"
needs: [ "qa", "lint", "build-storybook" ]
needs: [ "qa", "lint", "build-docs" ]

strategy:
matrix:
Expand Down Expand Up @@ -387,10 +387,10 @@ jobs:
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
publish-storybook:
publish-docs:
name: "Build Storybook and publish it to Github pages"
runs-on: "${{ matrix.operating-system }}"
needs: [ "qa", "lint", "build-storybook" ]
needs: [ "qa", "lint", "build-docs" ]

strategy:
matrix:
Expand Down
12 changes: 12 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"npmClient": "yarn",
"version": "1.0.0-dev.20",
"command": {
"version": {
"allowBranch": "main",
"conventionalCommits": true,
"message": "chore(release): publish"
}
}
}
24 changes: 21 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,28 @@
"url": "https://github.com/FastyBird/web-ui-library.git"
},
"workspaces": [
"./docs",
"./packages/*",
"./web-ui-library"
"docs",
"packages/**/*",
"web-ui-library"
],
"scripts": {
"dev": "lerna run dev --stream",
"build": "lerna run build --stream",
"build:dev": "lerna run build:dev --stream",
"clean": "lerna clean && rm -rf node_modules",
"bootstrap": "lerna bootstrap",
"fix": "lerna run fix",
"graph": "nx graph",
"types": "lerna run types --stream",
"lint:js": "lerna run lint:js --stream",
"lint:js:fix": "lerna run lint:js:fix --stream",
"lint:styles": "lerna run lint:styles --stream",
"playground": "lerna run dev --scope=@fastybird/web-ui-docs",
"pretty": "yarn pretty:write && yarn pretty:check",
"pretty:check": "lerna run pretty:check",
"pretty:write": "lerna run pretty:write",
"test": "yarn jest --coverage"
},
"devDependencies": {
"lerna": "^8.1"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@fastybird/web-ui-components",
"version": "1.0.0-dev.20",
"description": "FastyBird IoT application components",
"type": "module",
"description": "FastyBird IoT application UI components",
"homepage": "https://www.fastybird.com",
"bugs": "https://github.com/FastyBird/fastybird#issues",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/constants/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@fastybird/web-ui-constants",
"private": true,
"version": "1.0.0-dev.20",
"description": "FastyBird IoT application components constants",
"type": "module",
"description": "FastyBird IoT application UI constants",
"homepage": "https://www.fastybird.com",
"bugs": "https://github.com/FastyBird/fastybird#issues",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/directives/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@fastybird/web-ui-directives",
"private": true,
"version": "1.0.0-dev.20",
"description": "FastyBird IoT application components directives",
"type": "module",
"description": "FastyBird IoT application UI directives",
"homepage": "https://www.fastybird.com",
"bugs": "https://github.com/FastyBird/fastybird#issues",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@fastybird/web-ui-hooks",
"private": true,
"version": "1.0.0-dev.20",
"description": "FastyBird IoT application components hooks",
"type": "module",
"description": "FastyBird IoT application UI hooks",
"homepage": "https://www.fastybird.com",
"bugs": "https://github.com/FastyBird/fastybird#issues",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@fastybird/web-ui-icons",
"version": "1.0.0-dev.20",
"type": "module",
"description": "Fontawesome Icons implemented for FastyBird IoT application",
"description": "FontAwesome icons for FastyBird IoT application theme",
"keywords": [
"icon",
"svg",
Expand Down
4 changes: 2 additions & 2 deletions packages/locale/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@fastybird/web-ui-locale",
"private": true,
"version": "1.0.0-dev.20",
"description": "FastyBird IoT application localization",
"type": "module",
"description": "FastyBird IoT application UI localization",
"homepage": "https://www.fastybird.com",
"bugs": "https://github.com/FastyBird/fastybird#issues",
"license": "Apache-2.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/theme-chalk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@fastybird/web-ui-theme-chalk",
"version": "1.0.0-dev.20",
"description": "FastyBird IoT application component chalk theme",
"type": "module",
"description": "FastyBird IoT application UI components chalk theme",
"keywords": [
"vue-components",
"fastybird",
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@fastybird/web-ui-utils",
"version": "1.0.0-dev.20",
"description": "FastyBird IoT application components utils",
"type": "module",
"description": "FastyBird IoT application UI utilities",
"homepage": "https://www.fastybird.com",
"bugs": "https://github.com/FastyBird/fastybird#issues",
"license": "Apache-2.0",
Expand Down

0 comments on commit 7c99897

Please sign in to comment.