]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Support only ES2015 features that don't use polyfills 7762/head
authorcolin-marshall <colin.michael.marshall@gmail.com>
Thu, 7 Jan 2016 04:42:32 +0000 (21:42 -0700)
committercolin-marshall <colin.michael.marshall@gmail.com>
Thu, 7 Jan 2016 04:42:32 +0000 (21:42 -0700)
.babelrc
gulp/javascript.js
package.json

index fd2925f3d0ef02ebdbc1abbdbaecdc87bb16f63e..de0edabacd99a4250fdf0e560e34512df23a429c 100644 (file)
--- a/.babelrc
+++ b/.babelrc
@@ -1,4 +1,13 @@
 {
-  "plugins": ["transform-es2015-modules-umd"],
-  "presets": ["es2015"]
+       "plugins": [
+       "transform-es2015-arrow-functions",
+       "transform-es2015-block-scoped-functions",
+       "transform-es2015-block-scoping",
+       "transform-es2015-classes",
+       "transform-es2015-destructuring",
+       "transform-es2015-modules-umd",
+       "transform-es2015-template-literals",
+       "transform-es2015-parameters",
+       "transform-es2015-spread",
+  ]
 }
\ No newline at end of file
index eecbce696d7d0f89f59061f068ccb770ecb60ad3..93d4b09ee81d15e38918ca66aecf7bfb0bc9b8e8 100644 (file)
@@ -26,9 +26,7 @@ gulp.task('javascript', ['javascript:foundation', 'javascript:deps', 'javascript
 
 gulp.task('javascript:foundation', function() {
   return gulp.src(FOUNDATION)
-    .pipe(babel({
-      presets: ['es2015']
-    }))
+    .pipe(babel())
     .pipe(concat('foundation.js'))
     .pipe(gulp.dest('_build/assets/js'));
 });
index 4d55e8adab8fe6d1c820f054e1ac70c9f59475f3..7edbace60f1d8fa47b95ca7bbb49390c393ed9f4 100644 (file)
   "license": "MIT",
   "devDependencies": {
     "babel-core": "^6.3.26",
+    "babel-plugin-transform-es2015-arrow-functions": "^6.3.13",
+    "babel-plugin-transform-es2015-block-scoped-functions": "^6.3.13",
+    "babel-plugin-transform-es2015-block-scoping": "^6.4.0",
+    "babel-plugin-transform-es2015-classes": "^6.3.15",
+    "babel-plugin-transform-es2015-destructuring": "^6.3.15",
     "babel-plugin-transform-es2015-modules-umd": "^6.3.13",
-    "babel-preset-es2015": "^6.3.13",
+    "babel-plugin-transform-es2015-parameters": "^6.3.26",
+    "babel-plugin-transform-es2015-spread": "^6.4.0",
+    "babel-plugin-transform-es2015-template-literals": "^6.3.13",
     "bootcamp": "^1.1.7",
     "browser-sync": "^2.8.2",
     "clipboard": "^1.5.5",