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

Use Webpack Aliases #3711

Merged
merged 14 commits into from Dec 5, 2016
Merged

Use Webpack Aliases #3711

merged 14 commits into from Dec 5, 2016

Conversation

ngotchac
Copy link
Contributor

@ngotchac ngotchac commented Dec 2, 2016

A few aliases has been added to Webpack :

  • ~ points to the src dir, so we don't have to write ../../../../util
  • providers, ui, views, contracts and modals point to the right directoy

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. M7-ui labels Dec 2, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling adcd707 on ng-webpack-improv into ** on master**.

@@ -17,7 +17,7 @@
import BigNumber from 'bignumber.js';
import React, { Component, PropTypes } from 'react';

import { eip20 } from '../../../../contracts/abi';
import { eip20 } from 'contracts/abi';
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I probably would have preferred a ~/contracts/abi - as is just makes it very clear which is the local modules. (As opposed to the current which could be an alias or a module)

import * as abis from '../../contracts/abi';
import builtins from '../../views/Dapps/builtin.json';
import * as abis from 'contracts/abi';
import builtins from 'views/Dapps/builtin.json';
Copy link
Contributor

Choose a reason for hiding this comment

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

As per above.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.003%) to 85.924% when pulling 91019c9 on ng-webpack-improv into 0c7b7fc on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 85.928% when pulling 91019c9 on ng-webpack-improv into 0c7b7fc on master.

@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Dec 5, 2016
@jacogr jacogr merged commit 52b4ce0 into master Dec 5, 2016
@jacogr jacogr deleted the ng-webpack-improv branch December 5, 2016 10:47
@coveralls
Copy link

Coverage Status

Coverage increased (+0.006%) to 85.934% when pulling 91019c9 on ng-webpack-improv into 0c7b7fc on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 85.928% when pulling 91019c9 on ng-webpack-improv into 0c7b7fc 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.

None yet

3 participants