瀏覽代碼

Removed unnecessary config options from gulpfile. Changed structure in build-config.

Maciek 9 年之前
父節點
當前提交
68fe079d9d
共有 2 個文件被更改,包括 21 次插入21 次删除
  1. 21 18
      build-config.js
  2. 0 3
      gulpfile.js

+ 21 - 18
build-config.js

@@ -1,31 +1,34 @@
 /* jshint browser: false, node: true, strict: true */
 'use strict';
 
+/**
+ * @see https://github.com/ckeditor/ckeditor5-dev-bundler-rollup/issues/37 for config options
+ */
 module.exports = {
-	// Name of CKEditor instance exposed as global variable by a bundle.
-	moduleName: 'ClassicEditor',
-
 	// Specify path where bundled editor will be saved.
 	destinationPath: './build/dist/',
 
 	editor: 'editor-classic/classic',
 
+	// List of plugins.
+	plugins: [
+		'autoformat',
+		'basic-styles/bold',
+		'basic-styles/italic',
+		'clipboard',
+		'enter',
+		'heading',
+		'image',
+		'link',
+		'list',
+		'paragraph',
+		'typing',
+		'undo'
+	],
+
 	rollupOptions: {
-		// List of plugins.
-		plugins: [
-			'autoformat',
-			'basic-styles/bold',
-			'basic-styles/italic',
-			'clipboard',
-			'enter',
-			'heading',
-			'image',
-			'link',
-			'list',
-			'paragraph',
-			'typing',
-			'undo'
-		],
+		// Name of CKEditor instance exposed as global variable by a bundle.
+		moduleName: 'ClassicEditor',
 
 		// The format of the generated bundle.
 		format: 'iife',

+ 0 - 3
gulpfile.js

@@ -139,9 +139,6 @@ function getBuildOptions() {
 	return {
 		packages: getCKEditor5PackagesPaths(),
 		buildConfig: require( path.resolve( '.', pathToConfig ) ),
-
-		ROOT_DIR: config.ROOT_DIR,
-		MODULE_DIR: config.MODULE_DIR,
 	};
 }