@cloudwerk/create-app 0.1.0 → 0.1.1
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.js +6 -4
- package/package.json +1 -1
- package/template-api/cloudwerk.config.ts +1 -3
- package/template-api/package.json.tmpl +1 -0
- package/template-hono-jsx/app/{routes/page.tsx → page.tsx} +1 -1
- package/template-hono-jsx/cloudwerk.config.ts +0 -1
- package/template-hono-jsx/package.json.tmpl +1 -0
- package/template-react/app/{routes/page.tsx → page.tsx} +1 -1
- package/template-react/cloudwerk.config.ts +0 -1
- package/template-react/package.json.tmpl +1 -0
- /package/template-api/app/{routes/route.ts → route.ts} +0 -0
- /package/template-hono-jsx/app/{routes/route.ts → route.ts} +0 -0
- /package/template-react/app/{routes/route.ts → route.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -178,8 +178,9 @@ function printSuccessBanner(projectName, projectPath, pm) {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
// src/versions.ts
|
|
181
|
-
var CORE_VERSION = "0.
|
|
182
|
-
var CLI_VERSION = "0.
|
|
181
|
+
var CORE_VERSION = "0.7.1";
|
|
182
|
+
var CLI_VERSION = "0.7.0";
|
|
183
|
+
var UI_VERSION = "0.7.1";
|
|
183
184
|
|
|
184
185
|
// src/scaffold.ts
|
|
185
186
|
function getTemplateDir(renderer) {
|
|
@@ -188,7 +189,7 @@ function getTemplateDir(renderer) {
|
|
|
188
189
|
return path2.resolve(__dirname, "..", templateName);
|
|
189
190
|
}
|
|
190
191
|
function processTemplate(content, values) {
|
|
191
|
-
return content.replace(/\{\{name\}\}/g, values.name).replace(/\{\{coreVersion\}\}/g, values.coreVersion).replace(/\{\{cliVersion\}\}/g, values.cliVersion);
|
|
192
|
+
return content.replace(/\{\{name\}\}/g, values.name).replace(/\{\{coreVersion\}\}/g, values.coreVersion).replace(/\{\{cliVersion\}\}/g, values.cliVersion).replace(/\{\{uiVersion\}\}/g, values.uiVersion);
|
|
192
193
|
}
|
|
193
194
|
function isTemplateFile(fileName) {
|
|
194
195
|
return fileName.endsWith(".tmpl");
|
|
@@ -216,7 +217,8 @@ async function scaffold(projectName, options = {}) {
|
|
|
216
217
|
const templateValues = {
|
|
217
218
|
name: projectName,
|
|
218
219
|
coreVersion: CORE_VERSION,
|
|
219
|
-
cliVersion: CLI_VERSION
|
|
220
|
+
cliVersion: CLI_VERSION,
|
|
221
|
+
uiVersion: UI_VERSION
|
|
220
222
|
};
|
|
221
223
|
logger.info(`Creating ${projectName}...`);
|
|
222
224
|
try {
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|