@spritecrate/cli 0.0.0-stage → 0.1.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SpriteCrate contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Alexander Norinchak
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,32 @@
1
- # Temporary Holding Version
1
+ # @spritecrate/cli
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Pack PNG sprites into texture atlases and JSON metadata from the command line.
4
+
5
+ ```bash
6
+ npm install --save-dev @spritecrate/cli
7
+ npx spritecrate pack "assets/**/*.png" --out-dir dist/atlas --format phaser4
8
+ ```
9
+
10
+ ```bash
11
+ npx spritecrate pack --config spritecrate.config.json
12
+ npx spritecrate pack --config spritecrate.config.json --dry-run --json
13
+ npx spritecrate --help
14
+ ```
15
+
16
+ JSON configuration supports Schema completion. See the configuration reference for paths and export formats.
17
+
18
+ ## Documentation
19
+
20
+ - [Project README](https://github.com/iulo/spritecrate#readme)
21
+ - [简体中文](https://github.com/iulo/spritecrate/blob/main/README_CN.md)
22
+ - [Configuration](https://github.com/iulo/spritecrate/blob/main/docs/configuration.md)
23
+
24
+ Based in part on [odrick/free-tex-packer-core](https://github.com/odrick/free-tex-packer-core). Adapted portions retain the original attribution; see THIRD_PARTY_NOTICES.md and LICENSES.
25
+
26
+ ## License
27
+
28
+ MIT © SpriteCrate contributors.
29
+
30
+ ## Export targets
31
+
32
+ Built-in formats: `phaser4` (primary), `phaser3`, `pixijs`, `cocos2d`, `json-hash`, and `json-array`. Phaser and PixiJS have WebGL rendering checks; Cocos plist has metadata/pixel reconstruction tests, with editor/runtime validation pending. See the [framework guide](https://github.com/iulo/spritecrate/blob/main/docs/frameworks.md).
@@ -0,0 +1,8 @@
1
+ # Third-party notices
2
+
3
+ Contains or depends on a TypeScript adaptation of MaxRectsBin from free-tex-packer-core,
4
+ commit f918f61569e669df61825ec1040540f1d8470acb.
5
+ Copyright (c) 2018 Alexander Norinchak, MIT.
6
+ See LICENSES/free-tex-packer-MIT.txt.
7
+
8
+ Upstream: https://github.com/odrick/free-tex-packer-core
@@ -0,0 +1,85 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "SpriteCrate configuration",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "$schema": {
8
+ "type": "string"
9
+ },
10
+ "inputs": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "string",
14
+ "minLength": 1
15
+ },
16
+ "minItems": 1
17
+ },
18
+ "outDir": {
19
+ "type": "string",
20
+ "minLength": 1
21
+ },
22
+ "format": {
23
+ "enum": ["json-hash", "json-array", "phaser4", "phaser3", "pixijs", "cocos2d"]
24
+ },
25
+ "atlas": {
26
+ "type": "object",
27
+ "additionalProperties": false,
28
+ "properties": {
29
+ "maxWidth": {
30
+ "type": "integer",
31
+ "minimum": 1,
32
+ "maximum": 8192
33
+ },
34
+ "maxHeight": {
35
+ "type": "integer",
36
+ "minimum": 1,
37
+ "maximum": 8192
38
+ },
39
+ "padding": {
40
+ "type": "integer",
41
+ "minimum": 0,
42
+ "maximum": 8192
43
+ },
44
+ "border": {
45
+ "type": "integer",
46
+ "minimum": 0,
47
+ "maximum": 8192
48
+ },
49
+ "extrude": {
50
+ "type": "integer",
51
+ "minimum": 0,
52
+ "maximum": 8192
53
+ },
54
+ "alphaThreshold": {
55
+ "type": "integer",
56
+ "minimum": 0,
57
+ "maximum": 255
58
+ },
59
+ "packMode": { "enum": ["fast", "best"] },
60
+ "fixedSize": {
61
+ "type": "boolean"
62
+ },
63
+ "powerOfTwo": {
64
+ "type": "boolean"
65
+ },
66
+ "square": {
67
+ "type": "boolean"
68
+ },
69
+ "trim": {
70
+ "type": "boolean"
71
+ },
72
+ "deduplicate": {
73
+ "type": "boolean"
74
+ },
75
+ "rotate": {
76
+ "type": "boolean"
77
+ },
78
+ "name": {
79
+ "type": "string",
80
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
@@ -0,0 +1 @@
1
+ export {}
package/dist/index.js ADDED
@@ -0,0 +1,131 @@
1
+ #!/usr/bin/env node
2
+ import { parseArgs } from "node:util";
3
+ import path from "node:path";
4
+ import { AtlasError, EXPORT_FORMATS, VERSION, pack, writeOutput } from "@spritecrate/node";
5
+ import { readFile } from "node:fs/promises";
6
+ import { fileURLToPath } from "node:url";
7
+ import { Ajv } from "ajv";
8
+ // src/config.ts
9
+ async function loadConfig(file) {
10
+ if (!file) return {
11
+ config: {},
12
+ cwd: process.cwd()
13
+ };
14
+ const absolute = path.resolve(file);
15
+ try {
16
+ const config = JSON.parse(await readFile(absolute, "utf8"));
17
+ const schema = JSON.parse(await readFile(fileURLToPath(new URL("../config.schema.json", import.meta.url)), "utf8"));
18
+ const validate = new Ajv({ allErrors: true }).compile(schema);
19
+ if (!validate(config)) throw new AtlasError("INVALID_OPTIONS", "Invalid configuration", { errors: validate.errors });
20
+ return {
21
+ config,
22
+ cwd: path.dirname(absolute)
23
+ };
24
+ } catch (error) {
25
+ if (error instanceof AtlasError) throw error;
26
+ throw new AtlasError("INVALID_OPTIONS", `Cannot read JSON config: ${file}`);
27
+ }
28
+ }
29
+ // src/index.ts
30
+ const help = `SpriteCrate ${VERSION} — texture atlas packer
31
+
32
+ Usage: spritecrate pack [glob ...] [options]
33
+
34
+ --config <file> JSON configuration (paths relative to this file)
35
+ --out-dir <dir> Output directory (default: dist/atlas)
36
+ --name <name> Atlas basename (default: atlas)
37
+ --format <name> ${EXPORT_FORMATS.join(" | ")}
38
+ --dry-run Validate and pack without writing files
39
+ --json Emit one JSON result to stdout
40
+ --help Show help
41
+ --version Show version
42
+ `;
43
+ async function main() {
44
+ let args;
45
+ try {
46
+ args = parseArgs({
47
+ allowPositionals: true,
48
+ options: {
49
+ config: { type: "string" },
50
+ "out-dir": { type: "string" },
51
+ name: { type: "string" },
52
+ format: { type: "string" },
53
+ "dry-run": { type: "boolean" },
54
+ json: { type: "boolean" },
55
+ help: { type: "boolean" },
56
+ version: { type: "boolean" }
57
+ }
58
+ });
59
+ } catch (error) {
60
+ throw new AtlasError("INVALID_OPTIONS", error instanceof Error ? error.message : "Invalid arguments");
61
+ }
62
+ const { values, positionals } = args;
63
+ if (values.help || process.argv.length === 2) {
64
+ process.stdout.write(help);
65
+ return;
66
+ }
67
+ if (values.version) {
68
+ process.stdout.write(`${VERSION}\n`);
69
+ return;
70
+ }
71
+ if (positionals[0] !== "pack") throw new AtlasError("INVALID_OPTIONS", "Expected command: pack");
72
+ const { config, cwd } = await loadConfig(values.config);
73
+ const cliInputs = positionals.slice(1);
74
+ const inputs = cliInputs.length ? cliInputs : config.inputs ?? [];
75
+ const format = values.format ?? config.format ?? "json-hash";
76
+ if (!EXPORT_FORMATS.includes(format)) throw new AtlasError("INVALID_OPTIONS", `Unknown format: ${String(format)}`);
77
+ const atlas = {
78
+ ...config.atlas,
79
+ ...values.name !== void 0 ? { name: values.name } : {}
80
+ };
81
+ const result = await pack({
82
+ inputs,
83
+ cwd: cliInputs.length ? process.cwd() : cwd,
84
+ atlas,
85
+ format
86
+ });
87
+ const directory = values["out-dir"] !== void 0 ? path.resolve(values["out-dir"]) : path.resolve(cwd, config.outDir ?? "dist/atlas");
88
+ if (!values["dry-run"]) await writeOutput(result.files, { directory });
89
+ if (values.json) process.stdout.write(`${JSON.stringify({
90
+ ok: true,
91
+ dryRun: Boolean(values["dry-run"]),
92
+ files: result.files.map((file) => ({
93
+ name: file.name,
94
+ bytes: file.data.length
95
+ })),
96
+ report: result.report,
97
+ warnings: result.warnings
98
+ })}\n`);
99
+ else {
100
+ process.stdout.write(`${values["dry-run"] ? "Preview" : "Packed"}: ${result.report.inputCount} sprites → ${result.report.pageCount} pages (${(result.report.occupancy * 100).toFixed(1)}% content occupancy)\n`);
101
+ for (const warning of result.warnings) process.stderr.write(`${warning}\n`);
102
+ }
103
+ }
104
+ try {
105
+ await main();
106
+ } catch (error) {
107
+ const code = error instanceof AtlasError ? error.code : "INTERNAL_ERROR";
108
+ const message = error instanceof Error ? error.message : String(error);
109
+ const details = error instanceof AtlasError ? error.details : {};
110
+ if (process.argv.includes("--json")) process.stdout.write(`${JSON.stringify({
111
+ ok: false,
112
+ error: {
113
+ code,
114
+ message,
115
+ details
116
+ }
117
+ })}\n`);
118
+ process.stderr.write(`${code}: ${message}\n`);
119
+ process.exitCode = code === "INVALID_OPTIONS" ? 2 : [
120
+ "NO_INPUT",
121
+ "INVALID_INPUT",
122
+ "DUPLICATE_ID",
123
+ "DECODE_FAILED",
124
+ "IMAGE_TOO_LARGE",
125
+ "LIMIT_EXCEEDED",
126
+ "INPUT_IO"
127
+ ].includes(code) ? 3 : 1;
128
+ }
129
+ export {};
130
+
131
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/config.ts","../src/index.ts"],"sourcesContent":["import { readFile } from 'node:fs/promises';\nimport path from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { Ajv } from 'ajv';\nimport { AtlasError } from '@spritecrate/node';\nimport type { AtlasOptions, ExportFormat } from '@spritecrate/node';\n\nexport interface Config {\n inputs: string[];\n outDir: string;\n atlas?: AtlasOptions;\n format?: ExportFormat;\n}\n\nexport async function loadConfig(file?: string): Promise<{ config: Partial<Config>; cwd: string }> {\n if (!file) return { config: {}, cwd: process.cwd() };\n const absolute = path.resolve(file);\n try {\n const config: unknown = JSON.parse(await readFile(absolute, 'utf8'));\n const schema = JSON.parse(\n await readFile(fileURLToPath(new URL('../config.schema.json', import.meta.url)), 'utf8'),\n );\n const validate = new Ajv({ allErrors: true }).compile(schema);\n if (!validate(config))\n throw new AtlasError('INVALID_OPTIONS', 'Invalid configuration', { errors: validate.errors });\n return { config: config as Config, cwd: path.dirname(absolute) };\n } catch (error) {\n if (error instanceof AtlasError) throw error;\n throw new AtlasError('INVALID_OPTIONS', `Cannot read JSON config: ${file}`);\n }\n}\n","#!/usr/bin/env node\nimport { parseArgs } from 'node:util';\nimport path from 'node:path';\nimport { pack, writeOutput, AtlasError, VERSION, EXPORT_FORMATS } from '@spritecrate/node';\nimport type { ExportFormat } from '@spritecrate/node';\nimport { loadConfig } from './config.js';\n\nconst help = `SpriteCrate ${VERSION} — texture atlas packer\n\nUsage: spritecrate pack [glob ...] [options]\n\n --config <file> JSON configuration (paths relative to this file)\n --out-dir <dir> Output directory (default: dist/atlas)\n --name <name> Atlas basename (default: atlas)\n --format <name> ${EXPORT_FORMATS.join(' | ')}\n --dry-run Validate and pack without writing files\n --json Emit one JSON result to stdout\n --help Show help\n --version Show version\n`;\n\nasync function main(): Promise<void> {\n let args: ReturnType<typeof parseArgs>;\n try {\n args = parseArgs({\n allowPositionals: true,\n options: {\n config: { type: 'string' },\n 'out-dir': { type: 'string' },\n name: { type: 'string' },\n format: { type: 'string' },\n 'dry-run': { type: 'boolean' },\n json: { type: 'boolean' },\n help: { type: 'boolean' },\n version: { type: 'boolean' },\n },\n });\n } catch (error) {\n throw new AtlasError(\n 'INVALID_OPTIONS',\n error instanceof Error ? error.message : 'Invalid arguments',\n );\n }\n const { values, positionals } = args;\n if (values.help || process.argv.length === 2) {\n process.stdout.write(help);\n return;\n }\n if (values.version) {\n process.stdout.write(`${VERSION}\\n`);\n return;\n }\n if (positionals[0] !== 'pack') throw new AtlasError('INVALID_OPTIONS', 'Expected command: pack');\n const { config, cwd } = await loadConfig(values.config as string | undefined);\n const cliInputs = positionals.slice(1);\n const inputs = cliInputs.length ? cliInputs : (config.inputs ?? []);\n const format = values.format ?? config.format ?? 'json-hash';\n if (!EXPORT_FORMATS.includes(format as ExportFormat))\n throw new AtlasError('INVALID_OPTIONS', `Unknown format: ${String(format)}`);\n const atlas = {\n ...config.atlas,\n ...(values.name !== undefined ? { name: values.name as string } : {}),\n };\n const result = await pack({\n inputs,\n cwd: cliInputs.length ? process.cwd() : cwd,\n atlas,\n format: format as ExportFormat,\n });\n const directory =\n values['out-dir'] !== undefined\n ? path.resolve(values['out-dir'] as string)\n : path.resolve(cwd, config.outDir ?? 'dist/atlas');\n if (!values['dry-run']) await writeOutput(result.files, { directory });\n if (values.json)\n process.stdout.write(\n `${JSON.stringify({ ok: true, dryRun: Boolean(values['dry-run']), files: result.files.map((file) => ({ name: file.name, bytes: file.data.length })), report: result.report, warnings: result.warnings })}\\n`,\n );\n else {\n process.stdout.write(\n `${values['dry-run'] ? 'Preview' : 'Packed'}: ${result.report.inputCount} sprites → ${result.report.pageCount} pages (${(result.report.occupancy * 100).toFixed(1)}% content occupancy)\\n`,\n );\n for (const warning of result.warnings) process.stderr.write(`${warning}\\n`);\n }\n}\n\ntry {\n await main();\n} catch (error) {\n const code = error instanceof AtlasError ? error.code : 'INTERNAL_ERROR';\n const message = error instanceof Error ? error.message : String(error);\n const details = error instanceof AtlasError ? error.details : {};\n if (process.argv.includes('--json'))\n process.stdout.write(`${JSON.stringify({ ok: false, error: { code, message, details } })}\\n`);\n process.stderr.write(`${code}: ${message}\\n`);\n process.exitCode =\n code === 'INVALID_OPTIONS'\n ? 2\n : [\n 'NO_INPUT',\n 'INVALID_INPUT',\n 'DUPLICATE_ID',\n 'DECODE_FAILED',\n 'IMAGE_TOO_LARGE',\n 'LIMIT_EXCEEDED',\n 'INPUT_IO',\n ].includes(code)\n ? 3\n : 1;\n}\n"],"mappings":";;;;;;;;AAcA,eAAsB,WAAW,MAAkE;CACjG,IAAI,CAAC,MAAM,OAAO;EAAE,QAAQ,CAAC;EAAG,KAAK,QAAQ,IAAI;CAAE;CACnD,MAAM,WAAW,KAAK,QAAQ,IAAI;CAClC,IAAI;EACF,MAAM,SAAkB,KAAK,MAAM,MAAM,SAAS,UAAU,MAAM,CAAC;EACnE,MAAM,SAAS,KA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MAAM,OAAO,iBAAiB,aAAa,MAAM,OAAO;CACxD,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACrE,MAAM,UAAU,iBAAiB,aAAa,MAAM,UAAU,CAAC;CAC/D,IAAI,QAAQ,KAAK,SAAS,QAAQ,GAChC,QAAQ,OAAO,MAAM,GAAG,KAAK,UAAU;EAAE,IAAI;EAAO,OAAO;GAAE;GAAM;GAAS;EAAQ;CAAE,CAAC,EAAE,GAAG;CAC9F,QAAQ,OAAO,MAAM,GAAG,KAAK,IAAI,QAAQ,GAAG;CAC5C,QAAQ,WACN,SAAS,oBACL,IACA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,CAAC,SAAS,IAAI,IACf,IACA;AACV"}
package/package.json CHANGED
@@ -1,6 +1,60 @@
1
1
  {
2
2
  "name": "@spritecrate/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.3",
4
+ "description": "SpriteCrate cli: deterministic texture atlas tooling",
5
+ "keywords": [
6
+ "cocos-creator",
7
+ "cocos2d",
8
+ "phaser",
9
+ "phaser4",
10
+ "pixijs",
11
+ "spritecrate",
12
+ "spritesheet",
13
+ "texture-atlas",
14
+ "texture-packer"
15
+ ],
16
+ "homepage": "https://github.com/iulo/spritecrate#readme",
17
+ "bugs": {
18
+ "url": "https://github.com/iulo/spritecrate/issues"
19
+ },
20
+ "license": "MIT",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/iulo/spritecrate.git",
24
+ "directory": "packages/cli"
25
+ },
26
+ "bin": {
27
+ "spritecrate": "./dist/index.js"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "LICENSE",
32
+ "LICENSES",
33
+ "THIRD_PARTY_NOTICES.md",
34
+ "config.schema.json"
35
+ ],
36
+ "type": "module",
37
+ "types": "./dist/index.d.ts",
38
+ "exports": {
39
+ ".": {
40
+ "types": "./dist/index.d.ts",
41
+ "import": "./dist/index.js"
42
+ },
43
+ "./config.schema.json": "./config.schema.json"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "dependencies": {
49
+ "ajv": "8.20.0",
50
+ "@spritecrate/node": "^0.1.3"
51
+ },
52
+ "engines": {
53
+ "node": ">=22.18.0"
54
+ },
55
+ "scripts": {
56
+ "build": "tsdown",
57
+ "typecheck": "tsc -p tsconfig.json",
58
+ "check:package": "node ../../scripts/check-package.mjs"
59
+ }
6
60
  }