Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

update webpack with parallel-webpack #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amrfarid140
Copy link

@amrfarid140 amrfarid140 commented May 14, 2018

  • Added helper functions to get list of all functions directories located in a directory
  • Added helper function to map list of all functions directories located in a directory into Webpack entry object
  • Modified webpack config file to generate a list of configuration objects for each entry found
  • Renamed function files to be "index.ts"

** PR Checklist
Please check if your PR fulfills the following requirements:

** PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

** What is the current behavior?

Replacing addition of entry points for Webpack from a manual process to an automatic process by reading all the subfolders in the source directory. Also added parallel execution for each entry point which should speed up the process for medium & large sized funcitons app.

Issue Number: 53

** What is the new behavior?
Uses parallel-webpack to build multiple webpack configuration in parallel. Beneficial when multiple entry points exist.
** Does this PR introduce a breaking change?

[ ] Yes
[x] No

** Other information

- Added helper functions to get list of all functions directories located in a directory
- Added helper function to map list of all functions directories located in a directory into Webpack entry object
- Modified webpack config file to generate a list of configuration objects for each entry found
- renamed function files to be "index.ts"
@codecov
Copy link

codecov bot commented May 14, 2018

Codecov Report

Merging #54 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #54   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          36     36           
  Branches        9      9           
=====================================
  Hits           36     36
Impacted Files Coverage Δ
src/some-function/index.ts 100% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8599f72...6003a61. Read the comment docs.

@fulls1z3 fulls1z3 changed the title Replace webpack with parallel-webpack update webpack with parallel-webpack May 15, 2018
@fulls1z3 fulls1z3 self-requested a review May 15, 2018 14:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants