Browse Source

Enhancement: Use npm scripts for translations tasks.

Maciej Gołaszewski 8 years ago
parent
commit
afa27c62d3
2 changed files with 3 additions and 20 deletions
  1. 0 20
      gulpfile.js
  2. 3 0
      package.json

+ 0 - 20
gulpfile.js

@@ -11,26 +11,6 @@ const gulp = require( 'gulp' );
 
 const assertIsInstalled = require( './scripts/util/assertisinstalled' );
 
-// Translations. --------------------------------------------------------------
-
-gulp.task( 'translations:collect', () => {
-	assertIsInstalled( '@ckeditor/ckeditor5-dev-env' );
-
-	return require( '@ckeditor/ckeditor5-dev-env' ).collectTranslations();
-} );
-
-gulp.task( 'translations:upload', () => {
-	assertIsInstalled( '@ckeditor/ckeditor5-dev-env' );
-
-	return require( '@ckeditor/ckeditor5-dev-env' ).uploadTranslations();
-} );
-
-gulp.task( 'translations:download', () => {
-	assertIsInstalled( '@ckeditor/ckeditor5-dev-env' );
-
-	return require( '@ckeditor/ckeditor5-dev-env' ).downloadTranslations();
-} );
-
 // Releasing. -----------------------------------------------------------------
 
 gulp.task( 'changelog:dependencies', () => {

+ 3 - 0
package.json

@@ -73,6 +73,9 @@
     "test:manual": "node --max_old_space_size=4096 ./node_modules/.bin/ckeditor5-dev-tests-manual",
     "docs": "./scripts/docs/build-docs.js",
     "docs:api": "./scripts/docs/build-api-docs.js",
+    "translations:collect": "ckeditor5-dev-env-translations collect",
+    "translations:download": "ckeditor5-dev-env-translations download",
+    "translations:upload": "ckeditor5-dev-env-translations upload",
     "install-optional-dependencies": "./scripts/install-optional-dependencies.sh",
     "switch-to-dev-dev": "./scripts/switch-to-dev-dev.sh",
     "build-and-publish-docs": "./scripts/docs/build-and-publish.js"