taisho 0.0.0-stage → 0.15.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.
- package/LICENSE +21 -0
- package/README.md +26 -2
- package/bin/taisho.js +21 -0
- package/package.json +31 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Pablo Di Filippo
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
**Español** · [English](#english)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# taisho
|
|
4
|
+
|
|
5
|
+
La línea de comandos de [TaishoDS Core](https://github.com/taishoDS/core). Este paquete no tiene código propio: instala `@taishods/core` en la misma versión y ejecuta su comando `taisho`, de modo que `npx taisho` funciona sin instalar nada antes (Node 22.18 o superior).
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx taisho init # escribe taisho.config.ts
|
|
9
|
+
npx taisho generate # compila tu CSS a ./taisho/
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Para usar el Core en un proyecto conviene instalar `@taishods/core` directamente (`npm i -D @taishods/core`): `npx taisho` usa entonces esa copia local. La documentación está en https://taisho.design/docs/installation.
|
|
13
|
+
|
|
14
|
+
Licencia MIT.
|
|
15
|
+
|
|
16
|
+
## English
|
|
17
|
+
|
|
18
|
+
The command-line interface of [TaishoDS Core](https://github.com/taishoDS/core). This package has no code of its own: it installs `@taishods/core` at the same version and runs its `taisho` command, so `npx taisho` works without installing anything first (Node 22.18 or newer).
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx taisho init # writes taisho.config.ts
|
|
22
|
+
npx taisho generate # compiles your CSS to ./taisho/
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
To use the Core in a project, install `@taishods/core` directly (`npm i -D @taishods/core`): `npx taisho` then uses that local copy. Documentation: https://taisho.design/en/docs/installation.
|
|
26
|
+
|
|
27
|
+
MIT license.
|
package/bin/taisho.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawnSync } from 'node:child_process';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
|
|
6
|
+
let raiz;
|
|
7
|
+
try {
|
|
8
|
+
raiz = path.dirname(fileURLToPath(import.meta.resolve('@taishods/core/package.json')));
|
|
9
|
+
} catch {
|
|
10
|
+
console.error('taisho: no se encontró @taishods/core, que este paquete necesita. Reinstala con `npm i taisho`.');
|
|
11
|
+
console.error('taisho: @taishods/core was not found and this package needs it. Reinstall with `npm i taisho`.');
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const resultado = spawnSync(process.execPath, [path.join(raiz, 'bin', 'taisho'), ...process.argv.slice(2)], { stdio: 'inherit' });
|
|
16
|
+
if (resultado.error) {
|
|
17
|
+
console.error('taisho:', resultado.error.message);
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
if (resultado.signal) process.kill(process.pid, resultado.signal);
|
|
21
|
+
process.exit(resultado.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taisho",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.15.0",
|
|
4
|
+
"description": "The TaishoDS Core command-line interface. Runs the `taisho` command from @taishods/core.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/taishoDS/core.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://taisho.design",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/taishoDS/core/issues"
|
|
14
|
+
},
|
|
15
|
+
"bin": {
|
|
16
|
+
"taisho": "bin/taisho.js"
|
|
17
|
+
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=22.18"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@taishods/core": "0.15.0"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"bin",
|
|
26
|
+
"LICENSE",
|
|
27
|
+
"README.md"
|
|
28
|
+
],
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"registry": "https://registry.npmjs.org/",
|
|
31
|
+
"access": "public"
|
|
32
|
+
}
|
|
33
|
+
}
|