create-rifad-backend 1.0.0 → 1.0.2

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/bin/index.js CHANGED
@@ -13,7 +13,7 @@ async function init() {
13
13
  const targetDir = process.argv[2] || '.';
14
14
  const root = path.resolve(process.cwd(), targetDir);
15
15
 
16
- console.log(pc.cyan(`\nšŸš€ Creating a new Rifad backend in ${pc.bold(root)}...\n`));
16
+ console.log(pc.cyan(`\nCreating a new Rifad backend in ${pc.bold(root)}...\n`));
17
17
 
18
18
  if (!fs.existsSync(root)) {
19
19
  fs.mkdirSync(root, { recursive: true });
@@ -24,27 +24,27 @@ async function init() {
24
24
  // Copy template files
25
25
  try {
26
26
  await fs.copy(templateDir, root);
27
- console.log(pc.green('āœ” Template files copied successfully!'));
27
+ console.log(pc.green('Success: Template files copied successfully!'));
28
28
  } catch (err) {
29
- console.error(pc.red('āœ– Error copying template files:'), err);
29
+ console.error(pc.red('Error copying template files:'), err);
30
30
  process.exit(1);
31
31
  }
32
32
 
33
33
  // Run npm install
34
- console.log(pc.yellow('\nšŸ“¦ Installing dependencies...'));
34
+ console.log(pc.yellow('\nInstalling dependencies...'));
35
35
  try {
36
36
  await execa('npm', ['install'], {
37
37
  cwd: root,
38
38
  stdio: 'inherit',
39
39
  });
40
- console.log(pc.green('\nāœ” Dependencies installed successfully!'));
40
+ console.log(pc.green('\nSuccess: Dependencies installed successfully!'));
41
41
  } catch (err) {
42
- console.error(pc.red('\nāœ– Error installing dependencies:'), err);
42
+ console.error(pc.red('\nError installing dependencies:'), err);
43
43
  process.exit(1);
44
44
  }
45
45
 
46
46
  // Final instructions
47
- console.log(pc.cyan(`\n✨ Project ready! ✨\n`));
47
+ console.log(pc.cyan(`\nDone: Project ready!\n`));
48
48
  console.log(pc.white('To get started:'));
49
49
  if (targetDir !== '.') {
50
50
  console.log(pc.magenta(` cd ${targetDir}`));
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
- "name": "create-rifad-backend",
3
- "version": "1.0.0",
4
- "description": "Scaffolding tool for Node.js + Express backend",
5
- "type": "module",
6
- "main": "bin/index.js",
7
- "bin": {
8
- "create-rifad-backend": "bin/index.js"
9
- },
10
- "scripts": {
11
- "test": "echo \"Error: no test specified\" && exit 1"
12
- },
13
- "keywords": [
14
- "cli",
15
- "scaffold",
16
- "express",
17
- "node",
18
- "template"
19
- ],
20
- "author": "Rifad",
21
- "license": "MIT",
22
- "dependencies": {
23
- "fs-extra": "^11.2.0",
24
- "execa": "^9.5.1",
25
- "picocolors": "^1.1.1"
26
- }
27
- }
2
+ "name": "create-rifad-backend",
3
+ "version": "1.0.2",
4
+ "description": "Scaffolding tool for Node.js + Express backend",
5
+ "type": "module",
6
+ "main": "bin/index.js",
7
+ "bin": {
8
+ "create-rifad-backend": "bin/index.js"
9
+ },
10
+ "scripts": {
11
+ "test": "echo \"Error: no test specified\" && exit 1"
12
+ },
13
+ "keywords": [
14
+ "cli",
15
+ "scaffold",
16
+ "express",
17
+ "node",
18
+ "template"
19
+ ],
20
+ "author": "Rifad",
21
+ "license": "MIT",
22
+ "dependencies": {
23
+ "fs-extra": "^11.2.0",
24
+ "execa": "^9.5.1",
25
+ "picocolors": "^1.1.1"
26
+ }
27
+ }
@@ -11,5 +11,5 @@ app.get('/', (req, res) => {
11
11
  });
12
12
 
13
13
  app.listen(PORT, () => {
14
- console.log(`\nšŸš€ Server is running on http://localhost:${PORT}`);
14
+ console.log(`Server is running on http://localhost:${PORT}`);
15
15
  });
package/template/.env DELETED
@@ -1 +0,0 @@
1
- PORT=3000