@ts-for-gir/generator-html-doc 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,20 @@
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
+ HTML Documentation generator for ts-for-gir.
@@ -0,0 +1,12 @@
1
+ import { Logger } from '@ts-for-gir/lib';
2
+ import { Generator } from '@ts-for-gir/generator-base';
3
+ import type { GenerateConfig, GirModulesGrouped, InheritanceTable, GirModule } from '@ts-for-gir/lib';
4
+ /**
5
+ * A template that can be used to implement an HTML Documentation Generator
6
+ */
7
+ export declare class HtmlDocGenerator implements Generator {
8
+ protected readonly config: GenerateConfig;
9
+ protected log: Logger;
10
+ constructor(config: GenerateConfig);
11
+ start(girModules: GirModule[], girModulesGrouped: GirModulesGrouped[], inheritanceTable: InheritanceTable): Promise<void>;
12
+ }
@@ -0,0 +1,17 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ import { Logger, DANGER_HTML_DOC_GENERATOR_NOT_IMPLEMENTED } from '@ts-for-gir/lib';
3
+ /**
4
+ * A template that can be used to implement an HTML Documentation Generator
5
+ */
6
+ export class HtmlDocGenerator {
7
+ config;
8
+ log;
9
+ constructor(config) {
10
+ this.config = config;
11
+ this.log = new Logger(config.environment, config.verbose, HtmlDocGenerator.name);
12
+ }
13
+ async start(girModules, girModulesGrouped, inheritanceTable) {
14
+ return Promise.resolve(this.log.danger(DANGER_HTML_DOC_GENERATOR_NOT_IMPLEMENTED));
15
+ }
16
+ }
17
+ //# sourceMappingURL=html-doc-generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html-doc-generator.js","sourceRoot":"","sources":["../src/html-doc-generator.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAE,MAAM,EAAE,yCAAyC,EAAE,MAAM,iBAAiB,CAAA;AAKnF;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAEM;IADrB,GAAG,CAAQ;IACrB,YAA+B,MAAsB;QAAtB,WAAM,GAAN,MAAM,CAAgB;QACjD,IAAI,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;IACpF,CAAC;IACM,KAAK,CAAC,KAAK,CACd,UAAuB,EACvB,iBAAsC,EACtC,gBAAkC;QAElC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,yCAAyC,CAAC,CAAC,CAAA;IACtF,CAAC;CACJ"}
package/lib/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './html-doc-generator.js';
package/lib/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './html-doc-generator.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA"}
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@ts-for-gir/generator-html-doc",
3
+ "version": "3.0.0-beta.11",
4
+ "description": "HTML Documentation 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/generator-base": "^3.0.0-beta.11",
49
+ "@ts-for-gir/lib": "^3.0.0-beta.11"
50
+ }
51
+ }