@tsparticles/cli 3.1.7 → 3.2.0

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.
Files changed (44) hide show
  1. package/.github/workflows/node.js-ci.yml +0 -2
  2. package/.planning/PROJECT.md +43 -0
  3. package/.planning/REQUIREMENTS.md +41 -0
  4. package/.planning/ROADMAP.md +41 -0
  5. package/.planning/STATE.md +6 -0
  6. package/.planning/codebase/ARCHITECTURE.md +3 -0
  7. package/.planning/codebase/CONCERNS.md +3 -0
  8. package/.planning/codebase/CONVENTIONS.md +3 -0
  9. package/.planning/codebase/INTEGRATIONS.md +3 -0
  10. package/.planning/codebase/STACK.md +11 -0
  11. package/.planning/codebase/STRUCTURE.md +3 -0
  12. package/.planning/codebase/TESTING.md +3 -0
  13. package/.planning/config.json +1 -0
  14. package/.planning/research/ARCHITECTURE.md +1 -0
  15. package/.planning/research/FEATURES.md +1 -0
  16. package/.planning/research/PITFALLS.md +1 -0
  17. package/.planning/research/STACK.md +1 -0
  18. package/.planning/research/SUMMARY.md +9 -0
  19. package/dist/build/build-bundle.d.ts +2 -1
  20. package/dist/build/build-bundle.js +8 -3
  21. package/dist/build/build-circular-deps.d.ts +2 -1
  22. package/dist/build/build-circular-deps.js +8 -3
  23. package/dist/build/build-clear.d.ts +2 -1
  24. package/dist/build/build-clear.js +8 -3
  25. package/dist/build/build-distfiles.d.ts +2 -1
  26. package/dist/build/build-distfiles.js +11 -4
  27. package/dist/build/build-eslint.d.ts +2 -1
  28. package/dist/build/build-eslint.js +8 -3
  29. package/dist/build/build-prettier.d.ts +8 -4
  30. package/dist/build/build-prettier.js +50 -19
  31. package/dist/build/build-tsc.d.ts +2 -1
  32. package/dist/build/build-tsc.js +17 -7
  33. package/dist/build/build.js +32 -24
  34. package/dist/tsconfig.tsbuildinfo +1 -1
  35. package/files/empty-project/package.json +3 -3
  36. package/package.json +5 -5
  37. package/src/build/build-bundle.ts +8 -3
  38. package/src/build/build-circular-deps.ts +8 -3
  39. package/src/build/build-clear.ts +8 -3
  40. package/src/build/build-distfiles.ts +11 -4
  41. package/src/build/build-eslint.ts +8 -3
  42. package/src/build/build-prettier.ts +50 -19
  43. package/src/build/build-tsc.ts +21 -7
  44. package/src/build/build.ts +36 -21
@@ -23,7 +23,6 @@ jobs:
23
23
  name: Install pnpm
24
24
  id: pnpm-install
25
25
  with:
26
- version: 10
27
26
  run_install: false
28
27
  - name: Get pnpm version
29
28
  id: pnpm-version
@@ -64,7 +63,6 @@ jobs:
64
63
  name: Install pnpm
65
64
  id: pnpm-install
66
65
  with:
67
- version: 10
68
66
  run_install: false
69
67
  - name: Get pnpm version
70
68
  id: pnpm-version
