Skip to content

Commit

Permalink
Restructure package layout, add minimum required for position list fe…
Browse files Browse the repository at this point in the history
…tching (#10)

* move package to root

* update actions to new structure

* update depedencies

* fix commands

* work on position list MVP

* fetcher is optional

* make positionsFromManifest functional

* fix typo

* lint

* add client option for httpfetcher

* fix httpfetcher lint

* convert Resource from interface to abstract class
  • Loading branch information
chocolatkey authored Jul 28, 2022
1 parent 94e518c commit 659a3b2
Show file tree
Hide file tree
Showing 15 changed files with 25,606 additions and 24,414 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/CI-shared.yml → .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ on:
push:
paths:
- 'shared/**'
- 'streamer/**'
- 'navigator/**'
- 'src/**'
- '.github/workflows/CI-shared.yml'

jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./shared
strategy:
matrix:
node: ['10.x', '12.x', '14.x']
node: ['14.x', '16.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
Expand All @@ -29,8 +29,6 @@ jobs:

- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
with:
working-directory: shared

- name: Lint
run: yarn lint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ jobs:
- uses: actions/checkout@v1
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: shared/

github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion shared/README.md → README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Readium Shared Web
# Readium Web

Next generation SDK for publications in Web Apps

Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
collectCoverageFrom: [
'src/**/*.{ts,tsx,js,jsx}',
'shared/src/**/*.{ts,tsx,js,jsx}',
//'navigator/src/**/*.{ts,tsx,js,jsx}'
]
}
Loading

0 comments on commit 659a3b2

Please sign in to comment.