@oaysus/cli 0.1.11 → 0.1.12

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.
Files changed (2) hide show
  1. package/README.md +93 -52
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,22 +1,55 @@
1
- # @oaysus/cli
1
+ <p align="center">
2
+ <a href="https://oaysus.com">
3
+ <img src="https://oaysus.com/images/oaysus-icon.png" alt="Oaysus Logo" width="80" />
4
+ </a>
5
+ </p>
6
+
7
+ <h1 align="center">Oaysus CLI</h1>
8
+
9
+ <p align="center">
10
+ <strong>The visual page builder for developer-built components</strong>
11
+ </p>
12
+
13
+ <p align="center">
14
+ Build components in React, Vue, or Svelte. Push with one command.<br />
15
+ Let your team create pages visually.
16
+ </p>
17
+
18
+ <p align="center">
19
+ <a href="https://oaysus.com/docs/quickstart"><strong>Documentation</strong></a> ·
20
+ <a href="https://youtu.be/VlUNf-uZvTY"><strong>Watch Demo</strong></a> ·
21
+ <a href="https://oaysus.com"><strong>Website</strong></a>
22
+ </p>
23
+
24
+ <p align="center">
25
+ <a href="https://www.npmjs.com/package/@oaysus/cli">
26
+ <img src="https://img.shields.io/npm/v/@oaysus/cli.svg" alt="npm version" />
27
+ </a>
28
+ <a href="https://opensource.org/licenses/MIT">
29
+ <img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" />
30
+ </a>
31
+ </p>
32
+
33
+ <p align="center">
34
+ <a href="https://youtu.be/VlUNf-uZvTY">
35
+ <img src="./assets/demo.gif" alt="Oaysus CLI Demo" width="800" />
36
+ </a>
37
+ <br />
38
+ <sub>From code to published page in seconds</sub>
39
+ </p>
40
+
41
+ ---
42
+
43
+ ## One command. Your component is live.
44
+
45
+ Watch how fast you can go from code to a published website with Oaysus.
2
46
 
