forked from react-grid-layout/react-grid-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(lint): apply prettier on existing files
- Loading branch information
Showing
11 changed files
with
107 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = require('./lib/ReactGridLayout').default; | ||
module.exports.utils = require('./lib/utils'); | ||
module.exports.Responsive = require('./lib/ResponsiveReactGridLayout').default; | ||
module.exports.Responsive.utils = require('./lib/responsiveUtils'); | ||
module.exports.WidthProvider = require('./lib/components/WidthProvider').default; | ||
module.exports = require("./lib/ReactGridLayout").default; | ||
module.exports.utils = require("./lib/utils"); | ||
module.exports.Responsive = require("./lib/ResponsiveReactGridLayout").default; | ||
module.exports.Responsive.utils = require("./lib/responsiveUtils"); | ||
module.exports.WidthProvider = require("./lib/components/WidthProvider").default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = require('./build/ReactGridLayout').default; | ||
module.exports.utils = require('./build/utils'); | ||
module.exports.Responsive = require('./build/ResponsiveReactGridLayout').default; | ||
module.exports.Responsive.utils = require('./build/responsiveUtils'); | ||
module.exports.WidthProvider = require('./build/components/WidthProvider').default; | ||
module.exports = require("./build/ReactGridLayout").default; | ||
module.exports.utils = require("./build/utils"); | ||
module.exports.Responsive = require("./build/ResponsiveReactGridLayout").default; | ||
module.exports.Responsive.utils = require("./build/responsiveUtils"); | ||
module.exports.WidthProvider = require("./build/components/WidthProvider").default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
// @flow | ||
|
||
import * as utils from './lib/utils'; | ||
export { default } from './lib/ReactGridLayout'; | ||
export { default as Responsive } from './lib/ResponsiveReactGridLayout'; | ||
export { default as WidthProvider } from './lib/components/WidthProvider'; | ||
import * as utils from "./lib/utils"; | ||
export { default } from "./lib/ReactGridLayout"; | ||
export { default as Responsive } from "./lib/ResponsiveReactGridLayout"; | ||
export { default as WidthProvider } from "./lib/components/WidthProvider"; | ||
|
||
export { | ||
utils | ||
}; | ||
export { utils }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,68 @@ | ||
'use strict'; | ||
var webpack = require('webpack'); | ||
var fs = require('fs'); | ||
"use strict"; | ||
var webpack = require("webpack"); | ||
var fs = require("fs"); | ||
|
||
// Builds example bundles | ||
module.exports = { | ||
mode: 'development', | ||
mode: "development", | ||
context: __dirname, | ||
entry: { | ||
commons: ["lodash"], | ||
commons: ["lodash"] | ||
}, | ||
optimization: { | ||
splitChunks: { | ||
cacheGroups: { | ||
commons: { | ||
name: 'commons', | ||
chunks: 'initial', | ||
name: "commons", | ||
chunks: "initial", | ||
minChunks: 2 | ||
} | ||
} | ||
} | ||
}, | ||
output: { | ||
path: __dirname + "/dist", | ||
filename: "[name].bundle.js", | ||
sourceMapFilename: "[file].map", | ||
path: __dirname + "/dist", | ||
filename: "[name].bundle.js", | ||
sourceMapFilename: "[file].map" | ||
}, | ||
module: { | ||
rules: [ | ||
{test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader', query: { | ||
cacheDirectory: true, | ||
plugins: [ | ||
'transform-react-inline-elements', | ||
'transform-react-constant-elements', | ||
] | ||
}} | ||
{ | ||
test: /\.jsx?$/, | ||
exclude: /node_modules/, | ||
loader: "babel-loader", | ||
query: { | ||
cacheDirectory: true, | ||
plugins: [ | ||
"transform-react-inline-elements", | ||
"transform-react-constant-elements" | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
new webpack.DefinePlugin({ | ||
"process.env": { | ||
NODE_ENV: JSON.stringify('production') | ||
NODE_ENV: JSON.stringify("production") | ||
} | ||
}), | ||
}) | ||
], | ||
resolve: { | ||
extensions: [".webpack.js", ".web.js", ".js", ".jsx"], | ||
alias: {'react-grid-layout': __dirname + '/index-dev.js'} | ||
alias: { "react-grid-layout": __dirname + "/index-dev.js" } | ||
} | ||
}; | ||
|
||
// Load all entry points | ||
var files = fs.readdirSync(__dirname + '/test/examples').filter(function(element, index, array){ | ||
var files = fs | ||
.readdirSync(__dirname + "/test/examples") | ||
.filter(function(element, index, array) { | ||
return element.match(/^.+\.jsx$/); | ||
}); | ||
}); | ||
|
||
for(var idx in files){ | ||
var file = files[idx]; | ||
var module_name = file.replace(/\.jsx$/,''); | ||
module.exports.entry[module_name] = './test/examples/' + file; | ||
for (var idx in files) { | ||
var file = files[idx]; | ||
var module_name = file.replace(/\.jsx$/, ""); | ||
module.exports.entry[module_name] = "./test/examples/" + file; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters