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 +3 -3
- package/bin/portosaurus.js +10 -3
- package/package.json +1 -1
- package/template/README.md +2 -2
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
|
|
51
|
+
npm run dev
|
|
52
52
|
|
|
53
53
|
# With Bun
|
|
54
|
-
bun run
|
|
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
|
package/bin/portosaurus.js
CHANGED
|
@@ -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(
|
|
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}
|
|
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}
|
|
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