Skip to content

Commit

Permalink
Refactor file namings
Browse files Browse the repository at this point in the history
  • Loading branch information
zourdyzou committed Jul 1, 2022
1 parent 84c44c6 commit 70f8a5d
Show file tree
Hide file tree
Showing 27 changed files with 1,771 additions and 63 deletions.
24 changes: 12 additions & 12 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
/* eslint-env node */

module.exports = (api) => {
const mode = process.env.NODE_ENV ?? 'production';
const mode = process.env.NODE_ENV ?? "production";

// This caches the Babel config by environment.
api.cache.using(() => mode);

return {
presets: [
[
'@babel/preset-env',
"@babel/preset-env",
{
targets: {
browsers: ['>1%', 'last 4 versions', 'not ie < 9'],
browsers: [">1%", "last 4 versions", "not ie < 9"],
},
useBuiltIns: 'usage',
useBuiltIns: "usage",
debug: false,
corejs: 3,
},
],
'@babel/preset-react',
"@babel/preset-react",
[
"@babel/typescript",
{
Expand All @@ -29,13 +29,13 @@ module.exports = (api) => {
],
],
plugins: [
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-throw-expressions',
'@babel/proposal-object-rest-spread',
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-proposal-throw-expressions",
"@babel/proposal-object-rest-spread",
// Applies the react-refresh Babel plugin on non-production modes only
mode !== 'production' && 'react-refresh/babel',
mode !== "production" && mode !== "test" ? "react-refresh/babel" : null,
].filter(Boolean),
};
};
};
31 changes: 0 additions & 31 deletions bin/App.js

This file was deleted.

1 change: 0 additions & 1 deletion bin/helpers/CellsManipulator.js

This file was deleted.

1 change: 0 additions & 1 deletion bin/helpers/CellsManipulator.test.js

This file was deleted.

1 change: 0 additions & 1 deletion bin/helpers/Field.js

This file was deleted.

1 change: 0 additions & 1 deletion bin/helpers/Field.test.js

This file was deleted.

5 changes: 0 additions & 5 deletions bin/react.d.js

This file was deleted.

Loading

0 comments on commit 70f8a5d

Please sign in to comment.