@@ -0,0 +1,43 @@
1
+ # New Project
2
+
3
+ ## What This Is
4
+
5
+ An initialized project workspace for planning and execution. This project represents the CLI tooling and templates found in this repository and is intended to be used as the basis for planning feature work or packaging improvements.
6
+
7
+ ## Core Value
8
+
9
+ Make the CLI and project templates reliable and easy to extend so maintainers and downstream projects can scaffold consistent plugins and shapes quickly.
10
+
11
+ ## Requirements
12
+
13
+ ### Validated
14
+
15
+ (None yet — this is a planning initialization for future work)
16
+
17
+ ### Active
18
+
19
+ - [ ] Improve CLI build reliability and developer experience
20
+ - [ ] Create clear scaffolding templates for plugins and shapes
21
+
22
+ ### Out of Scope
23
+
24
+ - Large runtime application features unrelated to CLI scaffolding
25
+
26
+ ## Context
27
+
28
+ This repository contains a TypeScript-based CLI (`src/`), template projects under `files/`, and CI workflows under `.github/`. The codebase map will be created to infer existing capabilities.
29
+
30
+ ## Constraints
31
+
32
+ - **Timeline**: TBD — planning stage
33
+ - **Tech**: TypeScript + Node.js CLI tooling
34
+
35
+ ## Key Decisions
36
+
37
+ | Decision | Rationale | Outcome |
38
+ | ----------------------------- | --------------------------------- | --------- |
39
+ | Initialize planning artifacts | Begin structured project planning | — Pending |
40
+
41
+ ---
42
+
43
+ _Last updated: [date]_
@@ -0,0 +1,41 @@
1
+ # Requirements: CLI Project
2
+
3
+ **Defined:** [date]
4
+ **Core Value:** Make the CLI and templates reliable and easy to extend
5
+
6
+ ## v1 Requirements
7
+
8
+ ### CLI
9
+
10
+ - [ ] **CLI-01**: CLI can scaffold a plugin using `create plugin` command
11
+ - [ ] **CLI-02**: CLI build scripts pass locally (TypeScript compiles)
12
+ - [ ] **CLI-03**: Tests run with `pnpm test` and pass in CI
13
+
14
+ ### Templates
15
+
16
+ - [ ] **TPL-01**: Plugin template under `files/create-plugin/` generates a working plugin
17
+ - [ ] **TPL-02**: Shape template under `files/create-shape/` generates a working shape
18
+
19
+ ## v2 Requirements
20
+
21
+ - **DOC-01**: Add CONTRIBUTING.md with dev setup
22
+
23
+ ## Out of Scope
24
+
25
+ | Feature | Reason |
26
+ | -------------------------- | ------------------------------ |
27
+ | Large runtime app features | Not related to CLI scaffolding |
28
+
29
+ ## Traceability
30
+
31
+ | Requirement | Phase | Status |
32
+ | ----------- | ------- | ------- |
33
+ | CLI-01 | Phase 1 | Pending |
34
+ | CLI-02 | Phase 1 | Pending |
35
+ | CLI-03 | Phase 1 | Pending |
36
+ | TPL-01 | Phase 1 | Pending |
37
+ | TPL-02 | Phase 1 | Pending |
38
+
39
+ ---
40
+
41
+ _Requirements defined: [date]_
@@ -0,0 +1,41 @@
1
+ # ROADMAP
2
+
3
+ ## Overview
4
+
5
+ Phases derived from v1 requirements. All v1 requirements are covered across the phases below.
6
+
7
+ | # | Phase | Goal | Requirements |
8
+ | --- | -------------------- | --------------------------------------------- | ------------------------------ |
9
+ | 1 | Core CLI & Templates | Ensure CLI scaffolding and build are reliable | CLI-01, CLI-02, TPL-01, TPL-02 |
10
+ | 2 | Tests & CI | Ensure tests run and CI is healthy | CLI-03 |
11
+ | 3 | Docs & Developer UX | Improve contributor onboarding and docs | DOC-01 |
12
+
13
+ ## Phase Details
14
+
15
+ ### Phase 1: Core CLI & Templates
16
+
17
+ Goal: Users can scaffold plugins and shapes and build the codebase locally.
18
+ Requirements: CLI-01, CLI-02, TPL-01, TPL-02
19
+ Success criteria:
20
+
21
+ 1. `create plugin` generates a working plugin scaffold
22
+ 2. TypeScript build completes without errors
23
+ 3. Templates include README and basic tests
24
+
25
+ ### Phase 2: Tests & CI
26
+
27
+ Goal: Ensure tests run locally and in CI, coverage tracked.
28
+ Requirements: CLI-03
29
+ Success criteria:
30
+
31
+ 1. Vitest runs and reports passing tests locally
32
+ 2. CI workflow runs tests and reports status
33
+
34
+ ### Phase 3: Docs & Developer UX
35
+
36
+ Goal: Improve onboarding and developer docs
37
+ Requirements: DOC-01
38
+ Success criteria:
39
+
40
+ 1. CONTRIBUTING.md created with setup steps
41
+ 2. Quickstart added to README
@@ -0,0 +1,6 @@
1
+ ## Project Reference
2
+
3
+ See: .planning/PROJECT.md (initialized)
4
+
5
+ **Core value:** Make the CLI and templates reliable and easy to extend
6
+ **Current focus:** Phase 1 — Core CLI & Templates
@@ -0,0 +1,3 @@
1
+ Architecture Overview
2
+ - CLI entrypoint: src/cli.ts
3
+ - Feature modules: src/create, src/build
@@ -0,0 +1,3 @@
1
+ Concerns
2
+ - Some build scripts may lack tests
3
+ - CI secrets should be reviewed
@@ -0,0 +1,3 @@
1
+ Conventions
2
+ - TypeScript + Prettier + ESLint
3
+ - Organize by feature
@@ -0,0 +1,3 @@
1
+ External Integrations
2
+ - GitHub Actions for CI
3
+ - npm registry for publishing
@@ -0,0 +1,11 @@
1
+ Project Technology Stack
2
+
3
+ Languages & Runtimes
4
+ - TypeScript (src/)
5
+ - Node.js for CLI
6
+
7
+ Tools
8
+ - Vitest, tsc, pnpm
9
+
10
+ Config locations
11
+ - package.json, tsconfig.json
@@ -0,0 +1,3 @@
1
+ Structure
2
+ - src/, files/, .github/
3
+ - templates in files/
@@ -0,0 +1,3 @@
1
+ Testing
2
+ - Vitest configuration present
3
+ - Run with pnpm test
@@ -0,0 +1 @@
1
+ {"mode":"interactive","depth":"standard","parallelization":true,"commit_docs":true,"model_profile":"balanced","workflow":{"research":true,"plan_check":true,"verifier":true}}
@@ -0,0 +1 @@
1
+ ARCH research placeholder
@@ -0,0 +1 @@
1
+ FEATURES research placeholder
@@ -0,0 +1 @@
1
+ PITFALLS research placeholder
@@ -0,0 +1 @@
1
+ STACK research placeholder
@@ -0,0 +1,9 @@
1
+ # Research Summary
2
+
3
+ Key Findings (placeholder)
4
+
5
+ - Stack: TypeScript, Node.js, Vitest
6
+ - Table stakes: Reliable CLI, scaffolding templates
7
+ - Watch out: CI secrets, build script test coverage
8
+
9
+ This summary synthesizes the research outputs and will inform requirements and roadmap.
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @param basePath -
3
+ * @param silent -
3
4
  * @returns true if the bundle was created
