Преглед изворни кода

Added translation tasks to gulpfile.

Maciej Bukowski пре 9 година
родитељ
комит
e48c63251d
3 измењених фајлова са 20 додато и 0 уклоњено
  1. 14 0
      gulpfile.js
  2. 1 0
      package.json
  3. 5 0
      scripts/switch-to-dev-dev.sh

+ 14 - 0
gulpfile.js

@@ -46,3 +46,17 @@ function getTestOptions() {
 	return require( '@ckeditor/ckeditor5-dev-tests' )
 		.parseArguments( process.argv.slice( 2 ) );
 }
+
+// Translations ----------------------------------------------------------------
+
+gulp.task( 'translations:collect', () => {
+	return require( '@ckeditor/ckeditor5-dev-env' )( {} ).collectTranslations();
+} );
+
+gulp.task( 'translations:upload', () => {
+	return require( '@ckeditor/ckeditor5-dev-env' )( {} ).uploadTranslations();
+} );
+
+gulp.task( 'translations:download', () => {
+	return require( '@ckeditor/ckeditor5-dev-env' )( {} ).downloadTranslations();
+} );

+ 1 - 0
package.json

@@ -30,6 +30,7 @@
   "devDependencies": {
     "@ckeditor/ckeditor5-dev-docs": "^6.1.0",
     "@ckeditor/ckeditor5-dev-lint": "^2.0.0",
+    "@ckeditor/ckeditor5-dev-env": "^2.0.0",
     "@ckeditor/ckeditor5-dev-tests": "^6.1.0",
     "gulp": "^3.9.0",
     "guppy-pre-commit": "^0.4.0",

+ 5 - 0
scripts/switch-to-dev-dev.sh

@@ -29,3 +29,8 @@ echo "Linking ckeditor5-dev-tests..."
 
 rm -rf node_modules/@ckeditor/ckeditor5-dev-tests
 ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-tests node_modules/@ckeditor
+
+echo "Linking ckeditor5-dev-webpack-plugin..."
+
+rm -rf node_modules/@ckeditor/ckeditor5-dev-webpack-plugin
+ln -s ../../../ckeditor5-dev/packages/ckeditor5-dev-webpack-plugin node_modules/@ckeditor