This repository has been archived by the owner on Oct 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Merged
Upgrade webpack #86
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ceb3606
Upgrade webpack
SimenB 0118765
Transform modules in tests
SimenB 07c4e56
rc1 of extract text
SimenB 0fb2f3d
rc2 of extract text
SimenB 9affe9e
stable of extract text
SimenB de8feac
last dep bumps
SimenB 331b9d5
Add ModuleConcatenationPlugin
SimenB 376d765
Fix lint error
SimenB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
{ | ||
"presets": ["react", "es2015", "stage-2"], | ||
"presets": ["react", ["es2015", {"modules": false}], "stage-2"], | ||
"plugins": ["transform-decorators-legacy"], | ||
"env": { | ||
"development": { | ||
"presets": ["react-hmre"] | ||
}, | ||
"test": { | ||
"plugins": ["transform-es2015-modules-commonjs"] | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -25,11 +25,11 @@ | |
"license": "Apache-2.0", | ||
"scripts": { | ||
"build": "rm -rf dist && mkdir -p dist/public && npm run build:assets && npm run build:html && npm run build:img && npm run build:ico", | ||
"build:assets": "NODE_ENV=production webpack -p", | ||
"build:assets": "NODE_ENV=production webpack -p --display-optimization-bailout", | ||
"build:html": "cp public/*.html dist/.", | ||
"build:ico": "cp public/*.ico dist/.", | ||
"build:img": "cp public/*.png dist/public/.", | ||
"start": "NODE_ENV=development webpack-dev-server --config webpack.config.js --progress --colors", | ||
"start": "NODE_ENV=development webpack-dev-server --progress --colors --display-optimization-bailout", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. webpack-dev-server says There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I didn't actually test that... It can be removed, it's really just useful for production |
||
"start:heroku": "UNLEASH_API=http://unleash.herokuapp.com npm run start", | ||
"lint": "eslint . --ext js,jsx", | ||
"test": "jest", | ||
|
@@ -59,30 +59,29 @@ | |
"devDependencies": { | ||
"babel-core": "^6.14.0", | ||
"babel-eslint": "^7.1.0", | ||
"babel-loader": "^6.2.5", | ||
"babel-loader": "^7.1.1", | ||
"babel-plugin-transform-decorators-legacy": "^1.3.4", | ||
"babel-preset-es2015": "^6.14.0", | ||
"babel-preset-react": "^6.11.1", | ||
"babel-preset-react-hmre": "^1.1.1", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"babel-preset-stage-2": "^6.13.0", | ||
"css-loader": "^0.25.0", | ||
"css-loader": "^0.28.4", | ||
"eslint": "^4.1.1", | ||
"eslint-config-finn": "^2.0.0", | ||
"eslint-config-finn-react": "^2.0.0", | ||
"eslint-plugin-react": "^7.1.0", | ||
"extract-text-webpack-plugin": "^1.0.1", | ||
"extract-text-webpack-plugin": "^3.0.0", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^20.0.4", | ||
"node-sass": "~3.12.1", | ||
"postcss-loader": "^0.13.0", | ||
"node-sass": "^4.5.3", | ||
"react-test-renderer": "^15.4.2", | ||
"redux-devtools": "^3.3.1", | ||
"sass-loader": "^4.0.2", | ||
"style-loader": "^0.13.1", | ||
"sass-loader": "^6.0.6", | ||
"style-loader": "^0.18.2", | ||
"toolbox-loader": "0.0.3", | ||
"webpack": "^1.13.2", | ||
"webpack-dev-server": "^1.15.1" | ||
"webpack": "^3.1.0", | ||
"webpack-dev-server": "^2.5.1" | ||
}, | ||
"jest": { | ||
"moduleNameMapper": { | ||
|
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 |
---|---|---|
|
@@ -34,7 +34,7 @@ function storeApplicationMetaData (appName, key, value) { | |
}).then(throwIfNotSuccess); | ||
} | ||
|
||
module.exports = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. all of these |
||
export default { | ||
fetchApplication, | ||
fetchAll, | ||
fetchApplicationsWithStrategyName, | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ function revive (featureName) { | |
} | ||
|
||
|
||
module.exports = { | ||
export default { | ||
fetchAll, | ||
revive, | ||
}; | ||
|
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 |
---|---|---|
|
@@ -8,6 +8,6 @@ function fetchAll () { | |
.then(response => response.json()); | ||
} | ||
|
||
module.exports = { | ||
export default { | ||
fetchAll, | ||
}; |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might consider
preset-env
?