Compare commits
No commits in common. "392cda25eaf5bf7bcb499c50c9ba8d9e299c9d87" and "c45be9a4764dd1cdcdf062ab0194dc4de46f8fd9" have entirely different histories.
392cda25ea
...
c45be9a476
31
.babelrc
31
.babelrc
|
@ -1,22 +1,25 @@
|
||||||
{
|
{
|
||||||
"presets": [
|
"presets": [
|
||||||
["babel-preset-env", {
|
["babel-preset-env", {
|
||||||
"targets": {
|
"loose": false,
|
||||||
"browsers": [
|
"modules": false
|
||||||
"> 1%",
|
}],
|
||||||
"last 4 versions",
|
"babel-preset-react"
|
||||||
"Firefox ESR",
|
|
||||||
"ios >= 8"
|
|
||||||
],
|
|
||||||
"uglify": false
|
|
||||||
},
|
|
||||||
"spec": true,
|
|
||||||
"debug": true
|
|
||||||
}]
|
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"babel-plugin-transform-react-constant-elements",
|
"react-hot-loader/babel",
|
||||||
"babel-plugin-transform-class-properties",
|
"babel-plugin-transform-react-constant-elements", [
|
||||||
|
"babel-plugin-transform-react-remove-prop-types", {}
|
||||||
|
],
|
||||||
|
"babel-plugin-transform-decorators-legacy",
|
||||||
|
"babel-plugin-transform-class-properties", [
|
||||||
|
"babel-plugin-transform-runtime", {
|
||||||
|
"helpers": false,
|
||||||
|
"polyfill": false,
|
||||||
|
"regenerator": true,
|
||||||
|
"moduleName": "nwb"
|
||||||
|
}
|
||||||
|
],
|
||||||
"babel-plugin-syntax-dynamic-import"
|
"babel-plugin-syntax-dynamic-import"
|
||||||
]
|
]
|
||||||
}
|
}
|
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
|
@ -59,8 +59,8 @@
|
||||||
"eslint-plugin-babel": "^4.1.2",
|
"eslint-plugin-babel": "^4.1.2",
|
||||||
"eslint-plugin-import": "^2.7.0",
|
"eslint-plugin-import": "^2.7.0",
|
||||||
"eslint-plugin-json": "^1.2.0",
|
"eslint-plugin-json": "^1.2.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.0.2",
|
"eslint-plugin-jsx-a11y": "^5.1.1",
|
||||||
"eslint-plugin-react": "^7.3.0",
|
"eslint-plugin-react": "^7.2.1",
|
||||||
"extract-text-webpack-plugin": "^3.0.0",
|
"extract-text-webpack-plugin": "^3.0.0",
|
||||||
"file-loader": "^0.11.2",
|
"file-loader": "^0.11.2",
|
||||||
"html-webpack-plugin": "^2.30.1",
|
"html-webpack-plugin": "^2.30.1",
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
"nwb": "^0.18.10",
|
"nwb": "^0.18.10",
|
||||||
"nwb-sass": "^0.8.1",
|
"nwb-sass": "^0.8.1",
|
||||||
"postcss-loader": "^2.0.6",
|
"postcss-loader": "^2.0.6",
|
||||||
"preact": "^8.2.4",
|
"preact": "^8.2.1",
|
||||||
"preact-compat": "^3.17.0",
|
"preact-compat": "^3.17.0",
|
||||||
"progress-bar-webpack-plugin": "^1.10.0",
|
"progress-bar-webpack-plugin": "^1.10.0",
|
||||||
"prop-types": "^15.5.10",
|
"prop-types": "^15.5.10",
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
"react-fontawesome": "^1.6.1",
|
"react-fontawesome": "^1.6.1",
|
||||||
"react-helmet": "^5.1.3",
|
"react-helmet": "^5.1.3",
|
||||||
"react-hot-loader": "^3.0.0-beta.7",
|
"react-hot-loader": "^3.0.0-beta.7",
|
||||||
"react-router": "^4.2.0",
|
"react-router": "^4.1.2",
|
||||||
"resolve-url-loader": "^2.1.0",
|
"resolve-url-loader": "^2.1.0",
|
||||||
"sass-loader": "^6.0.6",
|
"sass-loader": "^6.0.6",
|
||||||
"slash": "^1.0.0",
|
"slash": "^1.0.0",
|
||||||
|
@ -94,7 +94,6 @@
|
||||||
"body-parser": "^1.17.2",
|
"body-parser": "^1.17.2",
|
||||||
"express": "^4.15.4",
|
"express": "^4.15.4",
|
||||||
"moment-timezone": "^0.5.13",
|
"moment-timezone": "^0.5.13",
|
||||||
"mysql": "^2.14.1",
|
"mysql": "^2.14.1"
|
||||||
"nodemon": "^1.11.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
32
src/.babelrc
32
src/.babelrc
|
@ -1,32 +0,0 @@
|
||||||
{
|
|
||||||
"presets": [
|
|
||||||
["babel-preset-env", {
|
|
||||||
"targets": {
|
|
||||||
"browsers": [
|
|
||||||
"> 1%",
|
|
||||||
"last 4 versions",
|
|
||||||
"Firefox ESR",
|
|
||||||
"ios >= 8"
|
|
||||||
],
|
|
||||||
"uglify": false
|
|
||||||
},
|
|
||||||
/*"spec": true,*/
|
|
||||||
"debug": true,
|
|
||||||
"modules": false
|
|
||||||
}],
|
|
||||||
"babel-preset-react"
|
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
"react-hot-loader/babel",
|
|
||||||
"babel-plugin-transform-react-constant-elements",
|
|
||||||
/*"babel-plugin-transform-react-remove-prop-types",*/
|
|
||||||
/*"babel-plugin-transform-decorators-legacy",*/
|
|
||||||
"babel-plugin-transform-class-properties",
|
|
||||||
["babel-plugin-transform-runtime", {
|
|
||||||
"helpers": false,
|
|
||||||
"polyfill": false,
|
|
||||||
"regenerator": true
|
|
||||||
}],
|
|
||||||
"babel-plugin-syntax-dynamic-import"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -16,6 +16,7 @@ Footer.propTypes = {
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
Footer.defaultProps = {
|
Footer.defaultProps = {
|
||||||
children: null,
|
children: null,
|
||||||
className: null,
|
className: null,
|
||||||
|
|
|
@ -142,9 +142,6 @@ export default (options) => {
|
||||||
importLoaders: 1,
|
importLoaders: 1,
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
modules: true,
|
modules: true,
|
||||||
localIdentName: production
|
|
||||||
? '[name]__[local]--[hash:base64:5]'
|
|
||||||
: '[name]__[local]--[hash:base64:5]',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -213,12 +210,10 @@ export default (options) => {
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
exclude: /node_modules/,
|
exclude: /node_modules/,
|
||||||
options: {
|
options: {
|
||||||
// Look for babel configuration in project directory
|
// Look for babel configuration in project directory
|
||||||
babelrc: true,
|
babelrc: true,
|
||||||
// Cache transformations to the filesystem (in default temp dir)
|
// Cache transformations to the filesystem (in default temp dir)
|
||||||
cacheDirectory: true,
|
cacheDirectory: true,
|
||||||
// Skip module transpiling as Webpack 2+ support it ootb
|
|
||||||
forceEnv: 'browser',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
...[
|
...[
|
||||||
|
|
Loading…
Reference in New Issue