portosaurus 1.14.0 → 1.15.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/README.md CHANGED
@@ -48,10 +48,10 @@ Navigate to your project and start the development server:
48
48
  cd my-portfolio
49
49
 
50
50
  # With npm
51
- npm run start
51
+ npm run dev
52
52
 
53
53
  # With Bun
54
- bun run start
54
+ bun run dev
55
55
  ```
56
56
 
57
57
  Your site will be available at `http://localhost:3000`.
@@ -61,7 +61,7 @@ Your site will be available at `http://localhost:3000`.
61
61
  To generate the static site for production:
62
62
 
63
63
  ```bash
64
- # With Bun
64
+ # With Bun
65
65
  bun run build
66
66
 
67
67
  # With npm
@@ -32,7 +32,11 @@ const program = new Command();
32
32
  program
33
33
  .name("portosaurus")
34
34
  .description("CLI for Portosaurus - The complete portfolio solution")
35
- .version(packageJson.version);
35
+ .version(
36
+ packageJson.version,
37
+ "-v, --version",
38
+ "output the current version",
39
+ );
36
40
 
37
41
  // ----------- HELPERS -------------
38
42
 
@@ -207,6 +211,7 @@ program
207
211
  version: "0.0.1",
208
212
  private: true,
209
213
  scripts: {
214
+ dev: "portosaurus dev",
210
215
  start: "portosaurus start",
211
216
  build: "portosaurus build",
212
217
  },
@@ -266,18 +271,19 @@ program
266
271
  logger.success("Dependencies installed!");
267
272
  logger.tip("You can now run:");
268
273
  logger.info(` cd ${projectName}`);
269
- logger.info(` ${runCmd} start`);
274
+ logger.info(` ${runCmd} dev`);
270
275
  } catch (error) {
271
276
  logger.error("Failed to install dependencies.");
272
277
  logger.tip("You can install them manually:");
273
278
  logger.info(` cd ${projectName}`);
274
279
  logger.info(` ${installCmd}`);
280
+ logger.info(` ${runCmd} dev`);
275
281
  }
276
282
  } else {
277
283
  logger.tip("Inside that directory, you can run:");
278
284
  logger.info(` cd ${projectName}`);
279
285
  logger.info(` ${installCmd}`);
280
- logger.info(` ${runCmd} start`);
286
+ logger.info(` ${runCmd} dev`);
281
287
  }
282
288
  } catch (error) {
283
289
  logger.error(`Failed to initialize project: ${error.message}`);
@@ -289,6 +295,7 @@ program
289
295
 
290
296
  program
291
297
  .command("start")
298
+ .alias("dev")
292
299
  .description("Start the development server")
293
300
  .action(async () => {
294
301
  const projectRoot = process.cwd();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portosaurus",
3
- "version": "1.14.0",
3
+ "version": "1.15.2",
4
4
  "author": "soymadip",
5
5
  "license": "GPL-3.0-only",
6
6
  "description": "Complete portfolio cum personal website solution for your digital personality.",
@@ -10,10 +10,10 @@ Start the development server:
10
10
 
11
11
  ```bash
12
12
  # With Bun
13
- bun run start
13
+ bun run dev
14
14
 
15
15
  # With npm
16
- npm run start
16
+ npm run dev
17
17
  ```
18
18
 
19
19
  The site will be available at `http://localhost:3000`.