Merge branch 'babel-all-the-things' into 'master'

Use babel to transpile all non-vendor javascript assets regardless of file extension

See merge request !8988
This commit is contained in:
Fatih Acet 2017-02-06 14:15:44 +00:00
commit 0b97dd7ee4
3 changed files with 11 additions and 4 deletions

View file

@ -0,0 +1,5 @@
---
title: use babel to transpile all non-vendor javascript assets regardless of file
extension
merge_request: 8988
author:

View file

@ -49,8 +49,8 @@ var config = {
module: {
loaders: [
{
test: /\.es6$/,
exclude: /node_modules/,
test: /\.(js|es6)$/,
exclude: /(node_modules|vendor\/assets)/,
loader: 'babel-loader',
query: {
// 'use strict' was broken in sprockets-es6 due to sprockets concatination method.

View file

@ -1,12 +1,14 @@
{
"private": true,
"scripts": {
"dev-server": "node_modules/.bin/webpack-dev-server --config config/webpack.config.js",
"dev-server": "webpack-dev-server --config config/webpack.config.js",
"eslint": "eslint --max-warnings 0 --ext .js,.js.es6 .",
"eslint-fix": "npm run eslint -- --fix",
"eslint-report": "npm run eslint -- --format html --output-file ./eslint-report.html",
"karma": "karma start config/karma.config.js --single-run",
"karma-start": "karma start config/karma.config.js"
"karma-start": "karma start config/karma.config.js",
"webpack": "webpack --config config/webpack.config.js",
"webpack-prod": "NODE_ENV=production npm run webpack"
},
"dependencies": {
"babel": "^5.8.38",