create-jilatax 0.0.5 → 0.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/dist/bin.cjs +1 -1
- package/dist/bin.js +1 -1
- package/dist/{cli-B8DIbCrH.js → cli-CcoP3IQU.js} +15 -5
- package/dist/{cli-DMT97_QW.cjs → cli-DtDXFiYr.cjs} +14 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/template/README.md.tmpl +4 -0
- package/template/android/app/build.gradle.kts +1 -1
- package/template/android/app/src/main/res/values-v31/styles.xml +1 -1
- package/template/assets/icon.png +0 -0
- package/template/assets/splash-icon.png +0 -0
- package/template/android/app/src/main/res/drawable/jilatax_mark_foreground.xml +0 -11
- package/template/android/app/src/main/res/drawable/jilatax_splash.xml +0 -9
- package/template/android/app/src/main/res/mipmap-anydpi/jilatax_launcher.xml +0 -12
- package/template/android/app/src/main/res/mipmap-anydpi/jilatax_launcher_round.xml +0 -12
- package/template/android/app/src/main/res/mipmap-anydpi-v26/jilatax_launcher.xml +0 -5
- package/template/android/app/src/main/res/mipmap-anydpi-v26/jilatax_launcher_round.xml +0 -5
package/dist/bin.cjs
CHANGED
package/dist/bin.js
CHANGED
|
@@ -4,10 +4,10 @@ import { stdin, stdout } from "node:process";
|
|
|
4
4
|
import { spawn } from "node:child_process";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
|
-
import { parseAppConfig,
|
|
7
|
+
import { parseAppConfig, syncAndroidProjectConfig } from "jilatax";
|
|
8
8
|
//#region src/generator.ts
|
|
9
|
-
const JILATAX_CLI_VERSION = "^0.0.
|
|
10
|
-
const JILATAX_VERSION = "^0.0.
|
|
9
|
+
const JILATAX_CLI_VERSION = "^0.0.9";
|
|
10
|
+
const JILATAX_VERSION = "^0.0.6";
|
|
11
11
|
const LYNX_QRCODE_PLUGIN_VERSION = "^0.4.4";
|
|
12
12
|
const LYNX_REACT_VERSION = "^0.116.2";
|
|
13
13
|
const LYNX_TYPES_VERSION = "^3.7.0";
|
|
@@ -152,7 +152,7 @@ async function writeGeneratedMetadata(projectRoot, config, projectName) {
|
|
|
152
152
|
};
|
|
153
153
|
await writeFile(path.join(projectRoot, "package.json"), `${JSON.stringify(packageJson, null, 2)}\n`, "utf8");
|
|
154
154
|
await writeFile(path.join(projectRoot, "app.json"), `${JSON.stringify(config, null, 2)}\n`, "utf8");
|
|
155
|
-
await
|
|
155
|
+
await syncAndroidProjectConfig(projectRoot, config);
|
|
156
156
|
if (process.platform !== "win32") await chmod(path.join(projectRoot, "android", "gradlew"), 493);
|
|
157
157
|
}
|
|
158
158
|
function createInitialConfig(displayName, projectName, packageId) {
|
|
@@ -162,15 +162,25 @@ function createInitialConfig(displayName, projectName, packageId) {
|
|
|
162
162
|
$schema: "./node_modules/jilatax/schema/app.schema.json",
|
|
163
163
|
jilatax: {
|
|
164
164
|
android: {
|
|
165
|
+
adaptiveIcon: {
|
|
166
|
+
backgroundColor: "#E8FFF2",
|
|
167
|
+
foregroundImage: "./assets/icon.png"
|
|
168
|
+
},
|
|
165
169
|
package: packageId,
|
|
166
170
|
predictiveBackGestureEnabled: false,
|
|
167
171
|
versionCode: 1
|
|
168
172
|
},
|
|
173
|
+
icon: "./assets/icon.png",
|
|
169
174
|
name: displayName,
|
|
170
175
|
orientation: "portrait",
|
|
171
176
|
scheme: schemeBase || "jilatax-app",
|
|
172
177
|
slug,
|
|
173
|
-
splash: {
|
|
178
|
+
splash: {
|
|
179
|
+
backgroundColor: "#041A17",
|
|
180
|
+
image: "./assets/splash-icon.png",
|
|
181
|
+
imageWidth: 96,
|
|
182
|
+
resizeMode: "contain"
|
|
183
|
+
},
|
|
174
184
|
userInterfaceStyle: "automatic",
|
|
175
185
|
version: "1.0.0"
|
|
176
186
|
}
|
|
@@ -30,8 +30,8 @@ node_path = __toESM(node_path, 1);
|
|
|
30
30
|
let node_url = require("node:url");
|
|
31
31
|
let jilatax = require("jilatax");
|
|
32
32
|
//#region src/generator.ts
|
|
33
|
-
const JILATAX_CLI_VERSION = "^0.0.
|
|
34
|
-
const JILATAX_VERSION = "^0.0.
|
|
33
|
+
const JILATAX_CLI_VERSION = "^0.0.9";
|
|
34
|
+
const JILATAX_VERSION = "^0.0.6";
|
|
35
35
|
const LYNX_QRCODE_PLUGIN_VERSION = "^0.4.4";
|
|
36
36
|
const LYNX_REACT_VERSION = "^0.116.2";
|
|
37
37
|
const LYNX_TYPES_VERSION = "^3.7.0";
|
|
@@ -176,7 +176,7 @@ async function writeGeneratedMetadata(projectRoot, config, projectName) {
|
|
|
176
176
|
};
|
|
177
177
|
await (0, node_fs_promises.writeFile)(node_path.default.join(projectRoot, "package.json"), `${JSON.stringify(packageJson, null, 2)}\n`, "utf8");
|
|
178
178
|
await (0, node_fs_promises.writeFile)(node_path.default.join(projectRoot, "app.json"), `${JSON.stringify(config, null, 2)}\n`, "utf8");
|
|
179
|
-
await (0,
|
|
179
|
+
await (0, jilatax.syncAndroidProjectConfig)(projectRoot, config);
|
|
180
180
|
if (process.platform !== "win32") await (0, node_fs_promises.chmod)(node_path.default.join(projectRoot, "android", "gradlew"), 493);
|
|
181
181
|
}
|
|
182
182
|
function createInitialConfig(displayName, projectName, packageId) {
|
|
@@ -186,15 +186,25 @@ function createInitialConfig(displayName, projectName, packageId) {
|
|
|
186
186
|
$schema: "./node_modules/jilatax/schema/app.schema.json",
|
|
187
187
|
jilatax: {
|
|
188
188
|
android: {
|
|
189
|
+
adaptiveIcon: {
|
|
190
|
+
backgroundColor: "#E8FFF2",
|
|
191
|
+
foregroundImage: "./assets/icon.png"
|
|
192
|
+
},
|
|
189
193
|
package: packageId,
|
|
190
194
|
predictiveBackGestureEnabled: false,
|
|
191
195
|
versionCode: 1
|
|
192
196
|
},
|
|
197
|
+
icon: "./assets/icon.png",
|
|
193
198
|
name: displayName,
|
|
194
199
|
orientation: "portrait",
|
|
195
200
|
scheme: schemeBase || "jilatax-app",
|
|
196
201
|
slug,
|
|
197
|
-
splash: {
|
|
202
|
+
splash: {
|
|
203
|
+
backgroundColor: "#041A17",
|
|
204
|
+
image: "./assets/splash-icon.png",
|
|
205
|
+
imageWidth: 96,
|
|
206
|
+
resizeMode: "contain"
|
|
207
|
+
},
|
|
198
208
|
userInterfaceStyle: "automatic",
|
|
199
209
|
version: "1.0.0"
|
|
200
210
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_cli = require("./cli-
|
|
2
|
+
const require_cli = require("./cli-DtDXFiYr.cjs");
|
|
3
3
|
exports.createHelpText = require_cli.createHelpText;
|
|
4
4
|
exports.createProject = require_cli.createProject;
|
|
5
5
|
exports.defaultPackageId = require_cli.defaultPackageId;
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as normalizeDisplayName, i as defaultPackageId, n as runCreateCli, o as normalizeProjectName, r as createProject, s as validatePackageId, t as createHelpText } from "./cli-
|
|
1
|
+
import { a as normalizeDisplayName, i as defaultPackageId, n as runCreateCli, o as normalizeProjectName, r as createProject, s as validatePackageId, t as createHelpText } from "./cli-CcoP3IQU.js";
|
|
2
2
|
export { createHelpText, createProject, defaultPackageId, normalizeDisplayName, normalizeProjectName, runCreateCli, validatePackageId };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-jilatax",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"packageManager": "bun@1.3.4",
|
|
5
5
|
"description": "Create an Android-first Jilatax application for Lynx and Rspeedy.",
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@clack/prompts": "^1.7.0",
|
|
48
|
-
"jilatax": "^0.0.
|
|
48
|
+
"jilatax": "^0.0.6"
|
|
49
49
|
},
|
|
50
50
|
|
|
51
51
|
"devDependencies": {
|
package/template/README.md.tmpl
CHANGED
|
@@ -32,3 +32,7 @@ Play Store release. Never commit signing credentials.
|
|
|
32
32
|
|
|
33
33
|
Application metadata lives in `app.json`. Android is the only supported native
|
|
34
34
|
platform in this phase.
|
|
35
|
+
|
|
36
|
+
Default launcher and splash artwork lives in `assets/`. Update the image paths,
|
|
37
|
+
background colors, or splash width in `app.json`; Jilatax synchronizes those
|
|
38
|
+
resources before each Android build.
|
|
@@ -60,12 +60,12 @@ android {
|
|
|
60
60
|
manifestPlaceholders["jilataxPredictiveBack"] = predictiveBack.toString()
|
|
61
61
|
manifestPlaceholders["jilataxScheme"] = appScheme
|
|
62
62
|
resValue("string", "jilatax_app_name", appName)
|
|
63
|
-
resValue("color", "jilatax_icon_background", splashBackground)
|
|
64
63
|
resValue("color", "jilatax_splash_background", splashBackground)
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
sourceSets {
|
|
68
67
|
getByName("main").assets.srcDir(file("../../.jilatax/android-assets"))
|
|
68
|
+
getByName("main").res.srcDir(file("../../.jilatax/android-res"))
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
signingConfigs {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<resources>
|
|
3
3
|
<style name="Theme.Jilatax.Starting" parent="Theme.Jilatax">
|
|
4
|
-
<item name="android:windowSplashScreenAnimatedIcon">@drawable/
|
|
4
|
+
<item name="android:windowSplashScreenAnimatedIcon">@drawable/jilatax_splash_icon</item>
|
|
5
5
|
<item name="android:windowSplashScreenAnimationDuration">300</item>
|
|
6
6
|
<item name="android:windowSplashScreenBackground">@color/jilatax_splash_background</item>
|
|
7
7
|
</style>
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<vector
|
|
3
|
-
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
-
android:width="108dp"
|
|
5
|
-
android:height="108dp"
|
|
6
|
-
android:viewportWidth="108"
|
|
7
|
-
android:viewportHeight="108">
|
|
8
|
-
<path
|
|
9
|
-
android:fillColor="#38BDF8"
|
|
10
|
-
android:pathData="M24,22 L84,22 L84,34 L62,34 L62,68 C62,82 53,90 39,90 C32,90 26,88 21,84 L27,73 C31,76 35,78 39,78 C46,78 50,74 50,67 L50,34 L24,34 Z" />
|
|
11
|
-
</vector>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
|
-
<item android:drawable="@color/jilatax_splash_background" />
|
|
4
|
-
<item
|
|
5
|
-
android:width="108dp"
|
|
6
|
-
android:height="108dp"
|
|
7
|
-
android:drawable="@drawable/jilatax_mark_foreground"
|
|
8
|
-
android:gravity="center" />
|
|
9
|
-
</layer-list>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<vector
|
|
3
|
-
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
-
android:width="108dp"
|
|
5
|
-
android:height="108dp"
|
|
6
|
-
android:viewportWidth="108"
|
|
7
|
-
android:viewportHeight="108">
|
|
8
|
-
<path android:fillColor="#0F172A" android:pathData="M0,0 L108,0 L108,108 L0,108 Z" />
|
|
9
|
-
<path
|
|
10
|
-
android:fillColor="#38BDF8"
|
|
11
|
-
android:pathData="M24,22 L84,22 L84,34 L62,34 L62,68 C62,82 53,90 39,90 C32,90 26,88 21,84 L27,73 C31,76 35,78 39,78 C46,78 50,74 50,67 L50,34 L24,34 Z" />
|
|
12
|
-
</vector>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<vector
|
|
3
|
-
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
-
android:width="108dp"
|
|
5
|
-
android:height="108dp"
|
|
6
|
-
android:viewportWidth="108"
|
|
7
|
-
android:viewportHeight="108">
|
|
8
|
-
<path android:fillColor="#0F172A" android:pathData="M54,4 A50,50 0,1 0,54 104 A50,50 0,1 0,54 4" />
|
|
9
|
-
<path
|
|
10
|
-
android:fillColor="#38BDF8"
|
|
11
|
-
android:pathData="M24,22 L84,22 L84,34 L62,34 L62,68 C62,82 53,90 39,90 C32,90 26,88 21,84 L27,73 C31,76 35,78 39,78 C46,78 50,74 50,67 L50,34 L24,34 Z" />
|
|
12
|
-
</vector>
|