Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build - unify build process #6276

Closed
wants to merge 7 commits into from
Closed

Build - unify build process #6276

wants to merge 7 commits into from

Conversation

kumavis
Copy link
Member

@kumavis kumavis commented Mar 11, 2019

Fixes #4540
Updates #5584

The goal of this PR is to unify our build configuration for production and tests.
The mascara and flat tests use a special build system that differs from our normal build system. Divergence in the build systems can lead to false positives and false negatives. It also has prevented unification of our build configuration, specifically the browserify transforms.

Some of the browserify transforms are defined in the gulpfile, while other transforms are defined in the package.json "browserify" field.

Major parts of this PR

  • Mascara - separate PR mascara - remove from project #6283
    Removes mascara tests and source. Mascara tests use a custom build system. Since we don't currently run these tests or maintain the mascara service, this is essentially dead code.
  • Flat tests - related PR Ability to load fixture state for e2e tests #6215 related PR Add initial e2e specs using new test infrastructure #6387
    This PR Removes the flat tests. Flat tests use a custom build system. We currently run these tests and they have been updated occasionally in recent history. Removing these tests may be unnecessary! It may be possible to unify the build system. For the sake of quick development of this proposal, they have been removed.
  • Transforms in Gulpfile separate PR blocked by mascara, flat tests
    Transforms from package.json have been moved to the gulpfile with the other transforms. This unifies our build system.
  • Upgrade to Babel@7 Babelify@10 blocked by old babelify in deps
    gets us up to date with babel ecosystem and new features like browserlist support + other platforms

@metamaskbot
Copy link
Collaborator

Builds ready [2b42932]: chrome, firefox, edge, opera

@metamaskbot
Copy link
Collaborator

Builds ready [a07edee]: chrome, firefox, edge, opera

@kumavis kumavis force-pushed the build-improvements branch from 8044f49 to 02ae983 Compare March 11, 2019 11:26
@metamaskbot
Copy link
Collaborator

Builds ready [02ae983]: chrome, firefox, edge, opera

@kumavis
Copy link
Member Author

kumavis commented Mar 11, 2019

edit: fixed it

keep getting stuck in this weird dep resolution issue

Error: Cannot find module '@babel/runtime/core-js/object/get-prototype-of' from '/home/user/Development/metamask-extension/node_modules/@material-ui/core/Fade'

@kumavis kumavis changed the title Build - remove mascara and simplify build process Build - unify build process Mar 12, 2019
@whymarrh whymarrh closed this Aug 8, 2019
@whymarrh whymarrh deleted the build-improvements branch January 30, 2020 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test - Integration - Mascara
4 participants