Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.5 KB

File metadata and controls

56 lines (38 loc) · 1.5 KB

ekstep-content-plugin-dev-common

Common development files for writing ekstep content plugin. Provides gulp tasks for developing a ekstep content plugin

Usage

  • Add this package as npm and bower dependency
npm install ekstep/ekstep-content-plugin-dev-common --save-dev

//This will ensure the dependency files from content-editor and renderer are installed into `bower_components` folder on `bower install`. These files are included in karma configuration for running tests for the plugin
bower install ekstep/ekstep-content-plugin-dev-common
  • Including the default gulp tasks with default options
//gulpfile.js
require('ekstep-content-plugin-dev-common/lib/gulp-tasks')();
  • Overriding options available in karma for running tests: gulpfile.js should contain
//gulpfile.js
require('ekstep-content-plugin-dev-common/lib/gulp-tasks')({
    editorKarmaServerOptions: {
        exclude: ["path/to/*.js"]
    },
    rendererKarmaServerOptions: {
        exclude: ["path/to/*.js"]
    }
});

The editorKarmaServerOptions and rendererKarmaServerOptions supports options listed in karma configuration documentation

Development

NOTE: This code base uses jasmine-node which is based on jamsine 1.3.1

  • Run Following command to verify changes
npm install
gulp
  • Running test in watch mode
gulp test:watch