@breadstone-tools/markdowner-app 0.0.32 → 0.0.33

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/Index.js CHANGED
@@ -1,9 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.run = void 0;
4
1
  // export { Cli } from './Cli/Cli';
5
2
  // export { CliArgs } from './Cli/CliArgs';
6
3
  // export { CliConfig, defaultCliConfig } from './Cli/CliConfig';
7
- var Run_js_1 = require("./Run.js");
8
- Object.defineProperty(exports, "run", { enumerable: true, get: function () { return Run_js_1.run; } });
4
+ export { run } from './Run.js';
9
5
  //# sourceMappingURL=Index.js.map
package/Index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Index.js","sourceRoot":"","sources":["../src/Index.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,2CAA2C;AAC3C,iEAAiE;AACjE,mCAA+B;AAAtB,6FAAA,GAAG,OAAA"}
1
+ {"version":3,"file":"Index.js","sourceRoot":"","sources":["../src/Index.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,2CAA2C;AAC3C,iEAAiE;AACjE,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC"}
package/Run.js CHANGED
@@ -1,20 +1,17 @@
1
- "use strict";
2
1
  // #region Imports
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.run = run;
5
- const markdowner_core_1 = require("@breadstone-tools/markdowner-core");
6
- const utilities_1 = require("@breadstone-infrastructure/utilities");
7
- async function run(config) {
8
- const markdownProcessor = new markdowner_core_1.MarkdownProcessor(config.processors);
2
+ import { MarkdownProcessor } from '@breadstone-tools/markdowner-core';
3
+ import { File, Path } from '@breadstone-infrastructure/utilities';
4
+ export async function run(config) {
5
+ const markdownProcessor = new MarkdownProcessor(config.processors);
9
6
  const result = {
10
7
  files: new Array()
11
8
  };
12
- utilities_1.File.glob(config.files).forEach((x) => {
13
- const content = utilities_1.File.readAllText(x);
9
+ File.glob(config.files).forEach((x) => {
10
+ const content = File.readAllText(x);
14
11
  const processedMarkdown = markdownProcessor.process(content);
15
12
  if (!config.dryRun) {
16
- const newPath = utilities_1.Path.changeExtension(x, '.md.html');
17
- utilities_1.File.writeAllText(newPath, processedMarkdown);
13
+ const newPath = Path.changeExtension(x, '.md.html');
14
+ File.writeAllText(newPath, processedMarkdown);
18
15
  result.files.push(newPath);
19
16
  }
20
17
  });
package/Run.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Run.js","sourceRoot":"","sources":["../src/Run.ts"],"names":[],"mappings":";AAAA,kBAAkB;;AAmBlB,kBAkBC;AAnCD,uEAAuF;AACvF,oEAAkE;AAgB3D,KAAK,UAAU,GAAG,CAAC,MAAkB;IACxC,MAAM,iBAAiB,GAAG,IAAI,mCAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACnE,MAAM,MAAM,GAAG;QACX,KAAK,EAAE,IAAI,KAAK,EAAU;KACR,CAAC;IAEvB,gBAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QAClC,MAAM,OAAO,GAAG,gBAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACpC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAE7D,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACjB,MAAM,OAAO,GAAG,gBAAI,CAAC,eAAe,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;YACpD,gBAAI,CAAC,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;YAC9C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AACnC,CAAC"}
1
+ {"version":3,"file":"Run.js","sourceRoot":"","sources":["../src/Run.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAElB,OAAO,EAAE,iBAAiB,EAAmB,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAgBlE,MAAM,CAAC,KAAK,UAAU,GAAG,CAAC,MAAkB;IACxC,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACnE,MAAM,MAAM,GAAG;QACX,KAAK,EAAE,IAAI,KAAK,EAAU;KACR,CAAC;IAEvB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QAClC,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACpC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAE7D,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACjB,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;YACpD,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;YAC9C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AACnC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@breadstone-tools/markdowner-app",
3
3
  "description": "Markdowner cli",
4
- "version": "0.0.32",
4
+ "version": "0.0.33",
5
5
  "license": "MIT",
6
6
  "author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
7
7
  "repository": {
@@ -13,7 +13,7 @@
13
13
  "module": "./Index.js",
14
14
  "types": "./Index.d.ts",
15
15
  "dependencies": {
16
- "@breadstone-infrastructure/utilities": "^0.0.32",
17
- "@breadstone-tools/markdowner-core": "^0.0.32"
16
+ "@breadstone-infrastructure/utilities": "^0.0.33",
17
+ "@breadstone-tools/markdowner-core": "^0.0.33"
18
18
  }
19
19
  }