Skip to content

Commit

Permalink
chore: remove redoc-cli (Redocly#2320)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVarchuk authored May 18, 2023
1 parent 874b0d6 commit d1c9155
Show file tree
Hide file tree
Showing 20 changed files with 7 additions and 6,533 deletions.
7 changes: 0 additions & 7 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ After cloning the repo, run:
$ npm install # or npm
```

To run the dev server, you will also need to install the cli's dependencies:

```bash
$ cd cli
$ npm install # or npm
```

### Commonly used NPM scripts

``` bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci && npm ci --prefix cli
- run: npm ci
- run: npm run bundle
- run: npm run e2e
40 changes: 0 additions & 40 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,6 @@ on:
release:
types: [published]
jobs:
# push_to_registry:
# name: Push Docker image to GitHub Packages
# runs-on: ubuntu-latest
# permissions:
# packages: write
# contents: read
# steps:
# - name: Check out the repo
# uses: actions/checkout@v3
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Prepare
# id: prep
# run: |
# DOCKER_IMAGE=ghcr.io/redocly/redoc/cli
# VERSION=edge
# if [[ $GITHUB_REF == refs/tags/* ]]; then
# VERSION=${GITHUB_REF#refs/tags/}
# elif [[ $GITHUB_REF == refs/heads/* ]]; then
# VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
# elif [[ $GITHUB_REF == refs/pull/* ]]; then
# VERSION=pr-${{ github.event.number }}
# fi
# TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest"
# if [ "${{ github.event_name }}" = "push" ]; then
# TAGS="$TAGS,${DOCKER_IMAGE}:sha-${GITHUB_SHA::8}"
# fi
# echo ::set-output name=version::${VERSION}
# echo ::set-output name=tags::${TAGS}
# echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
# - name: Push to GitHub Packages
# uses: docker/build-push-action@v3
# with:
# context: ./cli
# push: ${{ github.event_name != 'pull_request' }}
# tags: ${{ steps.prep.outputs.tags }}
dockerhub:
name: Publish redoc image to DockerHub
runs-on: ubuntu-latest
Expand Down
120 changes: 0 additions & 120 deletions .github/workflows/publish-cli.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
restore-keys: |
npm-${{ hashFiles('package-lock.json') }}
npm-
- run: npm ci && npm ci --prefix cli
- run: npm ci
- run: npm run bundle
- name: Store bundle artifact
uses: actions/upload-artifact@v3
Expand All @@ -31,14 +31,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci && npm ci --prefix cli
- run: npm ci
- run: npm test
e2e-tests:
needs: [bundle]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci && npm ci --prefix cli
- run: npm ci
- name: Download bundled artifact
uses: actions/download-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci && npm ci --prefix cli
- run: npm ci
- run: npm run bundle
- run: npm test
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ cypress/
bundles/
typings/*
!typings/styled-patch.d.ts
cli/index.js
cli/__test__/*/**/*.html

/benchmark/revisions

Expand Down
4 changes: 0 additions & 4 deletions cli/.npmignore

This file was deleted.

23 changes: 0 additions & 23 deletions cli/Dockerfile

This file was deleted.

42 changes: 0 additions & 42 deletions cli/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions cli/__test__/build/configRedoc/.redocly.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions cli/__test__/build/configRedoc/index.test.ts

This file was deleted.

34 changes: 0 additions & 34 deletions cli/__test__/build/configRedoc/inline-options.test.ts

This file was deleted.

24 changes: 0 additions & 24 deletions cli/__test__/build/configRedoc/url.test.ts

This file was deleted.

Loading

0 comments on commit d1c9155

Please sign in to comment.