mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-26 09:46:15 -04:00
chore(cd): added deploy on cloudflare pages
This commit is contained in:
parent
f8b5cbfd87
commit
161b9e6bca
48 changed files with 4066 additions and 813 deletions
12
packages/app/templates/tools/new/tool.definition.ejs.t
Normal file
12
packages/app/templates/tools/new/tool.definition.ejs.t
Normal 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) %>',
|
||||
})
|
4
packages/app/templates/tools/new/tool.en.locale.ejs.t
Normal file
4
packages/app/templates/tools/new/tool.en.locale.ejs.t
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
to: src/modules/tools/definitions/<%= h.changeCase.param(name) %>/locales/en.json
|
||||
---
|
||||
{}
|
|
@ -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';
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
inject: true
|
||||
to: src/modules/tools/tools.registry.ts
|
||||
before: "^]"
|
||||
---
|
||||
<%= h.changeCase.camel(name) %>Tool,
|
14
packages/app/templates/tools/new/tool.page.ejs.t
Normal file
14
packages/app/templates/tools/new/tool.page.ejs.t
Normal 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) %>;
|
Loading…
Add table
Add a link
Reference in a new issue