@mapples/cli 0.0.1 → 0.0.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/dist/commands/assets.d.ts +2 -0
- package/dist/commands/global.d.ts +2 -0
- package/dist/commands/init.d.ts +0 -3
- package/dist/commands/package.d.ts +0 -7
- package/dist/commands/pages.d.ts +0 -6
- package/dist/commands/style.d.ts +2 -0
- package/dist/index.js +5406 -1198
- package/dist/index.js.map +1 -1
- package/dist/utils/config.d.ts +5 -23
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/template.d.ts +0 -5
- package/dist/utils/time.d.ts +3 -0
- package/package.json +3 -1
package/dist/utils/config.d.ts
CHANGED
|
@@ -1,35 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interface for the Mapples configuration
|
|
3
|
-
*/
|
|
4
1
|
export interface MapplesConfig {
|
|
5
2
|
sandboxUrl: string;
|
|
6
3
|
assetUrl: string;
|
|
7
4
|
apiKey: string;
|
|
8
5
|
useExpoRouter: boolean;
|
|
9
|
-
pagesDir: string;
|
|
10
|
-
styleDir: string;
|
|
11
|
-
assetsDir: string;
|
|
12
6
|
sourceDir: string;
|
|
7
|
+
dirs: {
|
|
8
|
+
pages: string;
|
|
9
|
+
style: string;
|
|
10
|
+
assets: string;
|
|
11
|
+
};
|
|
13
12
|
}
|
|
14
|
-
/**
|
|
15
|
-
* Default configuration values
|
|
16
|
-
*/
|
|
17
13
|
export declare const DEFAULT_CONFIG: Omit<MapplesConfig, 'apiKey'>;
|
|
18
|
-
/**
|
|
19
|
-
* Path to the configuration file
|
|
20
|
-
*/
|
|
21
14
|
export declare const CONFIG_FILE_PATH = ".mapplesrc.json";
|
|
22
|
-
/**
|
|
23
|
-
* Reads the configuration file
|
|
24
|
-
* @returns The configuration object or null if the file doesn't exist
|
|
25
|
-
*/
|
|
26
15
|
export declare const readConfig: () => MapplesConfig | null;
|
|
27
|
-
/**
|
|
28
|
-
* Writes the configuration to the file
|
|
29
|
-
* @param config The configuration object
|
|
30
|
-
*/
|
|
31
16
|
export declare const writeConfig: (config: MapplesConfig) => void;
|
|
32
|
-
/**
|
|
33
|
-
* Checks if .gitignore exists and adds the configuration file to it if needed
|
|
34
|
-
*/
|
|
35
17
|
export declare const updateGitignore: () => void;
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/template.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapples/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Mapples CLI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"axios": "^1.11.0",
|
|
33
33
|
"chalk": "^5.6.2",
|
|
34
|
+
"cli-table3": "^0.6.5",
|
|
34
35
|
"commander": "^14.0.1",
|
|
36
|
+
"date-fns": "^4.1.0",
|
|
35
37
|
"inquirer": "^12.8.2",
|
|
36
38
|
"lodash": "^4.17.21"
|
|
37
39
|
},
|