chore(cd): added deploy on cloudflare pages

This commit is contained in:
Corentin Thomasset 2024-10-02 22:30:45 +02:00
parent f8b5cbfd87
commit 161b9e6bca
No known key found for this signature in database
GPG key ID: DBD997E935996158
48 changed files with 4066 additions and 813 deletions

View file

@ -0,0 +1,12 @@
---
to: src/modules/tools/definitions/<%= h.changeCase.param(name) %>/<%= h.changeCase.param(name) %>.tool.ts
---
import { defineTool } from '../../tools.models'
export const <%= h.changeCase.camel(name) %>Tool = defineTool({
slug: '<%= h.changeCase.param(name) %>',
entryFile: () => import('./<%= h.changeCase.param(name) %>.page'),
icon: 'i-tabler-question-mark',
createdAt: new Date('<%= new Date().toISOString().split('T')[0] %>'),
dirName: '<%= h.changeCase.param(name) %>',
})

View file

@ -0,0 +1,4 @@
---
to: src/modules/tools/definitions/<%= h.changeCase.param(name) %>/locales/en.json
---
{}

View file

@ -0,0 +1,6 @@
---
inject: true
to: src/modules/tools/tools.registry.ts
at_line: 0
---
import { <%= h.changeCase.camel(name) %>Tool } from './definitions/<%= h.changeCase.param(name) %>/<%= h.changeCase.param(name) %>.tool';

View file

@ -0,0 +1,6 @@
---
inject: true
to: src/modules/tools/tools.registry.ts
before: "^]"
---
<%= h.changeCase.camel(name) %>Tool,

View file

@ -0,0 +1,14 @@
---
to: src/modules/tools/definitions/<%= h.changeCase.param(name) %>/<%= h.changeCase.param(name) %>.page.tsx
---
import type { Component } from 'solid-js';
const <%= h.changeCase.pascal(name) %>: Component = () => {
return (
<div class="mx-auto max-w-1200px p-6">
<h1><%= h.changeCase.title(name) %></h1>
</div>
);
}
export default <%= h.changeCase.pascal(name) %>;