@gravito/scaffold 2.0.0 → 2.1.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.
- package/dist/index.cjs +15 -2
- package/dist/index.js +15 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2718,6 +2718,8 @@ export class ${name}ServiceProvider extends ServiceProvider {
|
|
|
2718
2718
|
return `export default {
|
|
2719
2719
|
name: process.env.APP_NAME ?? '${context.name}',
|
|
2720
2720
|
env: process.env.APP_ENV ?? 'development',
|
|
2721
|
+
port: Number.parseInt(process.env.PORT ?? '3000', 10),
|
|
2722
|
+
VIEW_DIR: process.env.VIEW_DIR ?? 'src/views',
|
|
2721
2723
|
debug: process.env.APP_DEBUG === 'true',
|
|
2722
2724
|
url: process.env.APP_URL ?? 'http://localhost:3000',
|
|
2723
2725
|
}
|
|
@@ -3374,6 +3376,16 @@ export default {
|
|
|
3374
3376
|
*/
|
|
3375
3377
|
env: process.env.APP_ENV ?? 'development',
|
|
3376
3378
|
|
|
3379
|
+
/**
|
|
3380
|
+
* Application port
|
|
3381
|
+
*/
|
|
3382
|
+
port: Number.parseInt(process.env.PORT ?? '3000', 10),
|
|
3383
|
+
|
|
3384
|
+
/**
|
|
3385
|
+
* View directory
|
|
3386
|
+
*/
|
|
3387
|
+
VIEW_DIR: process.env.VIEW_DIR ?? 'src/views',
|
|
3388
|
+
|
|
3377
3389
|
/**
|
|
3378
3390
|
* Debug mode
|
|
3379
3391
|
*/
|
|
@@ -3497,8 +3509,7 @@ export default {
|
|
|
3497
3509
|
*/
|
|
3498
3510
|
providers: {
|
|
3499
3511
|
users: {
|
|
3500
|
-
driver: '
|
|
3501
|
-
table: 'users',
|
|
3512
|
+
driver: 'callback', // Custom callback provider
|
|
3502
3513
|
},
|
|
3503
3514
|
},
|
|
3504
3515
|
}
|
|
@@ -4785,6 +4796,8 @@ var ActionDomainGenerator = class extends BaseGenerator {
|
|
|
4785
4796
|
return `export default {
|
|
4786
4797
|
name: process.env.APP_NAME ?? '${context.name}',
|
|
4787
4798
|
env: process.env.APP_ENV ?? 'development',
|
|
4799
|
+
port: Number.parseInt(process.env.PORT ?? '3000', 10),
|
|
4800
|
+
VIEW_DIR: process.env.VIEW_DIR ?? 'src/views',
|
|
4788
4801
|
debug: process.env.APP_DEBUG === 'true',
|
|
4789
4802
|
url: process.env.APP_URL ?? 'http://localhost:3000',
|
|
4790
4803
|
key: process.env.APP_KEY,
|
package/dist/index.js
CHANGED
|
@@ -2672,6 +2672,8 @@ export class ${name}ServiceProvider extends ServiceProvider {
|
|
|
2672
2672
|
return `export default {
|
|
2673
2673
|
name: process.env.APP_NAME ?? '${context.name}',
|
|
2674
2674
|
env: process.env.APP_ENV ?? 'development',
|
|
2675
|
+
port: Number.parseInt(process.env.PORT ?? '3000', 10),
|
|
2676
|
+
VIEW_DIR: process.env.VIEW_DIR ?? 'src/views',
|
|
2675
2677
|
debug: process.env.APP_DEBUG === 'true',
|
|
2676
2678
|
url: process.env.APP_URL ?? 'http://localhost:3000',
|
|
2677
2679
|
}
|
|
@@ -3328,6 +3330,16 @@ export default {
|
|
|
3328
3330
|
*/
|
|
3329
3331
|
env: process.env.APP_ENV ?? 'development',
|
|
3330
3332
|
|
|
3333
|
+
/**
|
|
3334
|
+
* Application port
|
|
3335
|
+
*/
|
|
3336
|
+
port: Number.parseInt(process.env.PORT ?? '3000', 10),
|
|
3337
|
+
|
|
3338
|
+
/**
|
|
3339
|
+
* View directory
|
|
3340
|
+
*/
|
|
3341
|
+
VIEW_DIR: process.env.VIEW_DIR ?? 'src/views',
|
|
3342
|
+
|
|
3331
3343
|
/**
|
|
3332
3344
|
* Debug mode
|
|
3333
3345
|
*/
|
|
@@ -3451,8 +3463,7 @@ export default {
|
|
|
3451
3463
|
*/
|
|
3452
3464
|
providers: {
|
|
3453
3465
|
users: {
|
|
3454
|
-
driver: '
|
|
3455
|
-
table: 'users',
|
|
3466
|
+
driver: 'callback', // Custom callback provider
|
|
3456
3467
|
},
|
|
3457
3468
|
},
|
|
3458
3469
|
}
|
|
@@ -4739,6 +4750,8 @@ var ActionDomainGenerator = class extends BaseGenerator {
|
|
|
4739
4750
|
return `export default {
|
|
4740
4751
|
name: process.env.APP_NAME ?? '${context.name}',
|
|
4741
4752
|
env: process.env.APP_ENV ?? 'development',
|
|
4753
|
+
port: Number.parseInt(process.env.PORT ?? '3000', 10),
|
|
4754
|
+
VIEW_DIR: process.env.VIEW_DIR ?? 'src/views',
|
|
4742
4755
|
debug: process.env.APP_DEBUG === 'true',
|
|
4743
4756
|
url: process.env.APP_URL ?? 'http://localhost:3000',
|
|
4744
4757
|
key: process.env.APP_KEY,
|