Page MenuHomePhabricator

Create a bundler configuration for Vue.js search
Closed, ResolvedPublic3 Estimated Story Points

Description

Vue.js templates and TypeScript scripts are some of the source inputs for the WVUI component library. JavaScript and CSS are the outputs needed for consumption by the Vector skin use case. There is also interest in generating outputs for other use cases. Although TypeScript ships with a compiler, it has very limited flexibility for the bundling (e.g., Less imports and splitting). A bundler is needed. This task encompasses the work to create a simple bundler configuration that produces a single output but allows for great flexibility in the build products generated.

  • Patch

https://github.com/wikimedia/wvui/pull/33
https://github.com/wikimedia/wvui/pull/43

Acceptance criteria

  • The build product is generated in dist/.
  • The build product supports template, TypeScript, and Less inputs and generates JS and CSS outputs.
  • The build product assumes a Vue.js 2 runtime is present but does not require a compiler to execute.

Event Timeline

ovasileva set the point value for this task to 3.Jul 1 2020, 4:34 PM

LGTM as written and executed.