@ts-for-gir/generator-base 3.0.0-beta.11

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,21 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/gjsify/ts-for-gir/main/.github/ts-for-gir.png" />
3
+ <h1 align="center">TS <small>for</small> GIR</h1>
4
+ </p>
5
+
6
+ <p align="center">
7
+ <img src="https://badgen.net/github/checks/gjsify/ts-for-gir" />
8
+ <img src="https://badgen.net/github/license/gjsify/ts-for-gir" />
9
+ <img src="https://badgen.net/npm/v/@ts-for-gir/cli" />
10
+ <img src="https://badgen.net/npm/dw/@ts-for-gir/cli" />
11
+ </p>
12
+
13
+ <p align="center">TypeScript type definition generator for GObject introspection GIR files</p>
14
+
15
+ <p align="center">
16
+ <img src="https://raw.githubusercontent.com/gjsify/ts-for-gir/main/.github/feeling.gif" />
17
+ </p>
18
+
19
+ # Generator base
20
+ Base generator interface for ts-for-gir generators.
21
+
@@ -0,0 +1,4 @@
1
+ export declare enum GeneratorType {
2
+ TYPES = 0,
3
+ HTML_DOC = 1
4
+ }
@@ -0,0 +1,6 @@
1
+ export var GeneratorType;
2
+ (function (GeneratorType) {
3
+ GeneratorType[GeneratorType["TYPES"] = 0] = "TYPES";
4
+ GeneratorType[GeneratorType["HTML_DOC"] = 1] = "HTML_DOC";
5
+ })(GeneratorType || (GeneratorType = {}));
6
+ //# sourceMappingURL=generator-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator-type.js","sourceRoot":"","sources":["../src/generator-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACrB,mDAAK,CAAA;IACL,yDAAQ,CAAA;AACZ,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB"}
@@ -0,0 +1,4 @@
1
+ import type { InheritanceTable, GirModulesGrouped, GirModule } from '@ts-for-gir/lib';
2
+ export interface Generator {
3
+ start(girModules: GirModule[], girModulesGrouped: GirModulesGrouped[], inheritanceTable: InheritanceTable): Promise<void>;
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":""}
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './generator-type.js';
2
+ export * from './generator.js';
package/lib/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './generator-type.js';
2
+ export * from './generator.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA"}
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@ts-for-gir/generator-base",
3
+ "version": "3.0.0-beta.11",
4
+ "description": "Base generator for ts-for-gir",
5
+ "module": "lib/index.js",
6
+ "main": "lib/index.js",
7
+ "type": "module",
8
+ "engines": {
9
+ "node": ">=18"
10
+ },
11
+ "scripts": {
12
+ "build": "yarn lint && yarn build:ts",
13
+ "build:ts": "tsc",
14
+ "clear": "yarn clear:build",
15
+ "clear:build": "rimraf ./lib",
16
+ "watch": "yarn build:ts -- --watch",
17
+ "lint": "eslint . --ext .ts,.tsx --fix"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/gjsify/ts-for-gjs.git"
22
+ },
23
+ "author": "Pascal Garber <pascal@artandcode.studio>",
24
+ "files": [
25
+ "lib",
26
+ "templates"
27
+ ],
28
+ "license": "Apache-2.0",
29
+ "bugs": {
30
+ "url": "https://github.com/gjsify/ts-for-gjs/issues"
31
+ },
32
+ "homepage": "https://github.com/gjsify/ts-for-gjs#readme",
33
+ "keywords": [
34
+ "generator"
35
+ ],
36
+ "devDependencies": {
37
+ "@types/node": "^18.14.0",
38
+ "@typescript-eslint/eslint-plugin": "^5.53.0",
39
+ "@typescript-eslint/parser": "^5.53.0",
40
+ "eslint": "^8.34.0",
41
+ "eslint-config-prettier": "^8.6.0",
42
+ "eslint-plugin-prettier": "^4.2.1",
43
+ "prettier": "^2.8.4",
44
+ "rimraf": "^4.1.2",
45
+ "typescript": "^4.9.5"
46
+ },
47
+ "dependencies": {
48
+ "@ts-for-gir/lib": "^3.0.0-beta.11"
49
+ }
50
+ }