@skyreve/reve 1.0.5 → 1.0.8
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 +62 -2
- package/bin/darwin/reve +0 -0
- package/bin/linux/reve +0 -0
- package/bin/reve +0 -0
- package/bin/windows/reve.exe +0 -0
- package/package.json +2 -4
package/LICENSE
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 SkyReve Inc.
|
|
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
|
@@ -45,6 +45,18 @@ After installation, you can run it directly with the `reve` command:
|
|
|
45
45
|
```bash
|
|
46
46
|
reve --help
|
|
47
47
|
reve start
|
|
48
|
+
# or
|
|
49
|
+
reve login
|
|
50
|
+
reve project
|
|
51
|
+
reve env list
|
|
52
|
+
reve github login
|
|
53
|
+
reve github install
|
|
54
|
+
reve env link <skyreve-project-env-name_or_id>
|
|
55
|
+
reve env sync
|
|
56
|
+
# todo
|
|
57
|
+
reve gen test # AI
|
|
58
|
+
reve gen api # AI
|
|
59
|
+
reve gen table # AI
|
|
48
60
|
```
|
|
49
61
|
|
|
50
62
|
---
|
|
@@ -103,6 +115,11 @@ or:
|
|
|
103
115
|
make build
|
|
104
116
|
```
|
|
105
117
|
|
|
118
|
+
The build process includes:
|
|
119
|
+
|
|
120
|
+
- **Warning Check**: Runs `make vet` to detect potential issues
|
|
121
|
+
- **Verbose Output**: Shows detailed build information
|
|
122
|
+
|
|
106
123
|
After building, the `reve` binary will be created in the `bin/` directory:
|
|
107
124
|
|
|
108
125
|
```bash
|
|
@@ -347,6 +364,9 @@ make test
|
|
|
347
364
|
|
|
348
365
|
# Run linter
|
|
349
366
|
make lint
|
|
367
|
+
|
|
368
|
+
# Check for Go warnings and issues
|
|
369
|
+
make vet
|
|
350
370
|
```
|
|
351
371
|
|
|
352
372
|
### **6.3 Development Mode**
|
|
@@ -357,6 +377,25 @@ For quick testing during development:
|
|
|
357
377
|
make run
|
|
358
378
|
```
|
|
359
379
|
|
|
380
|
+
### **6.4 Release Build and Publish**
|
|
381
|
+
|
|
382
|
+
To build binaries for all platforms and publish to npm registry:
|
|
383
|
+
|
|
384
|
+
```bash
|
|
385
|
+
make release
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
This command performs the following steps:
|
|
389
|
+
|
|
390
|
+
1. **Build All Platforms**: Creates binaries for Linux, macOS, and Windows
|
|
391
|
+
2. **Publish to npm**: Automatically publishes the package to npm registry
|
|
392
|
+
|
|
393
|
+
**Note**: This command requires:
|
|
394
|
+
|
|
395
|
+
- Valid npm authentication (`npm login`)
|
|
396
|
+
- Updated version in `package.json`
|
|
397
|
+
- All binaries built successfully
|
|
398
|
+
|
|
360
399
|
---
|
|
361
400
|
|
|
362
401
|
## **7. Publishing to npm**
|
|
@@ -406,6 +445,18 @@ npm version major
|
|
|
406
445
|
|
|
407
446
|
### **7.4 Publishing Steps**
|
|
408
447
|
|
|
448
|
+
#### **🔹 Quick Release (Recommended)**
|
|
449
|
+
|
|
450
|
+
For a complete release process in one command:
|
|
451
|
+
|
|
452
|
+
```bash
|
|
453
|
+
make release
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
This automatically builds all platform binaries and publishes to npm.
|
|
457
|
+
|
|
458
|
+
#### **🔹 Manual Publishing Steps**
|
|
459
|
+
|
|
409
460
|
1. **Login to npm**:
|
|
410
461
|
|
|
411
462
|
```bash
|
|
@@ -501,10 +552,19 @@ jobs:
|
|
|
501
552
|
npm whoami
|
|
502
553
|
|
|
503
554
|
# Check package permissions
|
|
504
|
-
npm access
|
|
555
|
+
npm access list packages
|
|
556
|
+
|
|
557
|
+
# Check published versions
|
|
558
|
+
npm view @skyreve/reve versions
|
|
559
|
+
|
|
560
|
+
# Check a published version
|
|
561
|
+
npm view @skyreve/reve@<version>
|
|
562
|
+
|
|
563
|
+
# Deprecate a version
|
|
564
|
+
npm deprecate @skyreve/reve@<version> "no longer support"
|
|
505
565
|
|
|
506
566
|
# Unpublish (only within 24 hours)
|
|
507
|
-
npm unpublish @skyreve/reve
|
|
567
|
+
npm unpublish @skyreve/reve@<version>
|
|
508
568
|
```
|
|
509
569
|
|
|
510
570
|
---
|
package/bin/darwin/reve
CHANGED
|
Binary file
|
package/bin/linux/reve
CHANGED
|
Binary file
|
package/bin/reve
CHANGED
|
Binary file
|
package/bin/windows/reve.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyreve/reve",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Reve - A command line tool for Reve platform",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"reve": "node scripts/reve.js",
|
|
8
|
-
"build": "make build-all
|
|
9
|
-
"build-dev": "make build-all-dev",
|
|
10
|
-
"build-staging": "make build-all-stg",
|
|
8
|
+
"build": "make build-all",
|
|
11
9
|
"clean": "make clean"
|
|
12
10
|
},
|
|
13
11
|
"bin": {
|