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

Refactoring: typescript #83

Merged
merged 83 commits into from
Jul 3, 2022
Merged

Conversation

boesing
Copy link
Member

@boesing boesing commented Mar 25, 2022

Q A
Documentation no
Bugfix no
BC Break no
New Feature no
QA yes

Description

Converted the application to typescript.
In combination with #62, this supposed to be a major improvement when it comes to new features.

This also reduces the container size from 426MB to 188MB which is a total amount of ~56%!

Features which are implemented in this PR

Bugs which are fixed in this PR

Open TODOs

  • Implement BC layer for exclude which was implemented here
  • Add PHP version to the check name
  • It seems that the .laminas-ci.schema.json is not properly verified, it does not contain @latest or @lowest for the php entry but integration tests are passing

Ideas which could be implemented later on

.github/workflows/continuous-integration.yml Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
composer.schema.json Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
src/action/github.ts Outdated Show resolved Hide resolved
src/config/input.ts Outdated Show resolved Hide resolved
src/config/php.ts Show resolved Hide resolved
src/jobs.ts Show resolved Hide resolved
src/main.ts Outdated Show resolved Hide resolved
src/tools.ts Show resolved Hide resolved
Copy link
Member

@internalsystemerror internalsystemerror left a comment

Choose a reason for hiding this comment

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

I am appeased. This is some good work @boesing.

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

FML, this has been open for over 6 months? Really sorry for that, @boesing :-(

I took a slow read through it, my TS-fu is low, but I didn't see any particular scary usages of casts and any or unknown, so IMO 🚢 at your will.

I will gladly try out the new version on my repos!

.github/workflows/continuous-integration.yml Show resolved Hide resolved
src/action/local.ts Show resolved Hide resolved
src/app.ts Outdated Show resolved Hide resolved
src/config/app.ts Show resolved Hide resolved
src/config/app.ts Show resolved Hide resolved
src/config/composer.ts Outdated Show resolved Hide resolved
src/json.ts Show resolved Hide resolved
src/json.ts Show resolved Hide resolved
@Ocramius Ocramius added this to the 1.12.0 milestone Jun 28, 2022
@boesing boesing marked this pull request as draft June 28, 2022 15:55
@Ocramius
Copy link
Member

This is starting to look more green-ish 💪

@boesing boesing force-pushed the refactor/typescript branch 4 times, most recently from 475b1f1 to eb48252 Compare June 29, 2022 23:43
Signed-off-by: Maximilian Bösing <[email protected]>
… the latest version available

Signed-off-by: Maximilian Bösing <[email protected]>
Signed-off-by: Maximilian Bösing <[email protected]>
Signed-off-by: Maximilian Bösing <[email protected]>
… for PHP versions

Signed-off-by: Maximilian Bösing <[email protected]>
Signed-off-by: Maximilian Bösing <[email protected]>
…ocked` dependencies here

Signed-off-by: Maximilian Bösing <[email protected]>
I am not 100% sure what is happening here, but somehow, if the ternary operator is not wrapped in brackets, the null-safe operator does work as expected and the value of the ternary operation is being used instead

Signed-off-by: Maximilian Bösing <[email protected]>
…rather than `locked`

Signed-off-by: Maximilian Bösing <[email protected]>
…laminas-ci.schema.json`

Signed-off-by: Maximilian Bösing <[email protected]>
…e `.laminas-ci.json`

Signed-off-by: Maximilian Bösing <[email protected]>
This also adds an action failure to whenever a schema could not be detected.

Signed-off-by: Maximilian Bösing <[email protected]>
Signed-off-by: Maximilian Bösing <[email protected]>
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

IMO 🚢

@boesing boesing merged commit 91b0a25 into laminas:1.12.x Jul 3, 2022
@boesing boesing deleted the refactor/typescript branch July 3, 2022 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants