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

[Frontend] Migrate to create-react-app #3156

Merged
merged 12 commits into from
Feb 25, 2020
Merged

Conversation

Bobgy
Copy link
Contributor

@Bobgy Bobgy commented Feb 24, 2020

Fixes #2432
/area frontend
/area engprod

The change is huge, so I will try to get this in ASAP to avoid complex merge conflicts. Currently there aren't many UI changes, so I will merge this after I tested the image.

Verification

Built and tested the image gcr.io/gongyuan-pipeline-test/dev/frontend@sha256:49e51ef0485546caed638a4a506a166990f004ae454d5fea25c645e44c6443d9. I didn't see any differences.

built bundle size:

// previously
File sizes after gzip:

  757.96 KB (+675.84 KB)  build/static/js/main.a7ed2507.js
  1.1 KB                  build/static/css/main.de5d904e.css
// now
File sizes after gzip:

  614.31 KB              build/static/js/2.3988d820.chunk.js
  82.12 KB (-672.23 KB)  build/static/js/main.4dc0c75a.chunk.js
  1.06 KB                build/static/css/2.5a2f7233.chunk.css
  778 B                  build/static/js/runtime-main.edad0a55.js

There is a minor decrease, but there are more bundles.


This change is Reviewable

@Bobgy Bobgy changed the title [WIP] [Frontend] Migrate to create-react-app [Frontend] Migrate to create-react-app Feb 24, 2020
@Bobgy
Copy link
Contributor Author

Bobgy commented Feb 24, 2020

/retest

@Bobgy
Copy link
Contributor Author

Bobgy commented Feb 24, 2020

/approve

@jingzhang36
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bobgy, jingzhang36

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Bobgy
Copy link
Contributor Author

Bobgy commented Feb 25, 2020

Thanks @jingzhang36

@k8s-ci-robot k8s-ci-robot merged commit 968e583 into kubeflow:master Feb 25, 2020
Jeffwan pushed a commit to Jeffwan/pipelines that referenced this pull request Dec 9, 2020
* Updated create-react-app dependencies

* Fix some type errors

* Fix type errors

* Fix linting and typing

* Fix more things

* Fix typestyle mock

* Fix some unit tests

* Update snapshots

* Frontend server should use its own configuration

* Clean up server tsconfig.json and tslint.json

* Fix mock-backend

* Frontend image cloudbuild config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Frontend] Migrate to create-react-app and typescript-eslint
3 participants