@rodyssey/cli 0.0.3 → 0.0.6

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -1
  2. package/package.json +1 -4
package/dist/cli.js CHANGED
@@ -2095,6 +2095,7 @@ function replaceInFiles(dir, filenames, search, replace) {
2095
2095
 
2096
2096
  // src/create.ts
2097
2097
  var PLACEHOLDER = "__PROJECT_NAME__";
2098
+ var PLACEHOLDER_LOWER = "__project_name__";
2098
2099
  var REPLACEMENT_FILES = {
2099
2100
  webapp: ["package.json", "index.html"],
2100
2101
  "webapp-fullstack": ["package.json", "wrangler.jsonc"]
@@ -2129,6 +2130,7 @@ async function create(projectName, repoUrl, templateName) {
2129
2130
  if (filesToReplace.length > 0) {
2130
2131
  console.log(` \uD83D\uDCDD Replacing project name...`);
2131
2132
  replaceInFiles(targetDir, filesToReplace, PLACEHOLDER, projectName);
2133
+ replaceInFiles(targetDir, filesToReplace, PLACEHOLDER_LOWER, projectName.toLowerCase());
2132
2134
  }
2133
2135
  execSync("git init", { stdio: "ignore", cwd: targetDir });
2134
2136
  console.log(`
@@ -2182,7 +2184,7 @@ Available templates:
2182
2184
  });
2183
2185
  });
2184
2186
  }
2185
- program.name("ro-cli").description("Airconcepts CLI toolkit").version("0.0.1");
2187
+ program.name("@rodyssey/cli").description("Airconcepts CLI toolkit").version("0.0.5");
2186
2188
  var app = program.command("app").description("Manage webapp projects");
2187
2189
  app.command("create").argument("<project-name>", "Name of the project to create").option("-t, --template <template>", "Template to use (webapp | webapp-fullstack)").description("Create a new project from a template").action(async (projectName, options) => {
2188
2190
  let templateName;
package/package.json CHANGED
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "name": "@rodyssey/cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.6",
4
4
  "description": "Scaffold new projects from airconcepts templates",
5
- "bin": {
6
- "@rodyssey/cli": "dist/cli.js"
7
- },
8
5
  "files": [
9
6
  "dist"
10
7
  ],