discourse/vendor/assets/javascripts
Joffrey JAFFEUX 9a4f6619d9
DEV: upgrades babel to 6.26.3 (#7651)
This is the last version of the 6.x babel branch.

To achieve this I used https://github.com/babel/babel-standalone witht he following patch:

diff --git a/gulpfile.js b/gulpfile.js
index 2121b5f..c40bfa3 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -74,24 +74,23 @@ const minifyAndRename = lazypipe()
   .pipe(uglify)
   .pipe(rename, { extname: '.min.js' });

-gulp.task('default', ['build']);
-gulp.task('build', ['build-babel', 'build-babili']);
-
-gulp.task('build-babel', cb => {
-  pump([
-    gulp.src('src/index.js'),
-    webpackBuild('babel.js', 'Babel', require('./package.json').version),
-    gulp.dest('.'),
-    minifyAndRename(),
-    gulp.dest('.'),
-  ], cb);
-});
-gulp.task('build-babili', cb => {
-  pump([
-    gulp.src('src/babili.js'),
-    webpackBuild('babili.js', 'Babili', require('./packages/babili-standalone/package.json').version),
-    gulp.dest('packages/babili-standalone/'),
-    minifyAndRename(),
-    gulp.dest('packages/babili-standalone/'),
-  ], cb);
-});
+  gulp.task('build-babel', gulp.series(cb => {
+    pump([
+      gulp.src('src/index.js'),
+      webpackBuild('babel.js', 'Babel', require('./package.json').version),
+      gulp.dest('.'),
+      minifyAndRename(),
+      gulp.dest('.'),
+    ], cb);
+  }));
+  gulp.task('build-babili', gulp.series(cb => {
+    pump([
+      gulp.src('src/babili.js'),
+      webpackBuild('babili.js', 'Babili', require('./packages/babili-standalone/package.json').version),
+      gulp.dest('packages/babili-standalone/'),
+      minifyAndRename(),
+      gulp.dest('packages/babili-standalone/'),
+    ], cb);
+  }));
+gulp.task('build', gulp.series('build-babel', 'build-babili'));
+gulp.task('default', gulp.series('build'));
diff --git a/package.json b/package.json
index f2414d2..854cfad 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
     "url": "git+https://github.com/Daniel15/babel-standalone.git"
   },
   "devDependencies": {
-    "babel-core": "6.26.0",
+    "babel-core": "6.26.3",
     "babel-helper-builder-react-jsx": "6.23.0",
     "babel-loader": "6.4.1",
     "babel-plugin-check-es2015-constants": "6.22.0",
@@ -123,7 +123,7 @@
     "babel-preset-stage-1": "6.24.1",
     "babel-preset-stage-2": "6.24.1",
     "babel-preset-stage-3": "6.24.1",
-    "gulp": "^3.9.1",
+    "gulp": "^4",
     "gulp-rename": "^1.2.2",
     "gulp-uglify": "^2.0.1",
     "jest": "^18.1.0",

and then ran:
yarn
yarn run build
2019-05-30 17:08:37 +02:00
..
highlightjs DEV: Use yarn to manage Highlight.js dependency 2019-01-14 12:46:35 -05:00
moment-locale DEV: updates moment.js and moment-timezone.js 2019-04-26 15:00:57 +02:00
moment-timezone-names-locale FEATURE: Add localized timezone names (#7004) 2019-02-25 14:40:02 -05:00
Markdown.Converter.js
babel.js DEV: upgrades babel to 6.26.3 (#7651) 2019-05-30 17:08:37 +02:00
bootbox.js Add btn-default class to all default buttons (#6521) 2018-10-24 16:09:36 -04:00
bootstrap-modal.js DEV: upgrades bootstrap-modal (#7235) 2019-03-21 14:18:12 +01:00
break_string.js Extract breaking up a string into a separate file, include it in 2014-03-20 14:34:51 -04:00
browser-update.js.erb FIX: correctly display browser is old message to IE10 2019-05-06 10:45:45 +10:00
buffered-proxy.js DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
caret_position.js DEV: reduces memory footprint of tests - step 1 (#7591) 2019-05-28 12:15:12 +02:00
ember-qunit.js Upgrade QUnit to latest version 2017-06-15 10:12:07 -04:00
fake_xml_http_request.js TESTS: Use Pretender in test mode for more flexible server responses 2014-07-31 16:49:30 -04:00
favcount.js Use Yarn to manage dependencies, cleanup unused bootstrap libs (#6436) 2018-10-03 10:15:43 -04:00
handlebars.js SECURITY: Update Handlebars to 4.1 2019-04-10 15:38:21 -04:00
handlebars.runtime.js SECURITY: Update Handlebars to 4.1 2019-04-10 15:38:21 -04:00
highlight.js FIX: Letters between words incorrectly highlighted within post. 2019-04-03 15:57:51 +08:00
i18n-patches.js FIX: Fallback locale was not available for extra translations 2019-05-24 11:38:26 +02:00
intersection-observer.js FEATURE: polyfill intersection observer for IE11 / iOS Safari 2018-12-12 15:36:08 +11:00
jquery.autoellipsis-1.0.10.js Don't pre-minifiy autoellipsis 2017-05-18 15:16:15 -04:00
jquery.ba-resize.js Use unminified resize to make debugging easier 2017-03-22 16:39:18 -04:00
jquery.color.js Use Yarn to manage dependencies, cleanup unused bootstrap libs (#6436) 2018-10-03 10:15:43 -04:00
jquery.cookie.js Use Yarn to manage dependencies, cleanup unused bootstrap libs (#6436) 2018-10-03 10:15:43 -04:00
jquery.fileupload.js FIX: 🐛 upload on IE9 wasn't working :'( 2015-01-28 19:43:20 +01:00
jquery.iframe-transport.js FIX: 🐛 upload on IE9 wasn't working :'( 2015-01-28 19:43:20 +01:00
jquery.js DEV: jquery 3.4.1 (#7470) 2019-05-02 12:18:32 +02:00
jquery.putcursoratend.js
jquery.sortable.js work in progress sortable categories 2013-10-21 15:25:20 +11:00
jquery.tagsinput.js Use Yarn to manage dependencies, cleanup unused bootstrap libs (#6436) 2018-10-03 10:15:43 -04:00
jquery.ui.widget.js FIX: 🐛 upload on IE9 wasn't working :'( 2015-01-28 19:43:20 +01:00
lodash.js FIX: adds groupBy to lodash available functions list (#7579) 2019-05-21 08:58:57 +02:00
markdown-it.js FEATURE: update CommonMark to version 0.28 2018-03-08 12:19:53 +11:00
moment-timezone-with-data.js DEV: Use moment-timezone with 10-year range data 2019-05-07 23:42:49 -04:00
moment.js DEV: updates moment.js and moment-timezone.js 2019-04-26 15:00:57 +02:00
mousetrap-global-bind.js FIX: make composer full screen shortcut work when inputs have focus (#6907) 2019-02-14 00:19:27 -05:00
mousetrap.js DEV: Update Mousetrap to 1.6.3 2019-03-25 10:01:55 -04:00
resumable.js Use Yarn to manage dependencies, cleanup unused bootstrap libs (#6436) 2018-10-03 10:15:43 -04:00
rsvp.js
show-html.js
sweetalert.js Javascript file was missing 2016-09-22 09:52:19 -04:00
virtual-dom-amd.js FEATURE: Use virtual dom framework for faster post rendering 2016-02-11 11:00:40 -05:00
virtual-dom.js FEATURE: Use virtual dom framework for faster post rendering 2016-02-11 11:00:40 -05:00
xss.min.js REFACTOR: PreloadStore to ES6 2016-07-11 12:57:05 -04:00