Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Update Webpack => v2 #3643

Merged
merged 23 commits into from
Nov 28, 2016
Merged

Update Webpack => v2 #3643

merged 23 commits into from
Nov 28, 2016

Conversation

ngotchac
Copy link
Contributor

This PR is a first WIP for updating UI JS dependencies.

It should fix #3520 as the default saved version of a new installed package begins with ~ (which fixes the version, updating only for patches) instead of the more general ^.

Webpack is updated to v2, with a working Hot Reload. Eslint is also updated.

This will make updating React and Material UI easier.

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. M7-ui labels Nov 28, 2016
"build:app": "webpack --progress",
"build:lib": "webpack --config webpack.libraries --progress",
"build:dll": "webpack --config webpack.vendor --progress",
"build:app": "webpack --config webpack/config --progress",
Copy link
Contributor

@jacogr jacogr Nov 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we maybe rename the config now? Each are config files, we can call this one app (or something similar)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

<Provider store={ store }>
<Container />
</Provider>
<Provider store={ store }>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad this got fixed in eslint, was driving me up the wall.

@@ -22,7 +22,10 @@ import IconButton from 'material-ui/IconButton';
import AddIcon from 'material-ui/svg-icons/content/add';
import RemoveIcon from 'material-ui/svg-icons/content/remove';

import { Input, InputAddressSelect, Select } from '../../../ui';
import Input from '../../../ui/Form/Input';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh, circular detection. Good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still one in src/api/contract.js importing Api to check that the given api in constructor is an instance of Api class, and src/api/api.js importing Contract used in the newContract method...

Copy link
Contributor

@jacogr jacogr Nov 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could just change that one in contract.js to an existence check for the api & abi. (There are no places where we encourage direct use)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@jacogr
Copy link
Contributor

jacogr commented Nov 28, 2016

Merge conflicts.

@jacogr jacogr added the A8-looksgood 🦄 Pull request is reviewed well. label Nov 28, 2016
@jacogr jacogr removed the A0-pleasereview 🤓 Pull request needs code review. label Nov 28, 2016
@gavofyork gavofyork merged commit 5cab951 into master Nov 28, 2016
@gavofyork gavofyork deleted the ng-webpack-update branch November 28, 2016 17:15
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d78de18 on ng-webpack-update into ** on master**.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create NPM shrinkwarp file, fix package versions
4 participants