Open Bug 1500192 Opened Last year Updated 3 months ago

Generate script-ful/noscript/debug HTML in m-c

Categories

(Firefox :: Messaging System, task, P3)

task

Tracking

()

People

(Reporter: dmose, Unassigned)

References

(Depends on 1 open bug, Blocks 2 open bugs)

Details

Our prerendered HTML pages include l10n strings, which means that they are currently built at export time, so both the original source and the prerendered HTML are checked into the tree.  

We'd like to make working with the AS source code less confusing, and we'd like to simplify uplifts for both AS and relman teams.  Furthermore, a recent [5 whys about a string export problem](https://docs.google.com/spreadsheets/d/1q1P7Z73a61Lete0IM4sayI6s6GSOg-4UQNnVBJxrAAY/edit?usp=sharing) identified this as a way to make our process more robust in general.

Note that there may be some cross-over with [the as-dynamic-prerendering bug](bug 1421463), if these things happen to be implemented in a similar timeframe.
Andrei is tracking the dependent bug.  Clear this when it's ready and we can make a decision around this
Flags: needinfo?(andrei.br92)
Strings related work (l10n in content process) depended on bug 1488973 which just got fixed. We already have bug 1438748 to track switching over to fluent and which needs to get fixed first.

Pre rendering in m-c afaik isn't something we can do right now, this would require npm as a build dependecy right? @dmose
Depends on: 1438748
Flags: needinfo?(andrei.br92) → needinfo?(dmose)
Currently, it would require webpack and various other dev-time dependencies.  That said, as Kate has pointed out, we could conceivably spend some work restructuring our build so that this particular piece doesn't require webpack and maybe uses the babel that the devtools guys have in-tree, so that we could do this in m-c sooner.  We'd probably need to spend a bit of time (an hour or two?) to decide whether this was really worth the cost.

Alternately, we could just do this in github now , and then move it to m-c once the rest of the rendering infrastructure has been stood up in m-c.
Flags: needinfo?(dmose)
Severity: normal → enhancement
Iteration: --- → 66.1 - Dec 10-23
Priority: -- → P2
Iteration: 66.1 - Dec 10-23 → ---
Priority: P2 → P3

There should be no more localized prerendered versions after bug 1555450 but there will still be a few generated html files, so updating bug title.

Type: enhancement → task
Depends on: 1555450
Summary: pre-render localized HTML in m-c → Generate script-ful/noscript/debug HTML in m-c
Duplicate of this bug: 1459772
Component: Activity Streams: Newtab → Messaging System
Blocks: ujmc-module-loading
No longer blocks: as-build-meta
You need to log in before you can comment on or make changes to this bug.