Rename .jsx files to .js

Since we use Babel to transform JSX and Webpack for bundling,
ti doesn't make sense anymore to keep a separate .jsx extension
for files.

Change-Id: If70b512d7a27684d2b9b84b24f19658294cc1505
This commit is contained in:
Vitaly Kramskikh 2015-11-08 17:54:24 +07:00
parent ae91233ea0
commit a32537e1fa
33 changed files with 8 additions and 4 deletions

View File

@ -135,7 +135,6 @@ gulp.task('jison', function() {
var jsFiles = [
'static/**/*.js',
'static/**/*.jsx',
'!static/build/**',
'!static/vendor/**',
'!static/expression/parser.js',

View File

@ -17,14 +17,19 @@ module.exports = {
{test: /\.html$/, loader: 'raw'},
{test: /\.json$/, loader: 'json'},
{test: /\.jison$/, loader: 'jison'},
{test: /\.jsx$/, loader: 'babel', exclude: /(node_modules|bower_components)/},
{test: /\.(gif|png)$/, loader: 'file'},
{test: /\.(woff|woff2|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/, loader: 'file'},
{test: /\.(gif|png)$/, loader: 'file'}
{
test: /\.js$/,
loader: 'babel',
exclude: [/(node_modules|vendor\/custom)\//, /\/expression\/parser\.js$/],
query: {cacheDirectory: true}
}
]
},
resolve: {
modulesDirectories: ['static', 'node_modules', 'vendor/custom'],
extensions: ['', '.js', '.jsx'],
extensions: ['', '.js'],
alias: {
underscore: 'lodash',
react: 'react/addons',