4
5
  */
5
- export declare function bundle(basePath: string): Promise<boolean>;
6
+ export declare function bundle(basePath: string, silent: boolean): Promise<boolean>;
@@ -2,10 +2,13 @@ import path from "node:path";
2
2
  import webpack from "webpack";
3
3
  /**
4
4
  * @param basePath -
5
+ * @param silent -
5
6
  * @returns true if the bundle was created
6
7
  */
7
- export async function bundle(basePath) {
8
- console.log("Bundling started");
8
+ export async function bundle(basePath, silent) {
9
+ if (!silent) {
10
+ console.log("Bundling started");
11
+ }
9
12
  let res = false;
10
13
  try {
11
14
  const options = (await import(path.join(basePath, "webpack.config.js")));
@@ -38,6 +41,8 @@ export async function bundle(basePath) {
38
41
  console.error(e);
39
42
  res = false;
40
43
  }
41
- console.log("Bundling done");
44
+ if (!silent) {
45
+ console.log("Bundling done");
46
+ }
42
47
  return res;
43
48
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Checks for circular dependencies using dependency-cruiser
3
3
  * @param basePath - The project root path
4
+ * @param silent - If true, reduces the amount of output during the check
4
5
  * @returns true if no circular dependencies are found, false otherwise
5
6
  */
6
- export declare function buildCircularDeps(basePath: string): Promise<boolean>;
7
+ export declare function buildCircularDeps(basePath: string, silent: boolean): Promise<boolean>;
@@ -5,9 +5,10 @@ const ZERO_VIOLATIONS = 0;
5
5
  /**
6
6
  * Checks for circular dependencies using dependency-cruiser
7
7
  * @param basePath - The project root path
8
+ * @param silent - If true, reduces the amount of output during the check
8
9
  * @returns true if no circular dependencies are found, false otherwise
9
10
  */
10
- export async function buildCircularDeps(basePath) {
11
+ export async function buildCircularDeps(basePath, silent) {
11
12
  const srcPath = path.join(basePath, "src"), cruiseOptions = await loadDependencyCruiserConfig(basePath);
12
13
  try {
13
14
  const result = await cruise([srcPath], {
@@ -24,7 +25,9 @@ export async function buildCircularDeps(basePath) {
24
25
  }
25
26
  return false;
26
27
  }
27
- console.log("✅ No circular dependencies found.");
28
+ if (!silent) {
29
+ console.log("✅ No circular dependencies found.");
30
+ }
28
31
  return true;
29
32
  }
30
33
  catch (e) {
@@ -32,6 +35,8 @@ export async function buildCircularDeps(basePath) {
32
35
  return false;
33
36
  }
34
37
  finally {
35
- console.log("Finished checking circular dependencies.");
38
+ if (!silent) {
39
+ console.log("Finished checking circular dependencies.");
40
+ }
36
41
  }
37
42
  }
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @param basePath -
3
+ * @param silent -
3
4
  * @returns true if the dist folder was cleared
4
5
  */
5
- export declare function clearDist(basePath: string): Promise<boolean>;
6
+ export declare function clearDist(basePath: string, silent: boolean): Promise<boolean>;
@@ -2,10 +2,13 @@ import path from "node:path";
2
2
  import { rimraf } from "rimraf";
3
3
  /**
4
4
  * @param basePath -
5
+ * @param silent -
5
6
  * @returns true if the dist folder was cleared
6
7
  */
7
- export async function clearDist(basePath) {
8
- console.log("Clearing dist folder");
8
+ export async function clearDist(basePath, silent) {
9
+ if (!silent) {
10
+ console.log("Clearing dist folder");
11
+ }
9
12
  let res = false;
10
13
  try {
11
14
  await rimraf(path.join(basePath, "dist"));
@@ -15,6 +18,8 @@ export async function clearDist(basePath) {
15
18
  console.error(e);
16
19
  res = false;
17
20
  }
18
- console.log("Clearing dist folder done");
21
+ if (!silent) {
22
+ console.log("Clearing dist folder done");
23
+ }
19
24
  return res;
20
25
  }
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @param basePath -
3
+ * @param silent -
3
4
  * @returns true if the dist files process was successful
4
5
  */
5
- export declare function buildDistFiles(basePath: string): Promise<boolean>;
6
+ export declare function buildDistFiles(basePath: string, silent: boolean): Promise<boolean>;
@@ -3,10 +3,13 @@ import klaw from "klaw";
3
3
  import path from "node:path";
4
4
  /**
5
5
  * @param basePath -
6
+ * @param silent -
6
7
  * @returns true if the dist files process was successful
7
8
  */
8
- export async function buildDistFiles(basePath) {
9
- console.log("Build - started on dist files");
9
+ export async function buildDistFiles(basePath, silent) {
10
+ if (!silent) {
11
+ console.log("Build - started on dist files");
12
+ }
10
13
  let res;
11
14
  try {
12
15
  const pkgInfo = JSON.parse((await fs.readFile(path.join(basePath, "package.json"))).toString()), libPackage = path.join(basePath, "package.dist.json"), distPath = path.join(basePath, pkgInfo.publishConfig?.directory ?? "dist"), data = await fs.readFile(libPackage), text = data.toString(), libObj = JSON.parse(text);
@@ -19,7 +22,9 @@ export async function buildDistFiles(basePath) {
19
22
  }
20
23
  const jsonIndent = 2;
21
24
  await fs.writeFile(libPackage, `${JSON.stringify(libObj, undefined, jsonIndent)}\n`, "utf8");
22
- console.log(`package.dist.json updated successfully to version ${pkgInfo.version}`);
25
+ if (!silent) {
26
+ console.log(`package.dist.json updated successfully to version ${pkgInfo.version}`);
27
+ }
23
28
  const rootFilesToCopy = [
24
29
  "LICENSE",
25
30
  "README.md",
@@ -63,6 +68,8 @@ export async function buildDistFiles(basePath) {
63
68
  console.error(e);
64
69
  res = false;
65
70
  }
66
- console.log("Build - done on dist files");
71
+ if (!silent) {
72
+ console.log("Build - done on dist files");
73
+ }
67
74
  return res;
68
75
  }
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @param ci -
3
+ * @param silent -
3
4
  * @returns true if the linting was successful
4
5
  */
5
- export declare function lint(ci: boolean): Promise<boolean>;
6
+ export declare function lint(ci: boolean, silent: boolean): Promise<boolean>;
@@ -1,10 +1,13 @@
1
1
  import { ESLint } from "eslint";
2
2
  /**
3
3
  * @param ci -
4
+ * @param silent -
4
5
  * @returns true if the linting was successful
5
6
  */
6
- export async function lint(ci) {
7
- console.log("ESLint - started on src");
7
+ export async function lint(ci, silent) {
8
+ if (!silent) {
9
+ console.log("ESLint - started on src");
10
+ }
8
11
  let res;
9
12
  try {
10
13
  const eslint = new ESLint({
@@ -23,6 +26,8 @@ export async function lint(ci) {
23
26
  console.error(e);
24
27
  res = false;
25
28
  }
26
- console.log("ESLint - done on src");
29
+ if (!silent) {
30
+ console.log("ESLint - done on src");
31
+ }
27
32
  return res;
28
33
  }
@@ -2,24 +2,28 @@
2
2
  * @param basePath -
3
3
  * @param srcPath -
4
4
  * @param ci -
5
+ * @param silent -
5
6
  * @returns true if the prettify src process was successful
6
7
  */
7
- export declare function prettifySrc(basePath: string, srcPath: string, ci: boolean): Promise<boolean>;
8
+ export declare function prettifySrc(basePath: string, srcPath: string, ci: boolean, silent: boolean): Promise<boolean>;
8
9
  /**
9
10
  * @param basePath -
10
11
  * @param ci -
12
+ * @param silent -
11
13
  * @returns true if the prettify package.json process was successful
12
14
  */
13
- export declare function prettifyPackageJson(basePath: string, ci: boolean): Promise<boolean>;
15
+ export declare function prettifyPackageJson(basePath: string, ci: boolean, silent: boolean): Promise<boolean>;
14
16
  /**
15
17
  * @param basePath -
16
18
  * @param _ci -
19
+ * @param silent -
17
20
  * @returns true if the prettify package.dist.json process was successful
18
21
  */
19
- export declare function prettifyPackageDistJson(basePath: string, _ci: boolean): Promise<boolean>;
22
+ export declare function prettifyPackageDistJson(basePath: string, _ci: boolean, silent: boolean): Promise<boolean>;
20
23
  /**
21
24
  * @param basePath -
22
25
  * @param ci -
26
+ * @param silent -
23
27
  * @returns true if the prettify readme process was successful
24
28
  */
25
- export declare function prettifyReadme(basePath: string, ci: boolean): Promise<boolean>;
29
+ export declare function prettifyReadme(basePath: string, ci: boolean, silent: boolean): Promise<boolean>;
@@ -6,10 +6,13 @@ import prettier from "prettier";
6
6
  * @param basePath -
7
7
  * @param srcPath -
8
8
  * @param ci -
9
+ * @param silent -
9
10
  * @returns true if the prettify src process was successful
10
11
  */
11
- export async function prettifySrc(basePath, srcPath, ci) {
12
- console.log("Prettier - started on src");
12
+ export async function prettifySrc(basePath, srcPath, ci, silent) {
13
+ if (!silent) {
14
+ console.log("Prettier - started on src");
15
+ }
13
16
  let res;
14
17
  try {
15
18
  for await (const file of klaw(srcPath)) {
@@ -38,16 +41,21 @@ export async function prettifySrc(basePath, srcPath, ci) {
38
41
  console.error(e);
39
42
  res = false;
40
43
  }
41
- console.log("Prettier - done on src");
44
+ if (!silent) {
45
+ console.log("Prettier - done on src");
46
+ }
42
47
  return res;
43
48
  }
44
49
  /**
45
50
  * @param basePath -
46
51
  * @param ci -
52
+ * @param silent -
47
53
  * @returns true if the prettify package.json process was successful
48
54
  */
49
- export async function prettifyPackageJson(basePath, ci) {
50
- console.log("Prettier - started on package.json");
55
+ export async function prettifyPackageJson(basePath, ci, silent) {
56
+ if (!silent) {
57
+ console.log("Prettier - started on package.json");
58
+ }
51
59
  let res;
52
60
  try {
53
61
  const contents = await fs.readFile("package.json", "utf8"), options = (await prettier.resolveConfig(basePath)) ?? {};
@@ -70,16 +78,21 @@ export async function prettifyPackageJson(basePath, ci) {
70
78
  console.error(e);
71
79
  res = false;
72
80
  }
73
- console.log("Prettier - done on package.json");
81
+ if (!silent) {
82
+ console.log("Prettier - done on package.json");
83
+ }
74
84
  return res;
75
85
  }
76
86
  /**
77
87
  * @param basePath -
78
88
  * @param _ci -
89
+ * @param silent -
79
90
  * @returns true if the prettify package.dist.json process was successful
80
91
  */
81
- export async function prettifyPackageDistJson(basePath, _ci) {
82
- console.log("Prettier - started on package.dist.json");
92
+ export async function prettifyPackageDistJson(basePath, _ci, silent) {
93
+ if (!silent) {
94
+ console.log("Prettier - started on package.dist.json");
95
+ }
83
96
  let res;
84
97
  try {
85
98
  const contents = await fs.readFile("package.dist.json", "utf8"), options = (await prettier.resolveConfig(basePath)) ?? {};
@@ -102,16 +115,21 @@ export async function prettifyPackageDistJson(basePath, _ci) {
102
115
  console.error(e);
103
116
  res = false;
104
117
  }
105
- console.log("Prettier - done on package.dist.json");
118
+ if (!silent) {
119
+ console.log("Prettier - done on package.dist.json");
120
+ }
106
121
  return res;
107
122
  }
108
123
  /**
109
124
  * @param basePath -
110
125
  * @param ci -
126
+ * @param silent -
111
127
  * @returns true if the prettify readme process was successful
112
128
  */
113
- export async function prettifyReadme(basePath, ci) {
114
- console.log("Prettier - started on README.md");
129
+ export async function prettifyReadme(basePath, ci, silent) {
130
+ if (!silent) {
131
+ console.log("Prettier - started on README.md");
132
+ }
115
133
  let res;
116
134
  try {
117
135
  const contents = await fs.readFile("README.md", "utf8"), options = (await prettier.resolveConfig(basePath)) ?? {};
@@ -127,22 +145,28 @@ export async function prettifyReadme(basePath, ci) {
127
145
  const formatted = await prettier.format(contents, options);
128
146
  await fs.writeFile("README.md", formatted, "utf8");
129
147
  }
130
- res = (await prettifyTraductions(basePath, ci)) && (await prettifyMarkdownTypeDocFiles(basePath, ci));
148
+ res =
149
+ (await prettifyTraductions(basePath, ci, silent)) && (await prettifyMarkdownTypeDocFiles(basePath, ci, silent));
131
150
  }
132
151
  catch (e) {
133
152
  console.error(e);
134
153
  res = false;
135
154
  }
136
- console.log("Prettier - done on README.md");
155
+ if (!silent) {
156
+ console.log("Prettier - done on README.md");
157
+ }
137
158
  return res;
138
159
  }
139
160
  /**
140
161
  * @param basePath -
141
162
  * @param ci -
163
+ * @param silent -
142
164
  * @returns true if the prettify traductions process was successful
143
165
  */
144
- async function prettifyTraductions(basePath, ci) {
145
- console.log("Prettier - started on traductions");
166
+ async function prettifyTraductions(basePath, ci, silent) {
167
+ if (!silent) {
168
+ console.log("Prettier - started on traductions");
169
+ }
146
170
  let res = false;
147
171
  try {
148
172
  const folder = "traduction", folderPath = path.join(basePath, folder);
@@ -175,16 +199,21 @@ async function prettifyTraductions(basePath, ci) {
175
199
  console.error(e);
176
200
  res = false;
177
201
  }
178
- console.log("Prettier - done on traductions");
202
+ if (!silent) {
203
+ console.log("Prettier - done on traductions");
204
+ }
179
205
  return res;
180
206
  }
181
207
  /**
182
208
  * @param basePath -
183
209
  * @param ci -
210
+ * @param silent -
184
211
  * @returns true if the prettify markdown typedoc files process was successful
185
212
  */
186
- async function prettifyMarkdownTypeDocFiles(basePath, ci) {
187
- console.log("Prettier - started on markdown");
213
+ async function prettifyMarkdownTypeDocFiles(basePath, ci, silent) {
214
+ if (!silent) {
215
+ console.log("Prettier - started on markdown");
216
+ }
188
217
  let res = false;
189
218
  try {
190
219
  const folder = "markdown", folderPath = path.join(basePath, folder);
@@ -217,6 +246,8 @@ async function prettifyMarkdownTypeDocFiles(basePath, ci) {
217
246
  console.error(e);
218
247
  res = false;
219
248
  }
220
- console.log("Prettier - done on markdown");
249
+ if (!silent) {
250
+ console.log("Prettier - done on markdown");
251
+ }
221
252
  return res;
222
253
  }
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @param basePath -
3
+ * @param silent -
3
4
  * @returns true if the build was successful
4
5
  */
5
- export declare function buildTS(basePath: string): Promise<boolean>;
6
+ export declare function buildTS(basePath: string, silent: boolean): Promise<boolean>;