2.10.3 • Published 3 years ago

dce-paella-extensions v2.10.3

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

dce-paella-extensions

This module contains Harvard DCE-specific extensions to the Paella video player.

It is not a standard Node or browser module (as of now), but rather, a way to package extensions for the build process so that we can avoid forking Paella and maintaining that fork.

Build Status

Installation

When using as a dependency in another project:

npm install dce-paella-extensions

When working on this module:

git clone git@github.com:harvard-dce/dce-paella-extensions
git checkout <branch name>
npm install

Usage

You need to copy your stuff out of this module to where you need it yourself.

For example, HUDCE registers this repo as a dependency of a project that also depends on Paella and Opencast and uses a gulpfile to copy the files to where they need to go.

  ...
  var s1 = gulp.src(config.dceExtPath + '/vendor/plugins/**').pipe(gulp.dest(config.buildPath + '/paella/plugins'));
  var s2 = gulp.src(config.dceExtPath + '/vendor/skins/**').pipe(gulp.dest(config.buildPath + '/paella/vendor/skins'));
  var s3 = gulp.src(config.dceExtPath + '/resources/images/paella_icons_light_dce.png').pipe(gulp.dest(config.buildPath + '/paella/resources/images'));
  var s4 = gulp.src(config.dceExtPath + '/resources/style/overrides.less').pipe(gulp.dest(config.buildPath + '/paella/resources/style'));
  ...
  var s1 = gulp.src(config.dceExtPath + '/config/config.json').pipe(gulp.dest(config.buildPath + '/paella-opencast/config'));
  var s2 = gulp.src(config.dceExtPath + '/config/profiles/profiles.json').pipe(gulp.dest(config.buildPath + '/paella-opencast/config/profiles'));
  ...

Development

Local development

  • Edit the files you want.
  • Run tests as documented in the next section.
  • When you are ready to publish to NPM, make sure you update the version in package.json.
  • Also tag with the same version (i.e. if npm version is 1.6.8, make a git tag -a v1.6.8) and push to the repo. -- This allows the dce-opencast to use npm or the git repo directly. -- For example, via "dce-paella-extensions": "1.6.8" or "dce-paella-extensions": "harvard-dce/dce-paella-extensions#v1.6.18"

Testing a development version of this module in hudce-opencast

To avoid having to run npm publish and npm install just to see if a change worked in the context of paella-matterhorn, you can:

  • Run npm link (with sudo if your global node_modules is in a place that requires it) from this repo's directory.
  • Run npm link dce-paella-extensions in the hudce-opencast enage-player-paella module. Now there will be a symlink-like link to the project.
  • Then, run gulp build in the hudce-opencast enage-player-paella module.

Tests

There is only one set of tests so far. To run it, assuming you have already run npm install:

make test

You should see output that looks like this:

TAP version 13
# Heartbeat test
ok 1 Passes a function to the timer.
ok 2 Sets the timer to run at the interval specified in the config.
ok 3 The heartbeat event is registered.
ok 4 Sets the timer to repeat.

1..4
# tests 4
# pass  4

# ok

Any change you make a PR for should end in a test run with 'ok'; no failures.

2.10.3

3 years ago

2.10.2

3 years ago

2.10.0

3 years ago

2.9.0

3 years ago

2.7.2

4 years ago

2.7.1

4 years ago

2.7.0

5 years ago

2.6.0

5 years ago

2.5.0

5 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.7.6

6 years ago

1.7.5

7 years ago

1.7.4

7 years ago

1.7.2

8 years ago

1.7.1

8 years ago

1.7.0

8 years ago

1.6.19

8 years ago

1.6.18

8 years ago

1.6.17

8 years ago

1.6.17-rc.1

8 years ago

1.6.16

8 years ago

1.6.15-MATT2245

8 years ago

1.6.15

8 years ago

1.6.14-rc.1

9 years ago

1.6.14

9 years ago

1.6.13

9 years ago

1.6.12

9 years ago

1.6.11

9 years ago

1.6.10

