Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

feat!: manifest over html in production build#610

Merged
juanpicado merged 8 commits intomasterfrom
manifest-over-html
Mar 25, 2021
Merged

feat!: manifest over html in production build#610
juanpicado merged 8 commits intomasterfrom
manifest-over-html

Conversation

@juanpicado
Copy link
Copy Markdown
Member

@juanpicado juanpicado commented Mar 23, 2021

Type:

The following has been addressed in the PR:

  • There is a related issue?
  • Unit or Functional tests are included in the PR

Description:

  • Remove HTML from production build and delegate backend to generate one. This will help to generate better <scripts/> url using behind a proxy. Part of fix: url_prefix behaviour verdaccio#2122
  • Remove html linter, not need it anymore

It does not ship the index.html with the published package, just a webpack manifest file that is interpreted by the backend.

⚠️ E2E are broken and disabled, it must to be like that, since I have the egg-chicken problem, verdaccio has breaking changes and we have as dependency the latest, so will be broken until I release v4.1.13.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 23, 2021

Codecov Report

Merging #610 (23502f4) into master (bbe04c3) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #610   +/-   ##
=======================================
  Coverage   79.39%   79.39%           
=======================================
  Files         167      167           
  Lines        1330     1330           
  Branches      227      227           
=======================================
  Hits         1056     1056           
  Misses        232      232           
  Partials       42       42           
Impacted Files Coverage Δ
src/providers/API/APIProvider.tsx 78.26% <100.00%> (ø)

@juanpicado juanpicado requested review from a team March 23, 2021 08:49
@juanpicado juanpicado marked this pull request as ready for review March 23, 2021 08:50
@@ -0,0 +1,76 @@
const HTMLWebpackPlugin = require('html-webpack-plugin');
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a copy of what we had already.

package.json Outdated
"dev:web": "babel-node tools/dev.server.js",
"verdaccio:server": "node tools/verdaccio.js",
"build": "webpack --config tools/webpack.prod.config.babel.js",
"build:e2e": "webpack --config tools/webpack.e2e.config.babel.js",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only intended for runing e2e

scope: '',
version: 'v1.0.0',
filename: 'index.html',
verdaccioURL: '//localhost:4873/',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool! I always have to change it locally 😅

@juanpicado juanpicado merged commit b9260cb into master Mar 25, 2021
@delete-merged-branch delete-merged-branch bot deleted the manifest-over-html branch March 25, 2021 09:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants