2.10.3 • Published 2 years ago

dce-paella-extensions v2.10.3

Weekly downloads
4
License
MIT
Repository
github
Last release
2 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

2 years ago

2.10.2

2 years ago

2.10.0

2 years ago

2.9.0

2 years ago

2.7.2

3 years ago

2.7.1

3 years ago

2.7.0

3 years ago

2.6.0

4 years ago

2.5.0

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.7.6

5 years ago

1.7.5

6 years ago

1.7.4

6 years ago

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.19

7 years ago

1.6.18

7 years ago

1.6.17

7 years ago

1.6.17-rc.1

7 years ago

1.6.16

7 years ago

1.6.15-MATT2245

7 years ago

1.6.15

7 years ago

1.6.14-rc.1

7 years ago

1.6.14

7 years ago

1.6.13

7 years ago

1.6.12

7 years ago

1.6.11

7 years ago

1.6.10

7 years ago

1.6.9

7 years ago

1.6.8

7 years ago

1.6.7

8 years ago

1.6.6

8 years ago

1.6.5

8 years ago

1.6.4

8 years ago

1.6.3

8 years ago

1.6.2

8 years ago

1.6.1

8 years ago

1.6.0

8 years ago

1.5.3

8 years ago

1.5.2

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.20

8 years ago

1.4.19

8 years ago

1.4.18

8 years ago

1.4.17

8 years ago

1.4.16

8 years ago

1.4.15

8 years ago

1.4.14

8 years ago

1.4.13

8 years ago

1.4.12

8 years ago

1.4.11

8 years ago

1.4.10

8 years ago

1.4.9

8 years ago

1.4.8

8 years ago

1.4.7

8 years ago

1.4.6

8 years ago

1.4.5

8 years ago

1.4.4

8 years ago

1.4.3

8 years ago

1.4.2

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.114

8 years ago

1.3.113

8 years ago

1.3.112

8 years ago

1.3.111

8 years ago

1.3.110

8 years ago

1.3.109

8 years ago

1.3.108

8 years ago

1.3.107

8 years ago

1.3.106

8 years ago

1.3.105

8 years ago

1.3.104

8 years ago

1.3.103

8 years ago

1.3.102

8 years ago

1.3.101

8 years ago

1.3.100

8 years ago

1.3.99

8 years ago

1.3.98

8 years ago

1.3.97

8 years ago

1.3.96

8 years ago

1.3.95

8 years ago

1.3.94

8 years ago

1.3.93

8 years ago

1.3.92

8 years ago

1.3.91

8 years ago

1.3.90

8 years ago

1.3.89

8 years ago

1.3.88

8 years ago

1.3.87

8 years ago

1.3.86

8 years ago

1.3.85

8 years ago

1.3.84

8 years ago

1.3.83

8 years ago

1.3.82

8 years ago

1.3.81

8 years ago

1.3.80

8 years ago

1.3.79

8 years ago

1.3.78

8 years ago

1.3.77

8 years ago

1.3.76

8 years ago

1.3.75

8 years ago

1.3.74

8 years ago

1.3.73

8 years ago

1.3.71

8 years ago

1.3.70

8 years ago

1.2.70

8 years ago

1.2.68

8 years ago

1.3.69

8 years ago

1.3.68

8 years ago

1.3.67

8 years ago

1.3.66

8 years ago

1.2.67

8 years ago

1.2.66

8 years ago

1.2.65

8 years ago

1.2.63

8 years ago

1.2.62

8 years ago

1.2.61

8 years ago

1.2.60

8 years ago

1.2.52

8 years ago

1.2.51

8 years ago

1.2.50

8 years ago

1.2.49

8 years ago

1.2.48

8 years ago

1.2.47

8 years ago

1.2.46

8 years ago

1.2.45

8 years ago

1.2.44

8 years ago

1.2.43

8 years ago

1.2.42

8 years ago

1.2.41

8 years ago

1.2.40

8 years ago

1.2.39

8 years ago

1.2.38

8 years ago

1.1.33

8 years ago

1.2.37

8 years ago

1.2.36

8 years ago

1.2.35

8 years ago

1.2.34

8 years ago

1.2.33

8 years ago

1.2.32

8 years ago

1.2.31

8 years ago

1.1.31

8 years ago

1.1.32

8 years ago

1.1.30

8 years ago

1.1.29

8 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

9 years ago

1.0.20

9 years ago

1.0.18

9 years ago

1.0.17

9 years ago

1.0.16

9 years ago

1.0.15

9 years ago

1.0.14

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago