@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.
@@ -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;
@@ -1,2 +1,3 @@
1
1
  export * from './template';
2
2
  export * from './config';
3
+ export * from './time';
@@ -1,6 +1 @@
1
- /**
2
- * Writes JSON data to a file
3
- * @param filePath The path to write the JSON data to
4
- * @param data The data to write
5
- */
6
1
  export declare const writeJsonToFile: <T extends object>(filePath: string, data: T) => void;
@@ -0,0 +1,3 @@
1
+ export declare const formatRelativeTime: (timestamp: string) => string;
2
+ export declare const formatCompactDate: (timestamp: string) => string;
3
+ export declare const formatFullDate: (timestamp: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapples/cli",
3
- "version": "0.0.1",
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
  },