launchpd 0.1.0 → 0.1.2
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/README.md +3 -76
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,6 @@ Deploy static sites instantly to a live URL. No config, no complexity.
|
|
|
7
7
|
```bash
|
|
8
8
|
npm install -g launchpd
|
|
9
9
|
launchpd deploy ./my-site
|
|
10
|
-
# → https://abc123.launchpd.cloud
|
|
11
10
|
```
|
|
12
11
|
|
|
13
12
|
## Installation
|
|
@@ -30,7 +29,6 @@ launchpd deploy ./my-folder
|
|
|
30
29
|
|
|
31
30
|
```bash
|
|
32
31
|
launchpd deploy ./my-folder --name my-project
|
|
33
|
-
# → https://my-project.launchpd.cloud
|
|
34
32
|
```
|
|
35
33
|
|
|
36
34
|
### Set expiration time
|
|
@@ -101,82 +99,11 @@ launchpd logout
|
|
|
101
99
|
| Retention | 7 days | 30 days |
|
|
102
100
|
| Versions | 1 | 10 |
|
|
103
101
|
|
|
104
|
-
## Development
|
|
105
102
|
|
|
106
|
-
|
|
103
|
+
## Support
|
|
107
104
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
cd launchpd/cli
|
|
111
|
-
npm install
|
|
112
|
-
cp ../.env.example ../.env
|
|
113
|
-
# Edit ../.env with your Cloudflare R2 credentials
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
### Test locally
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
# Dry run mode (no R2 upload)
|
|
120
|
-
npm run dev
|
|
121
|
-
|
|
122
|
-
# Or test with a real folder
|
|
123
|
-
node bin/cli.js deploy ../examples/test-site --dry-run
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Link for global testing
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
npm link
|
|
130
|
-
launchpd deploy ./test-site --dry-run
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### Run tests
|
|
134
|
-
|
|
135
|
-
```bash
|
|
136
|
-
npm test
|
|
137
|
-
npm run test:watch
|
|
138
|
-
npm run test:coverage
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### Lint code
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
npm run lint
|
|
145
|
-
npm run lint:fix
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
## Configuration
|
|
149
|
-
|
|
150
|
-
The CLI loads configuration from environment variables. Create a `.env` file in the project root:
|
|
151
|
-
|
|
152
|
-
```env
|
|
153
|
-
R2_ACCOUNT_ID=your_cloudflare_account_id
|
|
154
|
-
R2_ACCESS_KEY_ID=your_r2_access_key_id
|
|
155
|
-
R2_SECRET_ACCESS_KEY=your_r2_secret_access_key
|
|
156
|
-
R2_BUCKET_NAME=launchpd
|
|
157
|
-
LAUNCHPD_DOMAIN=launchpd.cloud
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
## Architecture
|
|
161
|
-
|
|
162
|
-
```
|
|
163
|
-
CLI (Node.js + Commander.js)
|
|
164
|
-
↓
|
|
165
|
-
Upload files to Cloudflare R2
|
|
166
|
-
↓
|
|
167
|
-
Cloudflare Worker serves files
|
|
168
|
-
↓
|
|
169
|
-
https://{subdomain}.launchpd.cloud
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
## Publishing to npm
|
|
173
|
-
|
|
174
|
-
```bash
|
|
175
|
-
cd cli
|
|
176
|
-
npm run lint
|
|
177
|
-
npm test
|
|
178
|
-
npm publish --access public
|
|
179
|
-
```
|
|
105
|
+
- [Report issues](https://github.com/kents00/launchpd/issues)
|
|
106
|
+
- [Documentation](https://launchpd.cloud/docs)
|
|
180
107
|
|
|
181
108
|
## License
|
|
182
109
|
|