Skip to content

ekstep/ekstep-content-plugin-dev-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •