Explorar o código

Changed gulp tasks names: removed dev- prefix, changed word order for create-package task.

Szymon Kupś %!s(int64=10) %!d(string=hai) anos
pai
achega
8ec3858dc9

+ 12 - 12
dev/tasks/dev/tasks.js

@@ -4,28 +4,28 @@
 
 
 const gulp = require( 'gulp' );
 const gulp = require( 'gulp' );
 const minimist = require( 'minimist' );
 const minimist = require( 'minimist' );
-const statusTask = require( './tasks/dev-status' );
-const initTask = require( './tasks/dev-init' );
-const installTask = require( './tasks/dev-install' );
-const pluginCreateTask = require( './tasks/dev-package-create' );
-const updateTask = require( './tasks/dev-update' );
-const relinkTask = require( './tasks/dev-relink' );
+const statusTask = require( './tasks/status' );
+const initTask = require( './tasks/init' );
+const installTask = require( './tasks/install' );
+const pluginCreateTask = require( './tasks/create-package' );
+const updateTask = require( './tasks/update' );
+const relinkTask = require( './tasks/relink' );
 
 
 module.exports = ( config ) => {
 module.exports = ( config ) => {
 	const ckeditor5Path = process.cwd();
 	const ckeditor5Path = process.cwd();
 	const packageJSON = require( '../../../package.json' );
 	const packageJSON = require( '../../../package.json' );
 
 
-	gulp.task( 'dev-init', () => {
+	gulp.task( 'init', () => {
 		initTask( installTask, ckeditor5Path, packageJSON, config.WORKSPACE_DIR, console.log );
 		initTask( installTask, ckeditor5Path, packageJSON, config.WORKSPACE_DIR, console.log );
 	} );
 	} );
 
 
-	gulp.task( 'dev-package-create', ( done ) => {
+	gulp.task( 'create-package', ( done ) => {
 		pluginCreateTask( ckeditor5Path, config.WORKSPACE_DIR, console.log )
 		pluginCreateTask( ckeditor5Path, config.WORKSPACE_DIR, console.log )
 			.then( done )
 			.then( done )
 			.catch( ( error )  => done( error ) );
 			.catch( ( error )  => done( error ) );
 	} );
 	} );
 
 
-	gulp.task( 'dev-update', () => {
+	gulp.task( 'update', () => {
 		const options = minimist( process.argv.slice( 2 ), {
 		const options = minimist( process.argv.slice( 2 ), {
 			boolean: [ 'npm-update' ],
 			boolean: [ 'npm-update' ],
 			default: {
 			default: {
@@ -36,15 +36,15 @@ module.exports = ( config ) => {
 		updateTask( ckeditor5Path, packageJSON, config.WORKSPACE_DIR, console.log, options[ 'npm-update' ] );
 		updateTask( ckeditor5Path, packageJSON, config.WORKSPACE_DIR, console.log, options[ 'npm-update' ] );
 	} );
 	} );
 
 
-	gulp.task( 'dev-status', () => {
+	gulp.task( 'status', () => {
 		statusTask( ckeditor5Path, packageJSON, config.WORKSPACE_DIR, console.log, console.error );
 		statusTask( ckeditor5Path, packageJSON, config.WORKSPACE_DIR, console.log, console.error );
 	} );
 	} );
 
 
-	gulp.task( 'dev-relink', () => {
+	gulp.task( 'relink', () => {
 		relinkTask( ckeditor5Path, packageJSON, config.WORKSPACE_DIR, console.log, console.error );
 		relinkTask( ckeditor5Path, packageJSON, config.WORKSPACE_DIR, console.log, console.error );
 	} );
 	} );
 
 
-	gulp.task( 'dev-install', () => {
+	gulp.task( 'install', () => {
 		const options = minimist( process.argv.slice( 2 ), {
 		const options = minimist( process.argv.slice( 2 ), {
 			string: [ 'package' ],
 			string: [ 'package' ],
 			default: {
 			default: {

+ 0 - 0
dev/tasks/dev/tasks/dev-package-create.js → dev/tasks/dev/tasks/create-package.js


+ 0 - 0
dev/tasks/dev/tasks/dev-init.js → dev/tasks/dev/tasks/init.js


+ 0 - 0
dev/tasks/dev/tasks/dev-install.js → dev/tasks/dev/tasks/install.js


+ 0 - 0
dev/tasks/dev/tasks/dev-relink.js → dev/tasks/dev/tasks/relink.js


+ 0 - 0
dev/tasks/dev/tasks/dev-status.js → dev/tasks/dev/tasks/status.js


+ 0 - 0
dev/tasks/dev/tasks/dev-update.js → dev/tasks/dev/tasks/update.js


+ 1 - 1
dev/tests/dev/dev-package-create.js → dev/tests/dev/create-package.js

@@ -49,7 +49,7 @@ describe( 'dev-package-create', () => {
 		}
 		}
 	}
 	}
 
 
-	const packageCreateTask = require( '../../tasks/dev/tasks/dev-package-create' );
+	const packageCreateTask = require( '../../tasks/dev/tasks/create-package' );
 	const repositoryPath = path.join( workspacePath, packageName );
 	const repositoryPath = path.join( workspacePath, packageName );
 
 
 	it( 'should exist', () => expect( packageCreateTask ).to.be.a( 'function' ) );
 	it( 'should exist', () => expect( packageCreateTask ).to.be.a( 'function' ) );

+ 1 - 1
dev/tests/dev/dev-init.js → dev/tests/dev/init.js

@@ -11,7 +11,7 @@ const sinon = require( 'sinon' );
 const tools = require( '../../tasks/dev/utils/tools' );
 const tools = require( '../../tasks/dev/utils/tools' );
 
 
 describe( 'dev-init', () => {
 describe( 'dev-init', () => {
-	const initTask = require( '../../tasks/dev/tasks/dev-init' );
+	const initTask = require( '../../tasks/dev/tasks/init' );
 	const ckeditor5Path = 'path/to/ckeditor5';
 	const ckeditor5Path = 'path/to/ckeditor5';
 	const workspaceRoot = '..';
 	const workspaceRoot = '..';
 	const emptyFn = () => {};
 	const emptyFn = () => {};

+ 1 - 1
dev/tests/dev/dev-install.js → dev/tests/dev/install.js

@@ -11,7 +11,7 @@ const chai = require( 'chai' );
 const sinon = require( 'sinon' );
 const sinon = require( 'sinon' );
 const git = require( '../../tasks/dev/utils/git' );
 const git = require( '../../tasks/dev/utils/git' );
 const tools = require( '../../tasks/dev/utils/tools' );
 const tools = require( '../../tasks/dev/utils/tools' );
-const installTask = require( '../../tasks/dev/tasks/dev-install' );
+const installTask = require( '../../tasks/dev/tasks/install' );
 const expect = chai.expect;
 const expect = chai.expect;
 const path = require( 'path' );
 const path = require( 'path' );
 
 

+ 1 - 1
dev/tests/dev/dev-relink.js → dev/tests/dev/relink.js

@@ -12,7 +12,7 @@ const tools = require( '../../tasks/dev/utils/tools' );
 const path = require( 'path' );
 const path = require( 'path' );
 
 
 describe( 'dev-relink', () => {
 describe( 'dev-relink', () => {
-	const task = require( '../../tasks/dev/tasks/dev-relink' );
+	const task = require( '../../tasks/dev/tasks/relink' );
 	const ckeditor5Path = 'path/to/ckeditor5';
 	const ckeditor5Path = 'path/to/ckeditor5';
 	const modulesPath = path.join( ckeditor5Path, 'node_modules' );
 	const modulesPath = path.join( ckeditor5Path, 'node_modules' );
 	const workspaceRoot = '..';
 	const workspaceRoot = '..';

+ 1 - 1
dev/tests/dev/dev-status.js → dev/tests/dev/status.js

@@ -13,7 +13,7 @@ const git = require( '../../tasks/dev/utils/git' );
 const path = require( 'path' );
 const path = require( 'path' );
 
 
 describe( 'dev-status', () => {
 describe( 'dev-status', () => {
-	const statusTask = require( '../../tasks/dev/tasks/dev-status' );
+	const statusTask = require( '../../tasks/dev/tasks/status' );
 	const ckeditor5Path = 'path/to/ckeditor5';
 	const ckeditor5Path = 'path/to/ckeditor5';
 	const workspaceRoot = '..';
 	const workspaceRoot = '..';
 	const workspaceAbsolutePath = path.join( ckeditor5Path, workspaceRoot );
 	const workspaceAbsolutePath = path.join( ckeditor5Path, workspaceRoot );

+ 1 - 1
dev/tests/dev/dev-update.js → dev/tests/dev/update.js

@@ -13,7 +13,7 @@ const git = require( '../../tasks/dev/utils/git' );
 const path = require( 'path' );
 const path = require( 'path' );
 
 
 describe( 'dev-update', () => {
 describe( 'dev-update', () => {
-	const updateTask = require( '../../tasks/dev/tasks/dev-update' );
+	const updateTask = require( '../../tasks/dev/tasks/update' );
 	const ckeditor5Path = 'path/to/ckeditor5';
 	const ckeditor5Path = 'path/to/ckeditor5';
 	const workspaceRoot = '..';
 	const workspaceRoot = '..';
 	const workspaceAbsolutePath = path.join( ckeditor5Path, workspaceRoot );
 	const workspaceAbsolutePath = path.join( ckeditor5Path, workspaceRoot );