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

refactor: remove browserify, switch to webpack #498

Merged
merged 7 commits into from
Jun 14, 2018
Merged

refactor: remove browserify, switch to webpack #498

merged 7 commits into from
Jun 14, 2018

Commits on Jun 11, 2018

  1. refactor: remove browserify, switch to webpack

    This is a first step in moving the build from browserify to webpack.
    The goal is to use webpack for vendor-specific builds as well,
    replacing current combination of browserify, jq-based json manipulation
    and inlined shell scripting.
    
    This changes:
    - time required by `yarn build` from ~100s to ~30s
    - size of window.ipfs content script from 1.1M to 869K
    - size of entire add-on/dist from 6.5M to 5.6M
    lidel committed Jun 11, 2018
    Configuration menu
    Copy the full SHA
    db1d73e View commit details
    Browse the repository at this point in the history
  2. feat: improved webpack progress reporting

    This fixes noisy console logs on CI by switching to safe reported
    when in CI env
    lidel committed Jun 11, 2018
    Configuration menu
    Copy the full SHA
    fb973d8 View commit details
    Browse the repository at this point in the history
  3. chore: cleanup webpack config

    - removed custom options that we don't need to use for now
    - removed workarounds that are no longer needed
    lidel committed Jun 11, 2018
    Configuration menu
    Copy the full SHA
    c494a48 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2018

  1. refactor: move content script build to webpack

    - shared webpack config as a base for all targets
    - separates build targets for background page, GUI and content scripts
    - bundled webext polyfill for chrome, removed two calls to `tabs.executeScript`
    - detects and rebuilds ipfs proxy content script on changes (`yarn watch`)
    - removes browserify libs and other leftovers
    lidel committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    81c942f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #499 from ipfs-shipyard/webpack-content-scripts

    This is a PR on top of #498 
    
    - `add-on/dist/` size decreased to `5.5M`
    - shared webpack config as a base for all targets
    - separates build targets for background page, GUI and content scripts
    - bundled webext polyfill for chrome, removed two calls to `tabs.executeScript`
    - detects and rebuilds ipfs proxy content script on changes (`yarn watch`)
    - removes browserify libs and other leftovers
    lidel committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    795ad53 View commit details
    Browse the repository at this point in the history
  3. chore: update yarn.lock

    lidel committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    e64a89d View commit details
    Browse the repository at this point in the history
  4. chore: add CI=true to env of docker builds at CI

    This will make logs non-interactive and more detailed
    lidel committed Jun 13, 2018
    Configuration menu
    Copy the full SHA
    dc51884 View commit details
    Browse the repository at this point in the history