tosijs-platform 1.0.0 → 1.0.4

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 +10 -7
  2. package/package.json +9 -6
package/README.md CHANGED
@@ -12,14 +12,17 @@ Then Node.js became the "standard stack" and standing up "hello world" became a
12
12
 
13
13
  ## The Solution
14
14
 
15
- 1. Set up a Google developer account
16
- 2. Run `npx create-tosijs-platform-app my-site`
17
- 3. Follow the prompts
18
- 4. You have a working, production-ready website
15
+ 1. Install [Bun](https://bun.sh) if you haven't: `curl -fsSL https://bun.sh/install | bash`
16
+ 2. Create a [Firebase project](https://console.firebase.google.com) on the Blaze plan and note its project ID
17
+ 3. Run `bunx create-tosijs-platform-app my-site`
18
+ 4. Follow the prompts
19
+ 5. You have a working, production-ready website
20
+
21
+ > **Note**: You can use `npx` instead of `bunx`, but some utility scripts are TypeScript and may need transpiling if you're not using Bun.
19
22
 
20
23
  The database is configured. Permissions are set up. Authentication works. You can use it as-is, or customize it *without ever deploying code* - using the `/esm` endpoint and `<tosi-esm>` component to load and run modules dynamically.
21
24
 
22
- **tosijs-platform** is built on [tosijs](https://tosijs.net), which distills 30 years of UI development lessons into one small library. It eliminates the need for most state management and binding code (typically 75%+ of a React app) through automatic binding conventions - the same patterns that made 90s RAD tools so productive - while keeping your business logic free of framework dependencies.
25
+ **tosijs-platform** is built on [tosijs](https://tosijs.net), which distills 30 years of UI development lessons into one small library. It eliminates the need for most state management and binding code (typically 75%+ of a React app) through automatic binding conventions - patterns that made 90s RAD tools even more productive - while keeping your business logic free of framework dependencies.
23
26
 
24
27
  ## What You Get
25
28
 
@@ -33,7 +36,7 @@ The database is configured. Permissions are set up. Authentication works. You ca
33
36
  ## Quick Start
34
37
 
35
38
  ```bash
36
- npx create-tosijs-platform-app my-awesome-site
39
+ bunx create-tosijs-platform-app my-awesome-site
37
40
  ```
38
41
 
39
42
  The CLI will:
@@ -171,7 +174,7 @@ Most small-to-medium sites stay **completely free** within these limits. You onl
171
174
  ### Step 1: Create Project
172
175
 
173
176
  ```bash
174
- npx create-tosijs-platform-app my-site
177
+ bunx create-tosijs-platform-app my-site
175
178
  ```
176
179
 
177
180
  You'll be prompted for:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tosijs-platform",
3
- "version": "1.0.0",
3
+ "version": "1.0.4",
4
4
  "description": "Full-stack web application platform - Firebase + tosijs, simpler than PHP/LAMP",
5
5
  "keywords": [
6
6
  "tosijs",
@@ -25,14 +25,17 @@
25
25
  "scripts": {
26
26
  "start": "bun --watch dev.ts",
27
27
  "kill-ports": "lsof -ti:4000,5001,5002,8080,9099,9199 | xargs kill -9 2>/dev/null || true",
28
- "start-emulated": "bun run kill-ports && bun run build && (cd functions && bun run build) && bun bin/start-emulated.js",
29
- "seed": "bun bin/seed-emulators.js",
30
- "seed-clear": "bun bin/seed-emulators.js --clear",
28
+ "start-emulated": "bun run kill-ports && bun run build && (cd functions && bun run build) && bun scripts/start-emulated.js",
29
+ "seed": "bun scripts/seed-emulators.js",
30
+ "seed-clear": "bun scripts/seed-emulators.js --clear",
31
+ "seed-production": "bun scripts/seed-production.js",
31
32
  "build": "bun build ./src/index.ts --outdir ./dist --sourcemap=linked --minify && cp -a public/. dist/ && rm dist/index.html",
32
33
  "format": "bun prettier --write src functions/src",
33
34
  "latest": "bun upgrade && bun install && cd functions && npm install && cd ..",
34
- "deploy-hosting": "firebase deploy --only hosting && echo 'deployed hosting'",
35
- "deploy-functions": "firebase deploy --only functions && echo 'deployed functions'"
35
+ "deploy": "firebase deploy",
36
+ "deploy-hosting": "firebase deploy --only hosting",
37
+ "deploy-functions": "firebase deploy --only functions",
38
+ "initial-deploy": "bun scripts/initial-deploy.js"
36
39
  },
37
40
  "devDependencies": {
38
41
  "@types/bun": "^1.3.5",