3
- [![npm version](https://img.shields.io/npm/v/@oaysus/cli.svg)](https://www.npmjs.com/package/@oaysus/cli)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
5
-
6
- **Build components in React, Vue, or Svelte. Push with one command. Let your team create pages visually.**
7
-
8
- Stop building every landing page from scratch. Oaysus lets developers create reusable components that marketing teams can assemble into pages without writing code or waiting for deployments.
9
-
10
- ## What is Oaysus?
11
-
12
- [Oaysus](https://oaysus.com) is a visual page builder for developer-built components. You write components in your favorite framework, define what's editable via a simple schema, and push them to Oaysus. Your marketing team then uses a drag-and-drop editor to create pages instantly.
13
-
14
- **The workflow:**
15
- ```
16
- Developer builds component → Pushes to Oaysus → Marketing creates pages visually
47
+ ```bash
48
+ oaysus init # Pick your framework. Name your project.
49
+ oaysus push # Your component builds and deploys in seconds.
17
50
  ```
18
51
 
19
- No more "can you update the hero text?" tickets. No more waiting for deploys to change copy. Your team ships faster, and you get back to building features.
52
+ No build pipelines. No complex deployments. Your marketing team creates pages visually, and you get back to building features.
20
53
 
21
54
  ## Installation
22
55
 
@@ -53,19 +86,6 @@ That's it. Your components are now available in the visual page builder.
53
86
  Install in dashboard: Content → Theme Packs
54
87
  ```
55
88
 
56
- ## Commands
57
-
58
- | Command | Description |
59
- |---------|-------------|
60
- | `oaysus init [name]` | Create a new theme pack project |
61
- | `oaysus create` | Add a component to your project |
62
- | `oaysus validate` | Validate package structure |
63
- | `oaysus build` | Build components locally (no upload) |
64
- | `oaysus push` | Build and upload to Oaysus |
65
- | `oaysus login` | Authenticate with Oaysus |
66
- | `oaysus logout` | Clear authentication |
67
- | `oaysus whoami` | Display current user |
68
-
69
89
  ## Framework Support
70
90
 
71
91
  Build with the tools you already know:
@@ -82,11 +102,15 @@ Each component has two files: the code and a schema that defines what's editable
82
102
 
83
103
  **Component (React example):**
84
104
  ```tsx
85
- export default function AnnouncementBar({ message, backgroundColor }) {
105
+ export default function Hero({ headline, subtext, ctaLabel }) {
86
106
  return (
87
- <div style={{ backgroundColor }} className="py-3 px-4 text-center text-white">
88
- {message}
89
- </div>
107
+ <section className="py-20 text-center">
108
+ <h1 className="text-5xl font-bold">{headline}</h1>
109
+ <p className="mt-4 text-xl text-gray-600">{subtext}</p>
110
+ <button className="mt-8 px-6 py-3 bg-blue-600 text-white rounded-lg">
111
+ {ctaLabel}
112
+ </button>
113
+ </section>
90
114
  );
91
115
  }
92
116
  ```
@@ -94,21 +118,38 @@ export default function AnnouncementBar({ message, backgroundColor }) {
94
118
  **Schema:**
95
119
  ```json
96
120
  {
97
- "displayName": "Announcement Bar",
121
+ "displayName": "Hero Section",
98
122
  "props": {
99
- "message": {
123
+ "headline": {
100
124
  "type": "string",
101
- "default": "Free shipping on orders over $50"
125
+ "default": "Build faster, ship sooner"
102
126
  },
103
- "backgroundColor": {
104
- "type": "color",
105
- "default": "#2563eb"
127
+ "subtext": {
128
+ "type": "string",
129
+ "default": "The platform for modern teams"
130
+ },
131
+ "ctaLabel": {
132
+ "type": "string",
133
+ "default": "Get Started"
106
134
  }
107
135
  }
108
136
  }
109
137
  ```
110
138
 
111
- Marketing edits `message` and `backgroundColor` in the visual editor. You never touch the code again.
139
+ Marketing edits these props in the visual editor. You never touch the code again.
140
+
141
+ ## Commands
142
+
143
+ | Command | Description |
144
+ |---------|-------------|
145
+ | `oaysus init [name]` | Create a new theme pack project |
146
+ | `oaysus create` | Add a component to your project |
147
+ | `oaysus validate` | Validate package structure |
148
+ | `oaysus build` | Build components locally (no upload) |
149
+ | `oaysus push` | Build and upload to Oaysus |
150
+ | `oaysus login` | Authenticate with Oaysus |
151
+ | `oaysus logout` | Clear authentication |
152
+ | `oaysus whoami` | Display current user |
112
153
 
113
154
  ## Project Structure
114
155
 
@@ -116,33 +157,33 @@ Marketing edits `message` and `backgroundColor` in the visual editor. You never
116
157
  my-components/
117
158
  ├── package.json
118
159
  └── components/
119
- ├── AnnouncementBar/
160
+ ├── Hero/
120
161
  │ ├── index.tsx
121
162
  │ └── schema.json
122
- ├── Hero/
163
+ ├── FeatureGrid/
123
164
  │ ├── index.tsx
124
165
  │ └── schema.json
125
- └── FeatureGrid/
166
+ └── Testimonials/
126
167
  ├── index.tsx
127
168
  └── schema.json
128
169
  ```
129
170
 
130
- ## Documentation
131
-
132
- - **[Quick Start Guide](https://oaysus.com/docs/quickstart)** — Build your first component in 5 minutes
133
- - **[CLI Reference](https://oaysus.com/docs/cli)** — Complete command documentation
134
- - **[Component Guide](https://oaysus.com/docs/components)** — Props, schemas, and best practices
135
- - **[Theme Packs](https://oaysus.com/docs/theme-packs)** — Organize and distribute component collections
136
-
137
171
  ## Why Oaysus?
138
172
 
139
173
  | Traditional Approach | With Oaysus |
140
174
  |---------------------|-------------|
141
175
  | Marketing files a ticket for every page change | Marketing creates pages themselves |
142
176
  | Developers build one-off landing pages | Developers build reusable components |
143
- | Every text change requires a deploy | Changes publish instantly |
177
+ | Every text change requires a deploy | Changes publish instantly to global CDN |
144
178
  | Locked into proprietary CMS themes | Standard React/Vue/Svelte you own |
145
179
 
180
+ ## Documentation
181
+
182
+ - **[Quick Start Guide](https://oaysus.com/docs/quickstart)** — Build your first component in 5 minutes
183
+ - **[CLI Reference](https://oaysus.com/docs/cli)** — Complete command documentation
184
+ - **[Component Guide](https://oaysus.com/docs/components)** — Props, schemas, and best practices
185
+ - **[Theme Packs](https://oaysus.com/docs/theme-packs)** — Organize and distribute component collections
186
+
146
187
  ## Get Started
147
188
 
148
189
  1. **[Create an account](https://oaysus.com/pricing)** — Free tier available
@@ -155,4 +196,4 @@ We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for development
155
196
 
156
197
  ## License
157
198
 
158
- MIT
199
+ MIT © [Oaysus](https://oaysus.com)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaysus/cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Oaysus CLI - Professional developer tool for component uploads",
5
5
  "type": "module",
6
6
  "bin": {