Skip to content

Commit

Permalink
chore: rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhulle committed Dec 13, 2023
1 parent aa59140 commit 7b58c95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/blog/benefits-of-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This made us wonder if it was possible to use React and JSX to create our templa

A template engine is a software program designed to combine templates with a data model to produce a document or output. The language used to write these templates is called a template language. The resulting document can be a web page, a document, or even source code. One specific use case for template engines is source code generation.

Some well known template engines are [Mustache](https://mustache.github.io/), [Handlebars](https://handlebarsjs.com/), and [EJS](https://ejs.co/). To create Javascript/ you can also use the [TypesScript compiler API](https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API) to create JavaScript/TypeScript and the OpenApi TypeScript generator uses [Handlebars](https://handlebarsjs.com/).
Some well known template engines are [Mustache](https://mustache.github.io/), [Handlebars](https://handlebarsjs.com/), and [EJS](https://ejs.co/). To create JavaScript/ you can also use the [TypesScript compiler API](https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API) to create JavaScript/TypeScript and the OpenAPI TypeScript generator uses [Handlebars](https://handlebarsjs.com/).

### What is source code generation?

Expand Down
3 changes: 0 additions & 3 deletions packages/cli/src/utils/getCosmiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ export async function getCosmiConfig(moduleName: string, config?: string): Promi
],
loaders: {
'.ts': tsLoader,
'.js': tsLoader,
'.mjs': tsLoader,
'.cjs': tsLoader,
},
})

Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7b58c95

Please sign in to comment.