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

💅 / 🏗 Create new binary for compiler #compiler #35137

Merged
merged 3 commits into from
Jul 12, 2021

Conversation

samouri
Copy link
Member

@samouri samouri commented Jul 7, 2021

summary
Creates a new binary for the Bento Compiler project.
The first iteration acts as an identity function.

The purpose of this PR is to get bikeshedding out of the way re. the file location, name etc.

binary contents

;
(function(){"use strict";function compileHtml(a){return a}function compileAst(a){return a}globalThis.compileHtml=compileHtml;globalThis.compileAst=compileAst})();//# sourceMappingURL=compiler.js.map

@samouri samouri self-assigned this Jul 7, 2021
Copy link
Contributor

@rcebulko rcebulko left a comment

Choose a reason for hiding this comment

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

We should definitely add rules banning anything from importing from here, and enable type-checking for this directory right from the start

@@ -112,6 +112,15 @@ exports.jsBundles = {
includePolyfills: true,
},
},
'compiler.js': {
srcDir: './src/compiler/',
Copy link
Contributor

Choose a reason for hiding this comment

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

🚲 🏚️ ing time! Do these binaries get served on the CDN?

Copy link
Member Author

@samouri samouri Jul 7, 2021

Choose a reason for hiding this comment

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

I believe so! In this case it would be at https://cdn.ampproject.org/compiler.js as the url.

@samouri
Copy link
Member Author

samouri commented Jul 8, 2021

We should definitely add rules banning anything from importing from here, and enable type-checking for this directory right from the start

Done!

@samouri samouri marked this pull request as ready for review July 8, 2021 19:43
@amp-owners-bot
Copy link

amp-owners-bot bot commented Jul 8, 2021

Hey @rcebulko! These files were changed:

build-system/tasks/check-types.js

@samouri samouri merged commit 38f8b58 into ampproject:main Jul 12, 2021
@samouri samouri deleted the compiler-bin branch July 12, 2021 11:02
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.

4 participants