Skip to content

Commit

Permalink
chore: remove Lerna
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <[email protected]>
  • Loading branch information
olexii4 committed Oct 17, 2024
1 parent 2a6edc5 commit 472d93f
Show file tree
Hide file tree
Showing 6 changed files with 269 additions and 6,937 deletions.
1 change: 0 additions & 1 deletion build/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ RUN if ! [ type "yarn" &> /dev/null ]; then \

COPY package.json /dashboard/
COPY yarn.lock /dashboard/
COPY lerna.json /dashboard/
COPY tsconfig.json /dashboard/

ENV COMMON=packages/common
Expand Down
9 changes: 0 additions & 9 deletions lerna.json

This file was deleted.

36 changes: 16 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,24 @@
},
"license": "EPL-2.0",
"scripts": {
"build": "yarn prebuild && lerna run build --scope=@eclipse-che/dashboard-\\* --concurrency 1",
"build:dev": "yarn prebuild && lerna run build:dev --scope=@eclipse-che/dashboard-\\*",
"prebuild": "lerna run build --scope=@eclipse-che/common",
"prebuild:dev": "yarn prebuild",
"build": "yarn wrksps build",
"build:dev": "yarn wrksps build:dev",
"frontend:start": "yarn workspace @eclipse-che/dashboard-frontend start",
"start": "${PWD}/run/local-run.sh $@",
"start:prepare": "${PWD}/run/prepare-local-run.sh",
"start:cleanup": "${PWD}/run/revert-local-run.sh",
"license:check": "${PWD}/scripts/container_tool.sh run --rm -t -v ${PWD}/:/workspace/project quay.io/che-incubator/dash-licenses:next --check",
"license:generate": "${PWD}/scripts/container_tool.sh run --rm -t -v ${PWD}/:/workspace/project quay.io/che-incubator/dash-licenses:next",
"test": "yarn run pretest && lerna run test --stream -- --no-cache $@",
"start": "$PWD/run/local-run.sh $@",
"start:prepare": "$PWD/run/prepare-local-run.sh",
"start:cleanup": "$PWD/run/revert-local-run.sh",
"license:check": "$PWD/scripts/container_tool.sh run --rm -t -v $PWD/:/workspace/project quay.io/che-incubator/dash-licenses:next --check",
"license:generate": "$PWD/scripts/container_tool.sh run --rm -t -v $PWD/:/workspace/project quay.io/che-incubator/dash-licenses:next",
"test": "yarn run pretest && yarn wrksps test",
"test:check": "yarn run pretest && yarn workspace @eclipse-che/dashboard-frontend test --config=jest.config.check.js",
"pretest": "yarn run prebuild",
"test:coverage": "yarn run test -- --coverage",
"format:check": "lerna run format:check",
"format:fix": "lerna run --stream format:fix",
"lint:check": "lerna run lint:check",
"lint:fix": "lerna run --stream lint:fix",
"patch": "${PWD}/run/patch.sh $@"
},
"devDependencies": {
"lerna": "^6"
"pretest": "yarn workspace @eclipse-che/common run build",
"test:coverage": "yarn wrksps test --coverage",
"format:check": "yarn wrksps format:check",
"format:fix": "yarn wrksps format:fix",
"lint:check": "yarn wrksps lint:check",
"lint:fix": "yarn wrksps lint:fix",
"patch": "$PWD/run/patch.sh $@",
"wrksps": "$PWD/run/wrksps.sh $*"
},
"resolutions": {
"@adobe/css-tools": "^4.3.2",
Expand Down
15 changes: 15 additions & 0 deletions run/wrksps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
#
# Copyright (c) 2021-2024 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#

set -e

yarn workspace @eclipse-che/common "$@"
yarn workspace @eclipse-che/dashboard-frontend "$@"
yarn workspace @eclipse-che/dashboard-backend "$@"
Loading

0 comments on commit 472d93f

Please sign in to comment.