Skip to content

Commit

Permalink
feat: update project creation payload (#388)
Browse files Browse the repository at this point in the history
* feat: pass answers and source params to project creation endpoint

* 1.19.0
  • Loading branch information
BatuhanW authored Jan 29, 2024
1 parent 7922a66 commit dfc9556
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
lib/
.DS_*
**/node_modules
**/node_modules
tmp
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superplate-cli",
"version": "1.18.2",
"version": "1.19.0",
"description": "The frontend boilerplate with superpowers",
"license": "MIT",
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions src/saofile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ const saoConfig: GeneratorConfig = {
method: "POST",
body: JSON.stringify({
email: emailPromptResult.userEmail || answers.userEmail,
answers: {
...answers,
projectType: sao.opts.extras.projectType,
},
source:
sao.opts.extras.apiMode === false
? "CREATE_REFINE_APP"
: "REFINE_NEW",
}),
headers: { "Content-Type": "application/json" },
},
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"exclude": ["template/", "lib/", "templates/"],
"exclude": ["template/", "lib/", "templates/", "tmp/"],
"compilerOptions": {
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
Expand All @@ -25,7 +25,7 @@
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
"paths": {
"@Helper": ["./Helper"],
"@Helper/*": ["./Helper/*"],
"@Helper/*": ["./Helper/*"]
}
}
}

0 comments on commit dfc9556

Please sign in to comment.