+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

feat(npm): API facade and first compile pipeline #3074

Merged
merged 4 commits into from
Aug 23, 2022
Merged

Conversation

ematipico
Copy link
Contributor

Summary

Part of #3073

This PR starts works around the runtime APIs. This PR implements only few methods compared to the one proposed:

  • formatFiles
  • formatContent
  • parseContent

The return type of these methods are not final yet and should not be part of the review. For example having content for formatFiles doesn't make sense.

What's should be reviewed should be the input types for each API.

There are some tests that will fail once we start the actual work, there's some workflow with the GitHub actions and a compilation test with just TypeScript. Not sure if we really need a bundler for now.

Test Plan

Added new tests and updated an existing workflow. The reason why I didn't add npm/rome path to the existing format workflow is because we use setup-rome, which contains the old version, while I am using the current version on main to format and check the JS code.

I will make a new PR to change that across the board, so we are able to dogfood our JS code base while we develop.

@ematipico ematipico requested a review from a team August 17, 2022 07:21
@ematipico ematipico temporarily deployed to aws August 17, 2022 07:21 Inactive
@ematipico ematipico force-pushed the feature/facade-apis branch from 1fd3175 to a13c582 Compare August 17, 2022 07:22
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 17, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 56e0c3e
Status: ✅  Deploy successful!
Preview URL: https://78b45818.tools-8rn.pages.dev
Branch Preview URL: https://feature-facade-apis.tools-8rn.pages.dev

View logs

@ematipico ematipico temporarily deployed to aws August 17, 2022 07:22 Inactive
@github-actions
Copy link

github-actions bot commented Aug 17, 2022

@ematipico ematipico force-pushed the feature/facade-apis branch from edd6c8d to 1b83afc Compare August 17, 2022 09:51
@ematipico ematipico requested a review from leops August 17, 2022 09:51
@ematipico ematipico force-pushed the feature/facade-apis branch from 1b83afc to 8162b7c Compare August 17, 2022 09:55
@ematipico ematipico requested a review from MichaReiser August 18, 2022 06:45
@ematipico ematipico force-pushed the feature/facade-apis branch 2 times, most recently from d2260e0 to c74a971 Compare August 18, 2022 07:28
@ematipico
Copy link
Contributor Author

@MichaReiser @xunilrj any chance to get this approved so I can move onto the next piece of logic?

@ematipico ematipico force-pushed the feature/facade-apis branch from c74a971 to 56e0c3e Compare August 23, 2022 08:22
@ematipico ematipico merged commit 88e8dae into main Aug 23, 2022
@ematipico ematipico deleted the feature/facade-apis branch August 23, 2022 09:05
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.

4 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载