9 years ago

1.6.9

9 years ago

1.6.8

9 years ago

1.6.7

9 years ago

1.6.6

9 years ago

1.6.5

9 years ago

1.6.4

9 years ago

1.6.3

9 years ago

1.6.2

9 years ago

1.6.1

9 years ago

1.6.0

9 years ago

1.5.3

9 years ago

1.5.2

9 years ago

1.5.1

9 years ago

1.5.0

9 years ago

1.4.20

9 years ago

1.4.19

9 years ago

1.4.18

9 years ago

1.4.17

9 years ago

1.4.16

9 years ago

1.4.15

9 years ago

1.4.14

9 years ago

1.4.13

9 years ago

1.4.12

9 years ago

1.4.11

9 years ago

1.4.10

9 years ago

1.4.9

9 years ago

1.4.8

9 years ago

1.4.7

9 years ago

1.4.6

9 years ago

1.4.5

9 years ago

1.4.4

9 years ago

1.4.3

9 years ago

1.4.2

9 years ago

1.4.1

9 years ago

1.4.0

9 years ago

1.3.114

9 years ago

1.3.113

9 years ago

1.3.112

9 years ago

1.3.111

9 years ago

1.3.110

9 years ago

1.3.109

9 years ago

1.3.108

9 years ago

1.3.107

9 years ago

1.3.106

9 years ago

1.3.105

9 years ago

1.3.104

9 years ago

1.3.103

9 years ago

1.3.102

9 years ago

1.3.101

9 years ago

1.3.100

9 years ago

1.3.99

9 years ago

1.3.98

9 years ago

1.3.97

9 years ago

1.3.96

9 years ago

1.3.95

9 years ago

1.3.94

9 years ago

1.3.93

9 years ago

1.3.92

9 years ago

1.3.91

9 years ago

1.3.90

9 years ago

1.3.89

9 years ago

1.3.88

9 years ago

1.3.87

9 years ago

1.3.86

9 years ago

1.3.85

9 years ago

1.3.84

9 years ago

1.3.83

9 years ago

1.3.82

9 years ago

1.3.81

9 years ago

1.3.80

9 years ago

1.3.79

9 years ago

1.3.78

9 years ago

1.3.77

9 years ago

1.3.76

9 years ago

1.3.75

9 years ago

1.3.74

9 years ago

1.3.73

9 years ago

1.3.71

9 years ago

1.3.70

9 years ago

1.2.70

9 years ago

1.2.68

9 years ago

1.3.69

9 years ago

1.3.68

9 years ago

1.3.67

9 years ago

1.3.66

9 years ago

1.2.67

9 years ago

1.2.66

9 years ago

1.2.65

9 years ago

1.2.63

9 years ago

1.2.62

9 years ago

1.2.61

9 years ago

1.2.60

9 years ago

1.2.52

9 years ago

1.2.51

9 years ago

1.2.50

9 years ago

1.2.49

9 years ago

1.2.48

9 years ago

1.2.47

9 years ago

1.2.46

9 years ago

1.2.45

9 years ago

1.2.44

9 years ago

1.2.43

9 years ago

1.2.42

9 years ago

1.2.41

9 years ago

1.2.40

9 years ago

1.2.39

9 years ago

1.2.38

9 years ago

1.1.33

9 years ago

1.2.37

9 years ago

1.2.36

9 years ago

1.2.35

9 years ago

1.2.34

9 years ago

1.2.33

9 years ago

1.2.32

9 years ago

1.2.31

9 years ago

1.1.31

9 years ago

1.1.32

10 years ago

1.1.30

10 years ago

1.1.29

10 years ago

1.0.27

10 years ago

1.0.26

10 years ago

1.0.25

10 years ago

1.0.24

10 years ago

1.0.23

10 years ago

1.0.22

10 years ago

1.0.21

10 years ago

1.0.20

10 years ago

1.0.18

10 years ago

1.0.17

10 years ago

1.0.16

10 years ago

1.0.15

10 years ago

1.0.14

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago