@hubol/smooch 1.0.0-beta.18 → 1.0.0-beta.19

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
@@ -29177,15 +29177,17 @@ const describe_brief_1 = __webpack_require__(4672);
29177
29177
  const require_module_1 = __webpack_require__(4584);
29178
29178
  const count_lines_1 = __webpack_require__(7961);
29179
29179
  const native_module_1 = __webpack_require__(4828);
29180
+ const logger = new logger_1.Logger("Template", "yellow");
29180
29181
  const utils = {
29181
29182
  camel: (string) => (0, change_case_1.camelCase)(string).replace(/_/g, ""),
29182
29183
  pascal: (string) => (0, change_case_1.pascalCase)(string).replace(/_/g, ""),
29184
+ kebab: (string) => (0, change_case_1.paramCase)(string),
29183
29185
  noext: (string) => string.replace(/\.[^/\\.]+$/, ""),
29184
29186
  json: (object) => JSON.stringify(object, undefined, 1),
29185
29187
  oneline: (string) => string.replace(/\s+/g, " "),
29186
29188
  format: native_module_1.Native.Prettier.format,
29189
+ Fs: fs_1.Fs,
29187
29190
  };
29188
- const logger = new logger_1.Logger("Template", "yellow");
29189
29191
  class JsTemplate {
29190
29192
  constructor(_srcFile, _templateFn) {
29191
29193
  this._srcFile = _srcFile;
@@ -52961,7 +52963,7 @@ class MaxRectsPacker {
52961
52963
  /***/ ((module) => {
52962
52964
 
52963
52965
  "use strict";
52964
- module.exports = JSON.parse('{"name":"@hubol/smooch","version":"1.0.0-beta.18","description":"Generate texture atlases, browser-compatible audio, and source code from directories","scripts":{"build":"npm run build:json-schema && npm run build:template-api-dts && npm run build:bundle && npm run build:distributable-package-json && npm run build:npm-readme && npm run build:npm-pack","build:json-schema":"ts-node ./tools/generate-config-schema.ts","build:template-api-dts":"npx tsup lib/template-api.ts --dts-only --dts-resolve","build:bundle":"webpack","build:distributable-package-json":"ts-node ./tools/generate-distributable-package-json.ts","build:npm-readme":"ts-node ./tools/generate-npm-readme.ts","build:npm-pack":"ts-node ./tools/pack.ts ../smooch.tgz","dev:build-and-test":"npm run build && npm run test","dev:start":"node --nolazy -r ts-node/register ./lib/main/dev.ts","dev:update-readme":"ts-node ./lib/main/dev.ts ../../tools/update-readme-md.ts","test":"ts-node --transpileOnly test/test.ts"},"bin":{"smooch":"index.js"},"author":"Hubol","license":"ISC","repository":{"type":"git","url":"https://github.com/hubol/smooch.git"},"devDependencies":{"@types/archiver":"^5.3.2","@types/fluent-ffmpeg":"^2.1.21","@types/sharp":"^0.31.1","archiver":"^6.0.0","chalk":"^4.1.2","change-case":"^4.1.2","dprint":"^0.47.6","fluent-ffmpeg":"^2.1.2","glob":"^10.3.3","maxrects-packer":"^2.7.3","minimatch":"^9.0.3","superstruct":"^0.15.5","tree-kill":"^1.2.2","ts-loader":"^9.4.4","ts-node":"^10.9.1","tsup":"^7.2.0","typescript":"^5.0.4","typescript-json-schema":"^0.56.0","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-shebang-plugin":"^1.1.8"}}');
52966
+ module.exports = JSON.parse('{"name":"@hubol/smooch","version":"1.0.0-beta.19","description":"Generate texture atlases, browser-compatible audio, and source code from directories","scripts":{"build":"npm run build:json-schema && npm run build:template-api-dts && npm run build:bundle && npm run build:distributable-package-json && npm run build:npm-readme && npm run build:npm-pack","build:json-schema":"ts-node ./tools/generate-config-schema.ts","build:template-api-dts":"npx tsup lib/template-api.ts --dts-only --dts-resolve","build:bundle":"webpack","build:distributable-package-json":"ts-node ./tools/generate-distributable-package-json.ts","build:npm-readme":"ts-node ./tools/generate-npm-readme.ts","build:npm-pack":"ts-node ./tools/pack.ts ../smooch.tgz","dev:build-and-test":"npm run build && npm run test","dev:start":"node --nolazy -r ts-node/register ./lib/main/dev.ts","dev:update-readme":"ts-node ./lib/main/dev.ts ../../tools/update-readme-md.ts","test":"ts-node --transpileOnly test/test.ts"},"bin":{"smooch":"index.js"},"author":"Hubol","license":"ISC","repository":{"type":"git","url":"https://github.com/hubol/smooch.git"},"devDependencies":{"@types/archiver":"^5.3.2","@types/fluent-ffmpeg":"^2.1.21","@types/sharp":"^0.31.1","archiver":"^6.0.0","chalk":"^4.1.2","change-case":"^4.1.2","dprint":"^0.47.6","fluent-ffmpeg":"^2.1.2","glob":"^10.3.3","maxrects-packer":"^2.7.3","minimatch":"^9.0.3","superstruct":"^0.15.5","tree-kill":"^1.2.2","ts-loader":"^9.4.4","ts-node":"^10.9.1","tsup":"^7.2.0","typescript":"^5.0.4","typescript-json-schema":"^0.56.0","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-shebang-plugin":"^1.1.8"}}');
52965
52967
 
52966
52968
  /***/ })
52967
52969
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubol/smooch",
3
- "version": "1.0.0-beta.18",
3
+ "version": "1.0.0-beta.19",
4
4
  "description": "Generate texture atlases, browser-compatible audio, and source code from directories",
5
5
  "bin": {
6
6
  "smooch": "index.js"
package/template-api.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ import * as fs from 'fs';
2
+ import * as path from 'path';
3
+
4
+ type EndOfLineSequence = "crlf" | "lf" | "os";
5
+
1
6
  declare namespace Boundary_Prettier {
2
7
  interface PrinterOptions {
3
8
  /**
@@ -147,10 +152,38 @@ declare namespace Boundary_Prettier {
147
152
  declare const utils: {
148
153
  camel: (string: string) => string;
149
154
  pascal: (string: string) => string;
155
+ kebab: (string: string) => string;
150
156
  noext: (string: string) => string;
151
157
  json: (object: any) => string;
152
158
  oneline: (string: string) => string;
153
159
  format: (source: string, options?: Boundary_Prettier.Options | undefined) => Promise<string>;
160
+ Fs: {
161
+ resolve: (...paths: string[]) => string;
162
+ _setWriteFileLineEnding: (endOfLineSequence: EndOfLineSequence) => void;
163
+ normalize(path: string): string;
164
+ join(...paths: string[]): string;
165
+ isAbsolute(path: string): boolean;
166
+ relative(from: string, to: string): string;
167
+ dirname(path: string): string;
168
+ basename(path: string, suffix?: string | undefined): string;
169
+ extname(path: string): string;
170
+ sep: "\\" | "/";
171
+ delimiter: ";" | ":";
172
+ parse(path: string): path.ParsedPath;
173
+ format(pathObject: path.FormatInputPathObject): string;
174
+ toNamespacedPath(path: string): string;
175
+ posix: path.PlatformPath;
176
+ win32: path.PlatformPath;
177
+ createWriteStream: typeof fs.createWriteStream;
178
+ readFile: typeof fs.readFile.__promisify__;
179
+ readFileSync: typeof fs.readFileSync;
180
+ writeFile: (file: fs.PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView) => Promise<void>;
181
+ copyFile: typeof fs.copyFile.__promisify__;
182
+ mkdir: (path: fs.PathLike, options?: fs.Mode | fs.MakeDirectoryOptions | null | undefined) => Promise<void>;
183
+ rm: typeof fs.rm.__promisify__;
184
+ exists: typeof fs.exists.__promisify__;
185
+ rename: typeof fs.rename.__promisify__;
186
+ };
154
187
  };
155
188
  type Utils = typeof utils;
156
189