Skip to content

Commit d627b42

Browse files
authored
chore(templating): use mustache (#474)
1 parent 0f0dd65 commit d627b42

15 files changed

+229
-160
lines changed

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules/
22
dist/
3-
src/templates/*.out.js
3+
src/templates/*.out.json

COLLABORATOR_GUIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The Node.js Release Worker is built upon [Cloudflare Workers](https://developers
5555
The Worker also uses several other Open Source libraries (not limited to) listed below:
5656

5757
- [AWS S3 client](https://www.npmjs.com/package/@aws-sdk/client-s3) is used for interacting with R2's S3 entrypoint.
58-
- [Handlebars.js](https://www.npmjs.com/package/handlebars) is used for rendering templated pages.
58+
- [Mustache.js](https://www.npmjs.com/package/mustache) is used for rendering templated pages.
5959
- [Sentry](https://sentry.io/about) is used for error reporting.
6060

6161
## Code Editing
@@ -110,7 +110,7 @@ The bucket's file structure is a 1:1 mapping to the file structure of the releas
110110

111111
### Frontend Bits
112112

113-
The directory listing page is the only frontend page that the Worker serves non-statically. For simplicitly, it is a pre-compiled Handlebars template.
113+
The directory listing page is the only frontend page that the Worker serves non-statically. For simplicitly, it is a pre-compiled Mustache template.
114114
Should any other pages be added to this worker, they should do the same unless a consensus is reached by the Collaborators.
115115

116116
## Additional Clarification

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ This repository contains a few scripts and commands for performing numerous task
117117
- `node --run lint` Lints the code to the repository's standards.
118118
- `node --run test:unit` Runs the [Unit Tests](./COLLABORATOR_GUIDE.md#unit-tests) to ensure individual components are working as expected.
119119
- `node --run test:e2e` Runs the [E2E Tests](./COLLABORATOR_GUIDE.md#e2e-tests) to ensure requests act as expected.
120-
- `node --run build:handlebars` Compiles the Handlebars templates. **Required for any changes to the templates to take affect**.
120+
- `node --run build:mustache` Compiles the Mustache templates. **Required for any changes to the templates to take affect**.
121121

122122
</details>
123123

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const compat = new FlatCompat({
1616
});
1717

1818
export default [
19-
{ ignores: ['**/node_modules/', '**/dist/', 'src/templates/*.out.js'] },
19+
{ ignores: ['**/node_modules/', '**/dist/'] },
2020
...compat.extends('eslint:recommended', 'prettier'),
2121
{
2222
languageOptions: {

package-lock.json

Lines changed: 141 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)