elit 3.3.6 → 3.3.7

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 (3) hide show
  1. package/README.md +76 -1
  2. package/dist/cli.js +2 -4
  3. package/package.json +2 -4
package/README.md CHANGED
@@ -98,6 +98,12 @@ npx elit build
98
98
 
99
99
  # Preview production build
100
100
  npx elit preview
101
+
102
+ # Mobile app builds (Android & iOS)
103
+ npx elit android init # Initialize mobile project
104
+ npx elit android sync # Sync web build to mobile
105
+ npx elit android open --platform android # Open Android Studio
106
+ npx elit android build --platform android # Build APK/AAB
101
107
  ```
102
108
 
103
109
  ### Configuration
@@ -114,6 +120,7 @@ export default {
114
120
  host: '0.0.0.0',
115
121
  open: false,
116
122
  logging: true,
123
+ hmr: true, // Enable/disable Hot Module Replacement
117
124
  clients: [{
118
125
  root: '.',
119
126
  basePath: '',
@@ -141,6 +148,13 @@ export default {
141
148
  root: './dist',
142
149
  basePath: '',
143
150
  index: './index.html'
151
+ },
152
+ mobile: {
153
+ appId: 'com.example.myapp',
154
+ appName: 'My App',
155
+ webDir: 'dist',
156
+ version: '1.0.0',
157
+ platforms: ['android', 'ios']
144
158
  }
145
159
  };
146
160
  ```
@@ -949,6 +963,66 @@ const apiUrl = import.meta.env.VITE_API_URL;
949
963
  const isProd = import.meta.env.PROD;
950
964
  ```
951
965
 
966
+ ## Mobile Builds (Android & iOS)
967
+
968
+ Elit supports building native mobile apps using Capacitor. You can build your web app as a native Android APK/AAB or iOS IPA.
969
+
970
+ ### Quick Start
971
+
972
+ ```bash
973
+ # Initialize mobile project
974
+ npx elit android init --app-id com.myapp --app-name "My App"
975
+
976
+ # Build your web app
977
+ npx elit build
978
+
979
+ # Sync to mobile platforms
980
+ npx elit android sync
981
+
982
+ # Open in Android Studio
983
+ npx elit android open --platform android
984
+
985
+ # Build release APK/AAB
986
+ npx elit android build --platform android --target release --output aab
987
+ ```
988
+
989
+ ### Configuration
990
+
991
+ Add mobile configuration to `elit.config.ts`:
992
+
993
+ ```typescript
994
+ export default {
995
+ mobile: {
996
+ appId: 'com.example.myapp',
997
+ appName: 'My App',
998
+ webDir: 'dist',
999
+ version: '1.0.0',
1000
+ platforms: ['android', 'ios']
1001
+ }
1002
+ }
1003
+ ```
1004
+
1005
+ ### Requirements
1006
+
1007
+ **Android:**
1008
+ - Node.js 18+
1009
+ - Java JDK 17+
1010
+ - Android Studio (for Android SDK)
1011
+
1012
+ **iOS:**
1013
+ - macOS with Xcode
1014
+ - Node.js 18+
1015
+ - CocoaPods (`sudo gem install cocoapods`)
1016
+
1017
+ ### Available Commands
1018
+
1019
+ | Command | Description |
1020
+ |---------|-------------|
1021
+ | `elit android init` | Initialize mobile project |
1022
+ | `elit android sync` | Sync web build to mobile |
1023
+ | `elit android open --platform <android\|ios>` | Open in native IDE |
1024
+ | `elit android build --platform <android\|ios>` | Build native app |
1025
+
952
1026
  ## Comparison with Other Frameworks
953
1027
 
954
1028
  | Feature | Elit | Vite + React | Next.js | SvelteKit | Express.js |
@@ -957,8 +1031,9 @@ const isProd = import.meta.env.PROD;
957
1031
  | **Backend Size** | 51KB (Server) | N/A | N/A | N/A | ~200KB+ |
958
1032
  | **Prod Dependencies** | **0** (Zero!) | Many | Many | Many | Many |
959
1033
  | **Dev Server** | ✅ Built-in | ✅ Vite | ✅ Built-in | ✅ Built-in | ❌ |
960
- | **HMR** | ✅ | ✅ | ✅ | ✅ | ❌ |
1034
+ | **HMR** | ✅ Configurable | ✅ | ✅ | ✅ | ❌ |
961
1035
  | **Build Tool** | ✅ esbuild | ✅ Vite | ✅ Turbopack | ✅ Vite | ❌ |
1036
+ | **Mobile Builds** | ✅ Android/iOS | ➕ Via setup | ✅ | ➕ Via setup | ❌ |
962
1037
  | **REST API** | ✅ 10K+ req/s | ❌ | ✅ | ✅ | ✅ 8K+ req/s |
963
1038
  | **Middleware** | ✅ Built-in | ❌ | ✅ | ✅ | ✅ |
964
1039
  | **WebSocket** | ✅ Built-in | ❌ | ❌ | ❌ | ➕ Via package |
package/dist/cli.js CHANGED
@@ -5933,7 +5933,7 @@ var require_package = __commonJS({
5933
5933
  "package.json"(exports2, module2) {
5934
5934
  module2.exports = {
5935
5935
  name: "elit",
5936
- version: "3.3.6",
5936
+ version: "3.3.7",
5937
5937
  description: "Optimized lightweight library for creating DOM elements with reactive state",
5938
5938
  main: "dist/index.js",
5939
5939
  module: "dist/index.mjs",
@@ -6115,19 +6115,17 @@ var require_package = __commonJS({
6115
6115
  },
6116
6116
  homepage: "https://d-osc.github.io/elit/",
6117
6117
  dependencies: {
6118
- esbuild: "^0.24.2",
6118
+ esbuild: "^0.27.3",
6119
6119
  open: "^11.0.0",
6120
6120
  "source-map": "^0.7.6"
6121
6121
  },
6122
6122
  devDependencies: {
6123
6123
  "@types/bun": "^1.3.6",
6124
- "@types/express": "^5.0.6",
6125
6124
  "@types/mime-types": "^2.1.4",
6126
6125
  "@types/node": "^25.0.10",
6127
6126
  "@types/ws": "^8.5.13",
6128
6127
  copyfiles: "^2.4.1",
6129
6128
  elysia: "^1.4.19",
6130
- express: "^5.2.1",
6131
6129
  terser: "^5.44.1",
6132
6130
  "ts-node": "^10.9.2",
6133
6131
  tsup: "^8.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elit",
3
- "version": "3.3.6",
3
+ "version": "3.3.7",
4
4
  "description": "Optimized lightweight library for creating DOM elements with reactive state",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -182,19 +182,17 @@
182
182
  },
183
183
  "homepage": "https://d-osc.github.io/elit/",
184
184
  "dependencies": {
185
- "esbuild": "^0.24.2",
185
+ "esbuild": "^0.27.3",
186
186
  "open": "^11.0.0",
187
187
  "source-map": "^0.7.6"
188
188
  },
189
189
  "devDependencies": {
190
190
  "@types/bun": "^1.3.6",
191
- "@types/express": "^5.0.6",
192
191
  "@types/mime-types": "^2.1.4",
193
192
  "@types/node": "^25.0.10",
194
193
  "@types/ws": "^8.5.13",
195
194
  "copyfiles": "^2.4.1",
196
195
  "elysia": "^1.4.19",
197
- "express": "^5.2.1",
198
196
  "terser": "^5.44.1",
199
197
  "ts-node": "^10.9.2",
200
198
  "tsup": "^8.0.0",