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

[FX-4686] Build compilation step for picasso by parts #4099

Conversation

augustobmoura
Copy link
Member

@augustobmoura augustobmoura commented Jan 16, 2024

FX-4686

Description

Add build steps for the typescript compiler.

The changes are on this commit.
The changes are mainly to package.json and tsconfig.json, and are pretty much copy-and-paste, I'm versioning the scripts I was using, but will remove them before merging. They might still be useful before merging the feature branch to master

How to test

  • Temploy
  • Run yarn build:package from root, it should compile all packages

Screenshots

No screenshots

Development checks

Breaking change

  • codemod is created and showcased in the changeset
  • test alpha package of Picasso in StaffPortal

All development checks should be done and set checked to pass the
GitHub Bot: TODOLess action

PR commands

List of available commands:

  • @toptal-bot run package:alpha-release - Release alpha version
  • @toptal-anvil ping reviewers - Ping FX team for review
PR Review Guidelines

When to approve? ✅

You are OK with merging this PR and

  1. You have no extra requests.
  2. You have optional requests.
    1. Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌

You are not OK with merging this PR because

  1. Something is broken after the changes.
  2. Acceptance criteria is not reached.
  3. Code is dirty.

When to comment (neither ✅ nor ❌)

You want your comments to be addressed before merging this PR in cases like:

  1. There are leftovers like unnecessary logs, comments, etc.
  2. You have an opinionated comment regarding the code that requires a discussion.
  3. You have questions.

How to handle the comments?

  1. An owner of a comment is the only one who can resolve it.
  2. An owner of a comment must resolve it when it's addressed.
  3. A PR owner must reply with ✅ when a comment is addressed.

@augustobmoura augustobmoura requested review from a team as code owners January 16, 2024 02:19
@augustobmoura augustobmoura requested review from sashuk, dmaklygin, TomasSlama and mkrl and removed request for a team January 16, 2024 02:19
Copy link

changeset-bot bot commented Jan 16, 2024

⚠️ No Changeset found

Latest commit: a378be3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@augustobmoura augustobmoura force-pushed the fx-4686-pack-all-extracted-packages-back-into-root-picasso-packages branch from c23f628 to cf200e3 Compare January 16, 2024 04:09
Copy link
Member Author

Choose a reason for hiding this comment

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

This file and the other script files might still be useful. I will remove them before merging

Copy link
Member Author

Choose a reason for hiding this comment

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

This file will be merged, we need to run it from time to time to avoid need to update references manually. The script is working pretty well, as I tested it many times

tsconfig.json Outdated Show resolved Hide resolved
Copy link
Member

@mkrl mkrl left a comment

Choose a reason for hiding this comment

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

Looks good and scary! There are still a few moments to address, but it can be done with a follow-up PR.

@augustobmoura augustobmoura merged commit 3ee42a5 into fx-4683-picasso-by-parts Jan 18, 2024
2 of 3 checks passed
@augustobmoura augustobmoura deleted the fx-4686-pack-all-extracted-packages-back-into-root-picasso-packages branch January 18, 2024 15:17
mkrl added a commit that referenced this pull request Mar 4, 2024
* Extraction script

* Extract packages with a script

* Manually resolve export & type issues

* [FX-4686] Build compilation step for picasso by parts (#4099)

* Pack packages into picasso

* Add compilation for provider and shared

* Fix wrong file on main tsconfig

---------

Co-authored-by: Mikhail Korolev <[email protected]>

* Fix tests for base packages

* Fix style imports

* Fix jest mocks on base components

* Fix circular barrel imports

* Fix picasso-forms test errors

* Fixed problems with merge with master

* Add extra modules to Jest transform

* Fix tests on rich text editor

* Revert changes to picasso-codemod

* Fix Favicon imports

* Add build:all dependency to test:unit

* Fix spacing & remove leftovers

* Adjust Storybook and Cypress to work with split packages (#4117)

* Make Cypress work and pass

* Make Storybook build

* Add module paths to all stories

* Add reference ticket to reenable typecheck in storybook

* Update Dockerfile

* Update package files to fix some issues

* Adjust icon generation script

* Fix lint errors and build steps

* Remove unused typescript check

* Adjust build steps for cypress

* Fix build script for provider

* Fix Dockerfile

* Fix Happo

* Fix QueryBuilder story

* Add codemod and export stubs to avoid breaking changes (#4128)

* Test Alert exports field

* Fix dist-package mentions

* Update build folder

* Update build folder in action

* Revert all compiled path to dist-package

* Fix old dist path in package.json

* Fix build script path

* Fix build script for non-ts packages

* Leftower stories fixed

* Export useNotifications from main utils

* Remove duplicate package

* Add utils stub, cleanup

* Add migration codemod

* Add typedefs for stubs & fix require calls

* Add codemod case for imports from other Picasso packages

* Add missing types and utils stub to picasso-forms

* Fix Icon spec

* Fix Icon paths in stories

* Add missing exports from picasso and picasso-forms (#4140)

---------

Co-authored-by: Augusto Moura <[email protected]>
Co-authored-by: Tomáš Sláma <[email protected]>

* Add changeset

* Cleanup merge files

* Fix broken story

* Update alpha workflow

---------

Co-authored-by: Augusto Moura <[email protected]>
Co-authored-by: Tomáš Sláma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants