stimeo 0.1.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 +21 -0
- package/bin/stimeo.js +19 -0
- package/index.d.ts +3 -0
- package/index.js +5 -0
- package/package.json +42 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Stimeo Labs (taiyaky)
|
|
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
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# stimeo
|
|
2
|
+
|
|
3
|
+
**This is an alias of [`stimeo-ui`](https://www.npmjs.com/package/stimeo-ui)** — the
|
|
4
|
+
headless, accessibility-first Stimulus UI framework for Ruby on Rails by
|
|
5
|
+
[Stimeo Labs](https://stimeo-labs.com). The project holds this name so that the
|
|
6
|
+
`stimeo` command and package name always resolve to the real library.
|
|
7
|
+
|
|
8
|
+
Prefer the real package:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install stimeo-ui@beta
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
What this alias provides:
|
|
15
|
+
|
|
16
|
+
- `npx stimeo check app/views` — forwards to the `stimeo-ui` CLI.
|
|
17
|
+
- `import { registerStimeo } from "stimeo"` — re-exports everything from `stimeo-ui`.
|
|
18
|
+
- Subpath imports (`stimeo-ui/controllers/*`, `stimeo-ui/positioning`,
|
|
19
|
+
`stimeo-ui/cable`) are **not** aliased — import those from `stimeo-ui` directly.
|
|
20
|
+
|
|
21
|
+
Docs: <https://stimeo-labs.com> · Issues: <https://github.com/taiyaky/stimeo-ui/issues>
|
package/bin/stimeo.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Forwards `npx stimeo …` to the real CLI inside the stimeo-ui dependency
|
|
3
|
+
// (cli_bin.js reads process.argv itself, so importing it runs the CLI).
|
|
4
|
+
// Two install layouts exist: nested (global installs put the dependency in
|
|
5
|
+
// stimeo/node_modules/) and flat/hoisted (project installs place the two
|
|
6
|
+
// packages side by side under node_modules/).
|
|
7
|
+
import { existsSync } from "node:fs";
|
|
8
|
+
import { fileURLToPath } from "node:url";
|
|
9
|
+
|
|
10
|
+
const candidates = [
|
|
11
|
+
new URL("../node_modules/stimeo-ui/dist/inspector/cli_bin.js", import.meta.url),
|
|
12
|
+
new URL("../../stimeo-ui/dist/inspector/cli_bin.js", import.meta.url),
|
|
13
|
+
];
|
|
14
|
+
const target = candidates.find((url) => existsSync(fileURLToPath(url)));
|
|
15
|
+
if (!target) {
|
|
16
|
+
console.error("stimeo: could not locate the stimeo-ui dependency next to this alias.");
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
await import(target.href);
|
package/index.d.ts
ADDED
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "stimeo",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Alias of stimeo-ui — the headless, accessibility-first Stimulus UI framework for Ruby on Rails. Prefer stimeo-ui; this package makes `npx stimeo` and `import from \"stimeo\"` resolve to the real library.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Stimeo Labs",
|
|
8
|
+
"homepage": "https://stimeo-labs.com",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/taiyaky/stimeo-ui/issues"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/taiyaky/stimeo-ui.git"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"stimulus",
|
|
18
|
+
"rails",
|
|
19
|
+
"hotwire",
|
|
20
|
+
"stimeo",
|
|
21
|
+
"stimeo-ui"
|
|
22
|
+
],
|
|
23
|
+
"main": "./index.js",
|
|
24
|
+
"types": "./index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./index.d.ts",
|
|
28
|
+
"default": "./index.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"bin": {
|
|
32
|
+
"stimeo": "./bin/stimeo.js"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"index.js",
|
|
36
|
+
"index.d.ts",
|
|
37
|
+
"bin"
|
|
38
|
+
],
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"stimeo-ui": "0.1.0-beta.2"
|
|
41
|
+
}
|
|
42
|
+
}
|