File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3451export default config
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { relative, resolve } from 'node:path'
88import process from 'node:process'
99import { pipeline } from 'node:stream'
1010import { promisify } from 'node:util'
11- import { fetch } from 'node-fetch-native/proxy'
1211
1312export async function download (
1413 url : string ,
You can’t perform that action at this time.
0 commit comments