@ramp/router 0.0.0-stage → 0.2.64
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 +8 -0
- package/README.md +42 -2
- package/bin/postinstall.js +6 -0
- package/bin/router.js +6 -0
- package/package.json +35 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
Copyright © 2026 Ramp Business Corporation
|
|
3
|
+
|
|
4
|
+
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:
|
|
5
|
+
|
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
7
|
+
|
|
8
|
+
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,43 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ramp/router
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Install the Ramp CLI and open the Router terminal workspace in one command:
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx @ramp/router
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Or install a global Router command:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install -g @ramp/router
|
|
13
|
+
router
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Requires Node.js 22+ and npm 10+. This package depends on an exact version of
|
|
17
|
+
`@ramp/cli` for its shared native installer. It owns only the `router` npm
|
|
18
|
+
command; `@ramp/cli` owns `ramp`, so installing both does not replace either shim.
|
|
19
|
+
|
|
20
|
+
Bare `router` opens the interactive Router workspace; its Connect tab handles
|
|
21
|
+
sign-in and configuration. It does not open a web dashboard. Explicit arguments
|
|
22
|
+
are forwarded to the native CLI's `router` group, so `router status` and
|
|
23
|
+
`router --version` continue to work. Help/version commands do not launch the UI
|
|
24
|
+
or edit shell startup files.
|
|
25
|
+
|
|
26
|
+
A global install opens the workspace once when it has an interactive terminal;
|
|
27
|
+
otherwise it installs successfully and tells you to run `router` from one.
|
|
28
|
+
Dependency installs and npx lifecycle hooks only install; running
|
|
29
|
+
`npx @ramp/router` opens the workspace. `CI=1` or
|
|
30
|
+
`RAMP_ROUTER_SKIP_ONBOARDING=1` suppresses install-time UI and optional wrapper
|
|
31
|
+
prompts, but an explicit `router` command still opens the UI. An unsuccessful UI
|
|
32
|
+
launch leaves the CLI installed for retry.
|
|
33
|
+
|
|
34
|
+
The workspace needs a human interactive terminal. Without one, install-time UI
|
|
35
|
+
is deferred and an explicit `router` command reports a usage error. Sign-in may
|
|
36
|
+
open a browser from within the terminal workspace.
|
|
37
|
+
|
|
38
|
+
Interactive npx launch offers persistent PATH setup with consent. Global
|
|
39
|
+
installation uses npm's normal shims. Shared installation overrides and
|
|
40
|
+
platform limitations are documented in `@ramp/cli`'s README. With
|
|
41
|
+
`--ignore-scripts`, the first command installs the native CLI on demand.
|
|
42
|
+
|
|
43
|
+
Source and issues: https://github.com/ramp-public/ramp-cli
|
package/bin/router.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ramp/router",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.64",
|
|
4
|
+
"description": "Install the Ramp CLI and open the Router terminal workspace",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22",
|
|
8
|
+
"npm": ">=10"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"router": "bin/router.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"bin/",
|
|
15
|
+
"README.md",
|
|
16
|
+
"LICENSE"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"postinstall": "node bin/postinstall.js"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@ramp/cli": "0.2.64"
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public",
|
|
26
|
+
"registry": "https://registry.npmjs.org/"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/ramp-public/ramp-cli.git",
|
|
31
|
+
"directory": "npm/router"
|
|
32
|
+
},
|
|
33
|
+
"homepage": "https://github.com/ramp-public/ramp-cli#readme",
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/ramp-public/ramp-cli/issues"
|
|
36
|
+
}
|
|
37
|
+
}
|