@friggframework/devtools 2.0.0-next.120 → 2.0.0-next.121
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/frigg-cli/README.md +77 -30
- package/frigg-cli/__tests__/unit/commands/generate-iam.test.js +18 -0
- package/frigg-cli/__tests__/unit/commands/init.test.js +688 -0
- package/frigg-cli/__tests__/unit/commands/install.test.js +594 -341
- package/frigg-cli/generate-command/index.js +1 -0
- package/frigg-cli/generate-iam-command.js +1 -0
- package/frigg-cli/index.js +9 -4
- package/frigg-cli/init-command/backend-first-handler.js +397 -554
- package/frigg-cli/init-command/deployment-modes.js +7 -0
- package/frigg-cli/init-command/index.js +82 -35
- package/frigg-cli/init-command/safe-path.js +58 -0
- package/frigg-cli/init-command/scaffold-dependencies.js +202 -0
- package/frigg-cli/install-command/app-definition.js +174 -0
- package/frigg-cli/install-command/commit-changes.js +40 -8
- package/frigg-cli/install-command/environment-variables.js +15 -0
- package/frigg-cli/install-command/index.js +96 -21
- package/frigg-cli/install-command/install-package.js +77 -4
- package/frigg-cli/install-command/integration-file.js +20 -11
- package/frigg-cli/install-command/resolve-module.js +69 -0
- package/frigg-cli/install-command/template.js +102 -75
- package/frigg-cli/install-command/validate-package.js +36 -4
- package/frigg-cli/package.json +1 -1
- package/frigg-cli/templates/backend/README.md +267 -0
- package/frigg-cli/templates/backend/env.example +20 -0
- package/frigg-cli/templates/backend/gitignore +10 -0
- package/frigg-cli/templates/backend/index.js +114 -0
- package/frigg-cli/templates/backend/infrastructure.js +20 -0
- package/frigg-cli/test/init-command.test.js +9 -2
- package/infrastructure/__tests__/scaffold-default-infrastructure.test.js +148 -0
- package/infrastructure/docs/POSTGRES-CONFIGURATION.md +21 -1
- package/infrastructure/domains/database/aurora-builder.js +13 -2
- package/infrastructure/domains/database/aurora-builder.test.js +22 -0
- package/infrastructure/domains/security/iam-generator.js +112 -5
- package/infrastructure/domains/security/iam-generator.test.js +94 -0
- package/infrastructure/domains/shared/utilities/base-definition-factory.js +7 -2
- package/infrastructure/domains/shared/utilities/base-definition-factory.test.js +21 -0
- package/package.json +10 -8
|
@@ -118,6 +118,7 @@ async function generateCommand(options = {}) {
|
|
|
118
118
|
if (options.format === 'cloudformation') {
|
|
119
119
|
template = await generateCloudFormationTemplate({
|
|
120
120
|
appName,
|
|
121
|
+
serviceName: appDefinition.name || 'create-frigg-app',
|
|
121
122
|
features,
|
|
122
123
|
userPrefix: options.user || 'frigg-deployment-user',
|
|
123
124
|
stackName: options.stackName || 'frigg-deployment-iam',
|
|
@@ -62,6 +62,7 @@ async function generateIamCommand(options = {}) {
|
|
|
62
62
|
// Use the summary already extracted above (line 44)
|
|
63
63
|
const cloudFormationYaml = generateIAMCloudFormation({
|
|
64
64
|
appName: summary.appName,
|
|
65
|
+
serviceName: summary.serviceName,
|
|
65
66
|
features: summary.features,
|
|
66
67
|
userPrefix: deploymentUserName,
|
|
67
68
|
stackName,
|
package/frigg-cli/index.js
CHANGED
|
@@ -91,11 +91,16 @@ const { ssmPushCommand } = require('./ssm-command');
|
|
|
91
91
|
const program = new Command();
|
|
92
92
|
|
|
93
93
|
program
|
|
94
|
-
.command('init [
|
|
94
|
+
.command('init [projectName]')
|
|
95
95
|
.description('Initialize a new Frigg application')
|
|
96
|
-
.option('-
|
|
97
|
-
.option('-
|
|
98
|
-
.option('-
|
|
96
|
+
.option('-n, --name <name>', 'project name (alternative to the positional argument)')
|
|
97
|
+
.option('-m, --mode <mode>', 'deployment mode: standalone or embedded')
|
|
98
|
+
.option('-y, --yes', 'accept the default for every prompt (implied when stdin is not a TTY)')
|
|
99
|
+
.option('--no-install', 'skip installing dependencies')
|
|
100
|
+
.option('--no-git', 'skip initializing a git repository')
|
|
101
|
+
.option('-f, --force', 'scaffold into a non-empty directory and overwrite README.md')
|
|
102
|
+
.option('-v, --verbose', 'enable verbose output')
|
|
103
|
+
.option('-t, --template <template>', 'legacy template (no longer supported)')
|
|
99
104
|
.action(initCommand);
|
|
100
105
|
|
|
101
106
|
program
|