瀏覽代碼

Simplified the config.

Kamil Piechaczek 9 年之前
父節點
當前提交
957d88236a
共有 1 個文件被更改,包括 7 次插入11 次删除
  1. 7 11
      gulpfile.js

+ 7 - 11
gulpfile.js

@@ -25,16 +25,12 @@ const config = {
 	BUNDLE_DEFAULT_CONFIG: 'dev/bundles/build-config-standard.js',
 
 	DOCUMENTATION: {
-		SOURCE_DIR: '.docs',
-		DESTINATION_DIR: 'build/docs',
-		SAMPLES: {
-			EXTENSIONS: [ 'md', 'html', 'js' ],
-			DIRECTORY: 'samples'
-		},
-		GUIDES: {
-			EXTENSIONS: [ 'md' ],
-			DIRECTORY: 'guides'
-		}
+		// Path to the built editors for samples.
+		EDITORS_DIST: '.docs/assets/scripts/samples',
+		// Glob pattern with samples.
+		SAMPLES: 'docs/samples/**/*.@(md|html|js)',
+		// Glob pattern with guides.
+		GUIDES: 'docs/guides/**/*.md'
 	},
 
 	// Files ignored by jshint and jscs tasks. Files from .gitignore will be added automatically during tasks execution.
@@ -130,7 +126,7 @@ gulp.task( 'test:samples:bundled', [ 'compile:samples' ], () => compiler.compile
 gulp.task( 'test:samples', [ 'test:samples:local', 'test:samples:bundled' ] );
 
 // Tasks specific for building editors for testing releases.
-gulp.task( 'compile:samples:clean', ckeditor5DevBundle.cleanSamples );
+gulp.task( 'compile:samples:clean', ckeditor5DevBundle.cleanSamplesEditors );
 
 gulp.task( 'compile:samples',
 	[