Skip to content

Commit b12a3d2

Browse files
committed
chore: wip
1 parent 366b085 commit b12a3d2

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

gitit.config.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const config: GitItConfig = {
1616
offline: false,
1717
preferOffline: false,
1818

19+
// The hooks system allows you to customize the template download process
20+
// Hooks are called at specific points in the template download and extraction workflow
1921
hooks: {
2022
// Before downloading a template
2123
beforeDownload: (template, options) => {
@@ -28,7 +30,22 @@ const config: GitItConfig = {
2830
console.log('Dependencies installed, running custom logic...')
2931
return result
3032
},
33+
34+
// Other available hooks:
35+
// - afterDownload: Called after template has been downloaded
36+
// - beforeExtract: Called before template is extracted
37+
// - afterExtract: Called after template is extracted
38+
// - beforeInstall: Called before dependencies are installed
3139
},
40+
41+
// You can also register plugins for even more extensibility
42+
// plugins: [
43+
// // A plugin with no options
44+
// myCustomPlugin,
45+
//
46+
// // A plugin with options
47+
// [anotherPlugin, { customOption: true }]
48+
// ]
3249
}
3350

3451
export default config

src/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { relative, resolve } from 'node:path'
88
import process from 'node:process'
99
import { pipeline } from 'node:stream'
1010
import { promisify } from 'node:util'
11-
import { fetch } from 'node-fetch-native/proxy'
1211

1312
export async function download(
1413
url: string,

0 commit comments

Comments
 (0)