babel-plugin-deinject-di 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # babel-plugin-deinject-di
2
+
3
+ [![NPM](https://nodei.co/npm/babel-plugin-deinject-di.png?mini=true)](https://npmjs.org/package/babel-plugin-deinject-di)
4
+
5
+ ![Пример кода](https://raw.githubusercontent.com/outsid3rx/deinject/refs/heads/main/docs/screenshot.svg)
6
+
7
+ Babel-плагин для внедрения зависимостей с использованием декораторов из пакета `@deinject/core`.
8
+
9
+ ## Установка
10
+
11
+ ```bash
12
+ npm install deinject-core
13
+ npm install -D babel-plugin-deinject-di @babel/core
14
+ ```
15
+
16
+ ## Конфигурация Babel
17
+
18
+ Создайте файл `babel.config.json` в корне вашего проекта и добавьте следующий код:
19
+
20
+ ```json
21
+ {
22
+ "plugins": ["deinject-di"]
23
+ }
24
+ ```
25
+
26
+ Более подробную информацию о настройке сборки проекта с использованием Babel можно найти в [README пакета deinject-core](https://github.com/outsid3rx/deinject/tree/main/packages/core).
@@ -0,0 +1,7 @@
1
+ import { PluginObj } from "@babel/core";
2
+
3
+ //#region src/index.d.ts
4
+ declare function diPlugin(): PluginObj;
5
+ //#endregion
6
+ export { diPlugin as default };
7
+ //# sourceMappingURL=index.d.mts.map