Skip to content

Commit

Permalink
refactor: remove unused packages (#4532)
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 authored Sep 28, 2023
1 parent a860cf8 commit 56f7516
Show file tree
Hide file tree
Showing 34 changed files with 16 additions and 1,306 deletions.
77 changes: 0 additions & 77 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,40 +72,6 @@ jobs:
yarn set version $(node -e "console.log(require('./package.json').packageManager.split('@')[1])")
git diff --exit-code
build-prototype:
name: Build Prototype
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
electron-install: false
- name: Build Prototype
run: yarn nx build prototype
- name: Upload prototype artifact
uses: actions/upload-artifact@v3
with:
name: prototype
path: ./apps/prototype/dist
if-no-files-found: error

build-docs:
name: Build Docs
runs-on: ubuntu-latest
environment: development

steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
electron-install: false
- run: yarn nx build @affine/docs
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

e2e-plugin-test:
name: E2E Plugin Test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -142,49 +108,6 @@ jobs:
path: ./test-results
if-no-files-found: ignore

e2e-prototype-test:
name: E2E Prototype Test
runs-on: ubuntu-latest
environment: development
needs: build-prototype
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
playwright-install: true
electron-install: false
- name: Download prototype artifact
uses: actions/download-artifact@v3
with:
name: prototype
path: ./apps/prototype/dist
- name: Run playwright tests
run: yarn e2e --forbid-only
working-directory: tests/affine-prototype
env:
COVERAGE: true

# - name: Collect code coverage report
# run: yarn exec nyc report -t .nyc_output --report-dir .coverage --reporter=lcov

# - name: Upload e2e test coverage results
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./.coverage/lcov.info
# flags: e2etest-prototype
# name: affine
# fail_ci_if_error: false

- name: Upload test results
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: test-results-e2e-prototype
path: ./test-results
if-no-files-found: ignore

e2e-test:
name: E2E Test
runs-on: ubuntu-latest
Expand Down
35 changes: 0 additions & 35 deletions apps/docs/package.json

This file was deleted.

6 changes: 0 additions & 6 deletions apps/docs/postcss.config.mjs

This file was deleted.

44 changes: 0 additions & 44 deletions apps/docs/src/app.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions apps/docs/src/atom.ts

This file was deleted.

53 changes: 0 additions & 53 deletions apps/docs/src/components/editor.tsx

This file was deleted.

31 changes: 0 additions & 31 deletions apps/docs/src/components/sidebar/index.tsx

This file was deleted.

28 changes: 0 additions & 28 deletions apps/docs/src/components/sidebar/save-to-local.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions apps/docs/src/entries.ts

This file was deleted.

3 changes: 0 additions & 3 deletions apps/docs/src/index.css

This file was deleted.

36 changes: 0 additions & 36 deletions apps/docs/src/index.html

This file was deleted.

14 changes: 0 additions & 14 deletions apps/docs/src/index.tsx

This file was deleted.

Binary file removed apps/docs/src/pages/binary
Binary file not shown.
10 changes: 0 additions & 10 deletions apps/docs/src/server-fns.ts

This file was deleted.

8 changes: 0 additions & 8 deletions apps/docs/tailwind.config.mjs

This file was deleted.

Loading

0 comments on commit 56f7516

Please sign in to comment.