forest-cli 5.8.0 → 5.9.0

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,7 +1,7 @@
1
1
  require('dotenv').config();
2
2
  const { createAgent } = require('@forestadmin/agent');
3
3
  {{#if isDemo}}
4
- const { createDummyDataSource } = require('@forestadmin/datasource-dummy');
4
+ const { createDemoFintechDataSource } = require('@forestadmin/datasource-demo-fintech');
5
5
  {{else}}
6
6
  {{#if isMongo}}
7
7
  const { createMongoDataSource } = require('@forestadmin/datasource-mongo');
@@ -33,9 +33,10 @@ const agent = createAgent({
33
33
  // Connect your datasources
34
34
  // All options are documented at https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/connection
35
35
  {{#if isDemo}}
36
- // Demo data source (in-memory sample data) — no database required.
36
+ // Demo data source: realistic fintech sample data on a self-contained local SQLite
37
+ // database — no external database to connect.
37
38
  // Replace it with your real database: https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/connection
38
- agent.addDataSource(createDummyDataSource());
39
+ agent.addDataSource(createDemoFintechDataSource());
39
40
  {{else}}
40
41
  {{#if isMongo}}
41
42
  agent.addDataSource(
@@ -8,7 +8,7 @@ import type { Schema } from './typings';
8
8
  import 'dotenv/config';
9
9
  import { createAgent } from '@forestadmin/agent';
10
10
  {{#if isDemo}}
11
- import { createDummyDataSource } from '@forestadmin/datasource-dummy';
11
+ import { createDemoFintechDataSource } from '@forestadmin/datasource-demo-fintech';
12
12
  {{else}}
13
13
  {{#if isMongo}}
14
14
  import { createMongoDataSource } from '@forestadmin/datasource-mongo';
@@ -37,9 +37,10 @@ const agent = createAgent<Schema>({
37
37
  // Connect your datasources
38
38
  // All options are documented at https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/connection
39
39
  {{#if isDemo}}
40
- // Demo data source (in-memory sample data) — no database required.
40
+ // Demo data source: realistic fintech sample data on a self-contained local SQLite
41
+ // database — no external database to connect.
41
42
  // Replace it with your real database: https://docs.forestadmin.com/developer-guide-agents-nodejs/data-sources/connection
42
- agent.addDataSource(createDummyDataSource());
43
+ agent.addDataSource(createDemoFintechDataSource());
43
44
  {{else}}
44
45
  {{#if isMongo}}
45
46
  agent.addDataSource(
@@ -1324,116 +1324,7 @@
1324
1324
  "invite.js"
1325
1325
  ]
1326
1326
  },
1327
- "projects:create:demo": {
1328
- "aliases": [],
1329
- "args": {
1330
- "applicationName": {
1331
- "description": "Name of the project to create.",
1332
- "name": "applicationName",
1333
- "required": true
1334
- }
1335
- },
1336
- "description": "Create a new Forest Admin project with demo data — no database required.",
1337
- "flags": {
1338
- "applicationHost": {
1339
- "char": "H",
1340
- "description": "Hostname of your admin backend application.",
1341
- "name": "applicationHost",
1342
- "required": false,
1343
- "hasDynamicHelp": false,
1344
- "multiple": false,
1345
- "type": "option"
1346
- },
1347
- "applicationPort": {
1348
- "char": "P",
1349
- "description": "Port of your admin backend application.",
1350
- "name": "applicationPort",
1351
- "required": false,
1352
- "hasDynamicHelp": false,
1353
- "multiple": false,
1354
- "type": "option"
1355
- },
1356
- "language": {
1357
- "char": "l",
1358
- "description": "Choose the language you want to use for your project.",
1359
- "name": "language",
1360
- "required": false,
1361
- "hasDynamicHelp": false,
1362
- "multiple": false,
1363
- "options": [
1364
- "javascript",
1365
- "typescript"
1366
- ],
1367
- "type": "option"
1368
- }
1369
- },
1370
- "hasDynamicHelp": false,
1371
- "hiddenAliases": [],
1372
- "id": "projects:create:demo",
1373
- "pluginAlias": "forest-cli",
1374
- "pluginName": "forest-cli",
1375
- "pluginType": "core",
1376
- "options": {
1377
- "applicationHost": {
1378
- "default": "http://localhost",
1379
- "oclif": {
1380
- "char": "H",
1381
- "description": "Hostname of your admin backend application."
1382
- },
1383
- "prompter": {
1384
- "question": "What's the IP/hostname on which your application will be running?"
1385
- }
1386
- },
1387
- "applicationPort": {
1388
- "default": "3310",
1389
- "oclif": {
1390
- "char": "P",
1391
- "description": "Port of your admin backend application."
1392
- },
1393
- "prompter": {
1394
- "question": "What's the port on which your application will be running?"
1395
- }
1396
- },
1397
- "language": {
1398
- "choices": [
1399
- {
1400
- "name": "javascript",
1401
- "value": {
1402
- "name": "javascript",
1403
- "fileExtension": "js"
1404
- }
1405
- },
1406
- {
1407
- "name": "typescript",
1408
- "value": {
1409
- "name": "typescript",
1410
- "fileExtension": "ts"
1411
- }
1412
- }
1413
- ],
1414
- "default": {
1415
- "name": "javascript",
1416
- "fileExtension": "js"
1417
- },
1418
- "oclif": {
1419
- "char": "l",
1420
- "description": "Choose the language you want to use for your project."
1421
- },
1422
- "prompter": {
1423
- "question": "In which language would you like to generate your sources?"
1424
- }
1425
- }
1426
- },
1427
- "isESM": false,
1428
- "relativePath": [
1429
- "dist",
1430
- "commands",
1431
- "projects",
1432
- "create",
1433
- "demo.js"
1434
- ]
1435
- },
1436
- "projects:create:nosql": {
1327
+ "projects:bundle:nosql": {
1437
1328
  "aliases": [],
1438
1329
  "args": {
1439
1330
  "applicationName": {
@@ -1442,7 +1333,7 @@
1442
1333
  "required": true
1443
1334
  }
1444
1335
  },
1445
- "description": "Create a new Forest Admin project.",
1336
+ "description": "Bundle files for Forest Admin project.",
1446
1337
  "flags": {
1447
1338
  "databaseConnectionURL": {
1448
1339
  "char": "c",
@@ -1583,7 +1474,7 @@
1583
1474
  },
1584
1475
  "hasDynamicHelp": false,
1585
1476
  "hiddenAliases": [],
1586
- "id": "projects:create:nosql",
1477
+ "id": "projects:bundle:nosql",
1587
1478
  "pluginAlias": "forest-cli",
1588
1479
  "pluginName": "forest-cli",
1589
1480
  "pluginType": "core",
@@ -1762,11 +1653,11 @@
1762
1653
  "dist",
1763
1654
  "commands",
1764
1655
  "projects",
1765
- "create",
1656
+ "bundle",
1766
1657
  "nosql.js"
1767
1658
  ]
1768
1659
  },
1769
- "projects:create:sql": {
1660
+ "projects:bundle:sql": {
1770
1661
  "aliases": [],
1771
1662
  "args": {
1772
1663
  "applicationName": {
@@ -1775,7 +1666,7 @@
1775
1666
  "required": true
1776
1667
  }
1777
1668
  },
1778
- "description": "Create a new Forest Admin project.",
1669
+ "description": "Bundle files for Forest Admin project.",
1779
1670
  "flags": {
1780
1671
  "databaseConnectionURL": {
1781
1672
  "char": "c",
@@ -1932,7 +1823,7 @@
1932
1823
  },
1933
1824
  "hasDynamicHelp": false,
1934
1825
  "hiddenAliases": [],
1935
- "id": "projects:create:sql",
1826
+ "id": "projects:bundle:sql",
1936
1827
  "pluginAlias": "forest-cli",
1937
1828
  "pluginName": "forest-cli",
1938
1829
  "pluginType": "core",
@@ -2134,11 +2025,11 @@
2134
2025
  "dist",
2135
2026
  "commands",
2136
2027
  "projects",
2137
- "create",
2028
+ "bundle",
2138
2029
  "sql.js"
2139
2030
  ]
2140
2031
  },
2141
- "projects:bundle:nosql": {
2032
+ "projects:create:demo": {
2142
2033
  "aliases": [],
2143
2034
  "args": {
2144
2035
  "applicationName": {
@@ -2147,7 +2038,116 @@
2147
2038
  "required": true
2148
2039
  }
2149
2040
  },
2150
- "description": "Bundle files for Forest Admin project.",
2041
+ "description": "Create a new Forest Admin project with demo data — no database required.",
2042
+ "flags": {
2043
+ "applicationHost": {
2044
+ "char": "H",
2045
+ "description": "Hostname of your admin backend application.",
2046
+ "name": "applicationHost",
2047
+ "required": false,
2048
+ "hasDynamicHelp": false,
2049
+ "multiple": false,
2050
+ "type": "option"
2051
+ },
2052
+ "applicationPort": {
2053
+ "char": "P",
2054
+ "description": "Port of your admin backend application.",
2055
+ "name": "applicationPort",
2056
+ "required": false,
2057
+ "hasDynamicHelp": false,
2058
+ "multiple": false,
2059
+ "type": "option"
2060
+ },
2061
+ "language": {
2062
+ "char": "l",
2063
+ "description": "Choose the language you want to use for your project.",
2064
+ "name": "language",
2065
+ "required": false,
2066
+ "hasDynamicHelp": false,
2067
+ "multiple": false,
2068
+ "options": [
2069
+ "javascript",
2070
+ "typescript"
2071
+ ],
2072
+ "type": "option"
2073
+ }
2074
+ },
2075
+ "hasDynamicHelp": false,
2076
+ "hiddenAliases": [],
2077
+ "id": "projects:create:demo",
2078
+ "pluginAlias": "forest-cli",
2079
+ "pluginName": "forest-cli",
2080
+ "pluginType": "core",
2081
+ "options": {
2082
+ "applicationHost": {
2083
+ "default": "http://localhost",
2084
+ "oclif": {
2085
+ "char": "H",
2086
+ "description": "Hostname of your admin backend application."
2087
+ },
2088
+ "prompter": {
2089
+ "question": "What's the IP/hostname on which your application will be running?"
2090
+ }
2091
+ },
2092
+ "applicationPort": {
2093
+ "default": "3310",
2094
+ "oclif": {
2095
+ "char": "P",
2096
+ "description": "Port of your admin backend application."
2097
+ },
2098
+ "prompter": {
2099
+ "question": "What's the port on which your application will be running?"
2100
+ }
2101
+ },
2102
+ "language": {
2103
+ "choices": [
2104
+ {
2105
+ "name": "javascript",
2106
+ "value": {
2107
+ "name": "javascript",
2108
+ "fileExtension": "js"
2109
+ }
2110
+ },
2111
+ {
2112
+ "name": "typescript",
2113
+ "value": {
2114
+ "name": "typescript",
2115
+ "fileExtension": "ts"
2116
+ }
2117
+ }
2118
+ ],
2119
+ "default": {
2120
+ "name": "javascript",
2121
+ "fileExtension": "js"
2122
+ },
2123
+ "oclif": {
2124
+ "char": "l",
2125
+ "description": "Choose the language you want to use for your project."
2126
+ },
2127
+ "prompter": {
2128
+ "question": "In which language would you like to generate your sources?"
2129
+ }
2130
+ }
2131
+ },
2132
+ "isESM": false,
2133
+ "relativePath": [
2134
+ "dist",
2135
+ "commands",
2136
+ "projects",
2137
+ "create",
2138
+ "demo.js"
2139
+ ]
2140
+ },
2141
+ "projects:create:nosql": {
2142
+ "aliases": [],
2143
+ "args": {
2144
+ "applicationName": {
2145
+ "description": "Name of the project to create.",
2146
+ "name": "applicationName",
2147
+ "required": true
2148
+ }
2149
+ },
2150
+ "description": "Create a new Forest Admin project.",
2151
2151
  "flags": {
2152
2152
  "databaseConnectionURL": {
2153
2153
  "char": "c",
@@ -2288,7 +2288,7 @@
2288
2288
  },
2289
2289
  "hasDynamicHelp": false,
2290
2290
  "hiddenAliases": [],
2291
- "id": "projects:bundle:nosql",
2291
+ "id": "projects:create:nosql",
2292
2292
  "pluginAlias": "forest-cli",
2293
2293
  "pluginName": "forest-cli",
2294
2294
  "pluginType": "core",
@@ -2467,11 +2467,11 @@
2467
2467
  "dist",
2468
2468
  "commands",
2469
2469
  "projects",
2470
- "bundle",
2470
+ "create",
2471
2471
  "nosql.js"
2472
2472
  ]
2473
2473
  },
2474
- "projects:bundle:sql": {
2474
+ "projects:create:sql": {
2475
2475
  "aliases": [],
2476
2476
  "args": {
2477
2477
  "applicationName": {
@@ -2480,7 +2480,7 @@
2480
2480
  "required": true
2481
2481
  }
2482
2482
  },
2483
- "description": "Bundle files for Forest Admin project.",
2483
+ "description": "Create a new Forest Admin project.",
2484
2484
  "flags": {
2485
2485
  "databaseConnectionURL": {
2486
2486
  "char": "c",
@@ -2637,7 +2637,7 @@
2637
2637
  },
2638
2638
  "hasDynamicHelp": false,
2639
2639
  "hiddenAliases": [],
2640
- "id": "projects:bundle:sql",
2640
+ "id": "projects:create:sql",
2641
2641
  "pluginAlias": "forest-cli",
2642
2642
  "pluginName": "forest-cli",
2643
2643
  "pluginType": "core",
@@ -2839,10 +2839,10 @@
2839
2839
  "dist",
2840
2840
  "commands",
2841
2841
  "projects",
2842
- "bundle",
2842
+ "create",
2843
2843
  "sql.js"
2844
2844
  ]
2845
2845
  }
2846
2846
  },
2847
- "version": "5.8.0"
2847
+ "version": "5.9.0"
2848
2848
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "forest-cli",
3
3
  "description": "The Lumberjacks' toolbelt is the Forest CLI which makes easy to manage your back office application directly from the terminal.",
4
- "version": "5.8.0",
4
+ "version": "5.9.0",
5
5
  "author": "Sandro Munda",
6
6
  "contributors": [
7
7
  "Arnaud Valensi <arnaud.valensi@gmail.com>",