Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add circleci config #16

Open
wants to merge 129 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
02d284a
Update README.md
ysulyma Aug 19, 2019
b93723f
Update README.md
ysulyma Aug 19, 2019
4368f54
Merge branch 'master' of github.com:ysulyma/ractive-player
Sep 2, 2019
5f47ae2
Specify files/ correctly
Sep 2, 2019
b76900a
Update README.md
ysulyma Sep 2, 2019
0ab3b72
Update README.md
ysulyma Sep 2, 2019
5b47156
Update README.md
ysulyma Sep 2, 2019
2f91964
Update README.md
ysulyma Sep 2, 2019
b9d7d3c
Use StrictEventEmitter
Sep 5, 2019
7ae218b
Add StrictEventEmitter to .d.ts
Sep 5, 2019
ccaab59
Remove erroneous seeked listen from Media
Sep 6, 2019
0908606
Merge branch 'master' of github.com:ysulyma/ractive-player
Sep 6, 2019
1ad1d9d
Bump patch version and recompile dist with strict event emitters
Sep 6, 2019
ec2d1c0
Fix missing useEffect dependencies
Sep 22, 2019
b7235e1
Update README.md
ysulyma Oct 4, 2019
9944609
Update README.md
ysulyma Oct 18, 2019
98ea93f
Remove autogenerated files from source control
Oct 20, 2019
5b89a7f
Slightly better scrubbing
Oct 20, 2019
7c8ada5
Remove external fonts (fixes #3)
Oct 20, 2019
c6ed9cb
Change from atl to ts-loader
Oct 20, 2019
dbe42cb
Work around opacity bug in Safari (closes #6)
Oct 20, 2019
8fab40e
Add CHANGELOG
Oct 20, 2019
baa5225
Remove .min.js also
Oct 20, 2019
b89a9ed
Update packages and bump patch number
Oct 20, 2019
67b359a
Merge branch 'master' of github.com:ysulyma/ractive-player
Oct 20, 2019
0a5c981
Update README.md
ysulyma Oct 20, 2019
7972248
Added native-event version of onClick in utils/mobile
Oct 20, 2019
6a6cdb9
Fix typings for utils/animation/replay
Oct 20, 2019
f589480
Remove Cursor (closes #8)
Oct 20, 2019
4e584d7
-> controls, and provide some typings
Oct 20, 2019
5aa61d9
Remove CONTROLS_HEIGHT
Oct 20, 2019
de9676b
support ordinary events in Player.preventCanvasClick
Oct 20, 2019
cd82895
CHANGELOG
Oct 20, 2019
770c0d0
Undo putting canPlayThrough events on Playback
Nov 10, 2019
a52cdc1
Put preventCanvasClick on nativeEvent instead of synthetic event
Nov 10, 2019
da39d28
Add some documentation
Jan 7, 2020
e8293fb
Player.allowScroll
Jan 8, 2020
d5170e4
Link to rp-cursor package in CHANGELOG
Jan 8, 2020
192a1a2
Utils.time.timeRegexp
Jan 8, 2020
712a752
Script.parse[Start,End]
Jan 8, 2020
0457c71
Utils.replayData
Jan 8, 2020
75176db
Utils.replayData
Jan 8, 2020
9d85030
Merge branch 'v2' of github.com:ysulyma/ractive-player into v2
Jan 8, 2020
d3decd9
Fix bug in mobile utils affecting Android
Jan 30, 2020
10531db
Bump acorn from 6.3.0 to 6.4.1
dependabot[bot] Mar 14, 2020
5da2f08
Merge pull request #9 from ysulyma/dependabot/npm_and_yarn/acorn-6.4.1
ysulyma Apr 1, 2020
b7dfd73
Fix scrubber bar highlighting in Android
May 23, 2020
f351414
Added some documentation and canPlay/canPlayThrough Promises
May 27, 2020
a112edf
Added workaround for React issue 2043
May 27, 2020
5727466
Update CHANGELOG
May 27, 2020
32fddf5
Remove animation.easings
Oct 31, 2020
12f3ddb
Bind back/forward in Script
Oct 31, 2020
3f0f6c8
Move captureRef into react-utils
Dec 14, 2020
e5c82f7
Broadcast, KeyMap, hooks
Dec 14, 2020
d000be4
ondurationchange for Playback
Dec 14, 2020
7ee45ff
allow Controls customization; remove HelpControl; remove LoadingScreen
Dec 31, 2020
f5e0866
Remove Broadcast
Dec 31, 2020
56b9773
implement KeyMap
Dec 31, 2020
b1bade1
Export controls
Dec 31, 2020
7531298
Update styles
Dec 31, 2020
f10fdea
Allow negative times in Utils.time
Dec 31, 2020
0b007b1
import type
Dec 31, 2020
c6c79ab
Make 2043 fix optional (fixed in React 17)
Dec 31, 2020
4bc9b02
tsconfig.json
Dec 31, 2020
47e0d6f
Update packages
Dec 31, 2020
31f8a68
Updates
Dec 31, 2020
471ad32
updates
Dec 31, 2020
2ca1a2f
Add ability to reparse dag tree
Jan 1, 2021
31b1fc6
Add Utils.misc.range(a,b)
Jan 1, 2021
f0da2ba
Linting
Jan 1, 2021
3b02d9c
Linting
Jan 1, 2021
b3e437d
Linting
Jan 1, 2021
96538a4
Bump version to v2
Jan 1, 2021
ec3bb55
Merge v2 into main branch
Jan 1, 2021
952fbef
Fix sizing
Jan 1, 2021
129e95d
Better typing
Jan 10, 2021
b21f9ff
Make KeyMap work better + don't throw error on unbound sequence
Jan 10, 2021
8f9cbbc
Add 2.0.1 to CHANGELOG
Jan 22, 2021
0e91f3a
Make TypeScript happy
Jan 22, 2021
3eb29d4
Fix bug in mobile styling
Jan 22, 2021
c7eedaa
Cut 2.0.2
Jan 22, 2021
18ff9a1
Update README
Jan 22, 2021
db8296a
Fix mobile styling properly
Jan 22, 2021
c789e00
Update README.md
ysulyma Feb 13, 2021
71eb192
Update README.md
ysulyma Feb 13, 2021
f26f83a
Update README.md
ysulyma Feb 13, 2021
9b7e349
Update README.md
ysulyma Feb 13, 2021
58727fa
Update README.md
ysulyma Feb 13, 2021
cee5e34
Fix bug in KeyMap
May 9, 2021
ec87745
Properly unmount Media
May 28, 2021
15f43f6
Remove silly <Video> hiding behavior
May 28, 2021
c921d59
Add Script.playback to typings
May 28, 2021
ab56531
Version bump
May 28, 2021
4c740fc
Fix desktop touchscreen support
Jun 7, 2021
b0f3e56
Remove .ready()
Jun 7, 2021
1ce43ea
Work correctly with keyboard play/pause buttons
Jun 7, 2021
6e1b3c2
more intelligent canvasClick/keyCapture behavior
Jun 8, 2021
fb9e1b6
Bump version
Jun 8, 2021
960761a
enable captions
Jun 8, 2021
2e69b9a
Add stylus scripts
Jun 8, 2021
70d8cfa
Package as UMD
Jul 7, 2021
a8409df
Fix bug with media end pausing playback
Jul 19, 2021
dbdb45d
Fix bug where scrubber keys could not be properly reassigned
Jul 19, 2021
3d07cd6
Fix normalization in Script constructor
Jul 19, 2021
c8b8cec
Actually fix Media bug
Jul 19, 2021
9b3eef6
Alias Liqvid
Jul 19, 2021
dcd8cc9
v2.0.8
Jul 19, 2021
bc0d074
Actually fix Media bug + add further improvement for keyplay followin…
Jul 19, 2021
a02e5b8
Update urls to liqvidjs.org
Jul 19, 2021
9843378
Add playsInline to <Video> to fix mobile display
Jul 19, 2021
2e2cca5
Stop webpack from generating annoying .LICENSE.txt files
Jul 19, 2021
7e45d14
Update README to liqvid
Jul 19, 2021
4152077
Add circleci config
Jul 20, 2021
deb1c7d
Add browser tests
Jul 21, 2021
36ef6bc
Force build test apps step to pass
Jul 21, 2021
68a4fc8
Update ci config to actually run browser tests
Jul 21, 2021
5685d41
Some cleanup
Jul 21, 2021
47e1676
Persist bundles to workspace
Jul 21, 2021
94f8a5a
Try v1.11 to see if firefox issue goes away
Jul 21, 2021
f459d72
Expose test results to circleci
Jul 21, 2021
1ecf088
Need to use playwrite v1.12 I guess
Jul 21, 2021
b2a8474
Add some mocha tests
Jul 21, 2021
cc0f3cd
Actually run the node tests
Jul 21, 2021
67271d8
npx mocha
Jul 21, 2021
f33047a
Fix playwright CI
Jul 21, 2021
5e550ff
Use ts-mocha
Jul 21, 2021
af894be
Fix formatting
Jul 21, 2021
6421bd9
Make sure to use dev version of all artifacts in tests
Jul 21, 2021
255e0b4
Remove dependency of test-browser on build-main
Jul 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
version: 2.1

defaults: &defaults
working_directory: ~/repo
docker:
- image: node:16.5.0-buster-slim
resource_class: small

jobs:
npm-install:
<<: *defaults
steps:
- checkout
- run:
name: npm install
command: |
npm install
npm install --no-save
- persist_to_workspace:
root: .
paths:
- .
lint:
<<: *defaults
steps:
- attach_workspace:
at: .
- run:
name: lint
command: eslint . --ext .ts

build-main:
<<: *defaults
steps:
- attach_workspace:
at: .
- run:
name: Build main css
command: npx stylus styl
- run:
name: Build main bundle
command: npx webpack
- store_artifacts:
path: /root/repo/dist/

build-test-apps:
<<: *defaults
steps:
- attach_workspace:
at: .
- run:
name: Build test apps
command: npx webpack -c test-playwright/test-apps/webpack.config.js || true
- persist_to_workspace:
root: .
paths:
- .
- store_artifacts:
path: /root/repo/test-playwright/test-apps/bundles/

browser-tests:
docker:
- image: mcr.microsoft.com/playwright:v1.12.0-focal
steps:
- attach_workspace:
at: .
- run:
name: Build main css
command: npx stylus styl
- run:
name: Run Tests
command: |
mkdir test-results
PLAYWRIGHT_JUNIT_OUTPUT_NAME="test-results/junit.xml" npx playwright test --reporter=junit,line
- store_test_results:
path: test-results

node-tests:
<<: *defaults
steps:
- attach_workspace:
at: .
- run:
name: Mocha tests
command: |
mkdir test-results
MOCHA_FILE=./test-results/junit.xml npx ts-mocha "./test-mocha/**/*.ts" --reporter mocha-junit-reporter
- store_test_results:
path: test-results

workflows:
version: 2
build-and-deploy:
jobs:
- npm-install
- build-main:
requires:
- npm-install
- build-test-apps:
requires:
- npm-install
- browser-tests:
requires:
- build-test-apps
- node-tests:
requires:
- npm-install
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
}],

"@typescript-eslint/explicit-function-return-type": ["off"],
"@typescript-eslint/explicit-module-boundary-types": ["off"],

"@typescript-eslint/explicit-member-accessibility": ["error", {
"accessibility": "no-public"
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@
# ignore node_modules
/node_modules

# autogenerated files
/dist/ractive-player.css
/dist/ractive-player.min.css
/dist/ractive-player.js
/dist/ractive-player.min.js
test-playwright/test-apps/bundles

# types aren't yet generated the way we want them to be
/types
121 changes: 121 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
## 2.0.10 (Jul 19, 2021)

* add `playsInline` to `<Video>`

## 2.0.9 (Jul 19, 2021)

* fix bug introduced in 2.0.6 where Media ending would pause playback

## 2.0.8 (Jul 19, 2021)

* fix bug where scrubber keys could not be properly reassigned

* fix normalization in Script constructor

## 2.0.7 (Jul 7, 2021)

* package as UMD

## 2.0.6 (Jun 7, 2021)

* work correctly with keyboard play/pause buttons

* make scrubber bar work on desktop touchscreens

* no longer necessary to call `.ready()`, now a noop

* more intelligent canvasClick/keyCapture behavior

* enable captions

## 2.0.5 (May 28, 2021)

* correctly remove listeners when unmounting `<Audio>`/`<Video>`

* remove silly `<Video>` hiding behavior

* add `Script.playback` to typings

## 2.0.4 (May 9, 2021)

* fix bug in `KeyMap.normalize` + mistyping as `KeyMap.canonize`

## 2.0.2/2.0.3 (Jan 22, 2021)

* fix bug in mobile styling

## 2.0.1 (Jan 10, 2021)

* `KeyMap.getHandlers` will return `[]` on unbound sequences instead of throwing error

## 2.0.0 (Dec 31, 2020)

* remove Cursor; use [rp-cursor](https://www.npmjs.com/package/rp-cursor) instead

* rename `Player.$controls` -> `Player.controls`

* remove `Player.CONTROLS_HEIGHT`

* support ordinary events in `Player.preventCanvasClick`

* added `Player.allowScroll`

* added `Script.parseStart` and `Script.parseEnd`

* added `Utils.time.timeRegexp`

* added `Utils.replayData`

* added some documentation

* workaround for https://github.com/facebook/react/issues/2043 affecting Android (now fixed in React v.17)

* added `Utils.react.captureRef`

* added `useMarkerUpdate`, `usePlayer`, `useTimeUpdate` hooks

* added `rp-volume-color` CSS variable

* removed `rememberVolumeSettings` due to cookie laws

* added `KeyMap`

* removed plugin system and "hooks" system (easily confused with React's Hooks); added `Player.props.controls` and `Player.defaultControls*` to replace

* removed `LoadingScreen`

* added `Player.reparseTree`

* allowed `Utils.misc.range` to take two arguments

## 1.1.1 (October 20, 2019)

* fix typings for `utils/animation/replay`

## 1.1.0 (October 20, 2019)

* add `attachClickHandler` in `utils/mobile`

## 1.0.3 (October 20, 2019)

* better mobile scrubbing

* remove external fonts

* work around opacity bug on Safari

## 1.0.2 (September 6, 2019)

* use `StrictEventEmitter` for better typing

## 1.0.1 (September 2, 2019)

* specify `files` correctly in `package.json`

## 1.0.0 (September 2, 2019)

First stable release

## 0.8.0 (November 9, 2018)

Initial public release
Loading