@youlai/rn-tools 0.1.2 → 0.1.3
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 +41 -0
- package/cli.js +11 -10
- package/cli.mjs +579 -439
- package/index.js +10 -9
- package/index.mjs +455 -347
- package/package.json +2 -2
- package/typings/index.d.ts +3 -2
- package/typings/tasks.d.ts +2 -1
- package/typings/types.d.ts +11 -0
- package/typings/version.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youlai/rn-tools",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "React Native
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "React Native 项目级工具箱,支持版本号、构建号、bundle id、显示名、图标生成、体检和清理",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
7
7
|
"bundle-id",
|
package/typings/index.d.ts
CHANGED
|
@@ -11,5 +11,6 @@ export { updateDisplayName } from './display-name';
|
|
|
11
11
|
export { doctorProject } from './doctor';
|
|
12
12
|
export { buildIconAssets } from './icon';
|
|
13
13
|
export { createConsoleLogger, getLogger } from './logger';
|
|
14
|
-
export { bundleIdTask, cleanTask, createProjectToolRunner, defaultProjectToolRunner, displayNameTask, doctorTask, iconTask, runProjectTask } from './tasks';
|
|
15
|
-
export type { AndroidProjectPaths, BundleIdRenameOptions, CleanProjectOptions, ConsoleLoggerOptions, ConsoleLogLevel, DisplayNameUpdateOptions, DoctorProjectOptions, IconBuildConfig, IconSyncOptions, Logger, MoveRecord, ProjectContext, ProjectTask, ProjectToolRunner, TaskResult } from './types';
|
|
14
|
+
export { bundleIdTask, cleanTask, createProjectToolRunner, defaultProjectToolRunner, displayNameTask, doctorTask, iconTask, runProjectTask, versionTask } from './tasks';
|
|
15
|
+
export type { AndroidProjectPaths, BundleIdRenameOptions, CleanProjectOptions, ConsoleLoggerOptions, ConsoleLogLevel, DisplayNameUpdateOptions, DoctorProjectOptions, IconBuildConfig, IconSyncOptions, Logger, MoveRecord, ProjectContext, ProjectTask, ProjectToolRunner, TaskResult, VersionUpdateOptions } from './types';
|
|
16
|
+
export { updateVersion } from './version';
|
package/typings/tasks.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BundleIdRenameOptions, CleanProjectOptions, DisplayNameUpdateOptions, DoctorProjectOptions, IconSyncOptions, ProjectContext, ProjectTask, ProjectToolRunner, TaskResult } from './types';
|
|
1
|
+
import { BundleIdRenameOptions, CleanProjectOptions, DisplayNameUpdateOptions, DoctorProjectOptions, IconSyncOptions, ProjectContext, ProjectTask, ProjectToolRunner, TaskResult, VersionUpdateOptions } from './types';
|
|
2
2
|
export declare const bundleIdTask: ProjectTask<BundleIdRenameOptions>;
|
|
3
3
|
export declare const displayNameTask: ProjectTask<DisplayNameUpdateOptions>;
|
|
4
|
+
export declare const versionTask: ProjectTask<VersionUpdateOptions>;
|
|
4
5
|
export declare const cleanTask: ProjectTask<CleanProjectOptions>;
|
|
5
6
|
export declare const doctorTask: ProjectTask<DoctorProjectOptions>;
|
|
6
7
|
export declare const iconTask: ProjectTask<IconSyncOptions>;
|
package/typings/types.d.ts
CHANGED
|
@@ -42,6 +42,17 @@ export interface DisplayNameUpdateOptions {
|
|
|
42
42
|
color?: boolean;
|
|
43
43
|
logger?: Logger;
|
|
44
44
|
}
|
|
45
|
+
export interface VersionUpdateOptions {
|
|
46
|
+
rootDir?: string;
|
|
47
|
+
version?: string;
|
|
48
|
+
buildNumber?: string | number;
|
|
49
|
+
platform?: 'all' | 'android' | 'ios';
|
|
50
|
+
dryRun?: boolean;
|
|
51
|
+
verbose?: boolean;
|
|
52
|
+
quiet?: boolean;
|
|
53
|
+
color?: boolean;
|
|
54
|
+
logger?: Logger;
|
|
55
|
+
}
|
|
45
56
|
export interface IconBuildConfig {
|
|
46
57
|
rootDir?: string;
|
|
47
58
|
sourceImage?: string;
|