dev.js 623 B

1234567891011121314151617181920212223
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. const initTask = require( './utils/dev-init' );
  7. var ckeditor5Path = process.cwd();
  8. module.exports = ( grunt ) => {
  9. const packageJSON = grunt.config.data.pkg;
  10. grunt.registerTask( 'dev-init', function() {
  11. // Get workspace root relative path from configuration and convert it to absolute path.
  12. let options = {
  13. workspaceRoot: '..'
  14. };
  15. options = this.options( options );
  16. initTask( ckeditor5Path, packageJSON, options, grunt.log.writeln, grunt.log.error );
  17. } );
  18. };