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

fix(javascript): clean rollup config #700

Merged
merged 3 commits into from
Jun 16, 2022
Merged

fix(javascript): clean rollup config #700

merged 3 commits into from
Jun 16, 2022

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket: -

Changes included:

I was experimenting some things to speed up the build process of the JS client and thought it was hard to navigate in the real part of the rollup config.

This PR split the concerns of the real rollup config and the package-related steps, there is no changes in the build itself.

🧪 Test

CI :D

@shortcuts shortcuts requested a review from a team June 15, 2022 15:45
@shortcuts shortcuts self-assigned this Jun 15, 2022
@shortcuts shortcuts requested review from damcou and millotp and removed request for a team June 15, 2022 15:45
@netlify
Copy link

netlify bot commented Jun 15, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 32652d5
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62aad456f2b9690008c63b6f

@algolia-bot
Copy link
Collaborator

algolia-bot commented Jun 15, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

Copy link
Collaborator

@millotp millotp 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 ! I don't understand everything about rollup but it takes roughly the same time as before so nothing bad

import fs from 'fs';

// Org where the packages are pushed
const NPM_ORG = '@experimental-api-clients-automation/';
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe that value could be read from a package.json, should not be complicated if you want to do it

@shortcuts
Copy link
Member Author

Looks good ! I don't understand everything about rollup but it takes roughly the same time as before so nothing bad

It's mostly splitting code in this one, there should not be perf changes but I'm doing some test to improve it and it was easier to navigate like that

Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

Nice !

@shortcuts shortcuts merged commit e93a31c into main Jun 16, 2022
@shortcuts shortcuts deleted the fix/js-rollup-build branch June 16, 2022 07:17
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Jun 16, 2022
algolia/api-clients-automation#700

Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
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