@inglorious/ssx 1.3.0 → 1.3.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/README.md +11 -15
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -408,7 +408,7 @@ SSX provides a simple CLI for building and developing:
|
|
|
408
408
|
Builds your static site:
|
|
409
409
|
|
|
410
410
|
```bash
|
|
411
|
-
ssx build [options]
|
|
411
|
+
pnpm ssx build [options]
|
|
412
412
|
|
|
413
413
|
Options:
|
|
414
414
|
-c, --config <file> Config file (default: "site.config.js")
|
|
@@ -418,12 +418,20 @@ Options:
|
|
|
418
418
|
-f, --force Force clean build, ignore cache
|
|
419
419
|
```
|
|
420
420
|
|
|
421
|
+
### `preview`
|
|
422
|
+
|
|
423
|
+
Serves the built static site on port 3000 through the `serve` NPM package.
|
|
424
|
+
|
|
425
|
+
```bash
|
|
426
|
+
pnpm preview
|
|
427
|
+
```
|
|
428
|
+
|
|
421
429
|
### `ssx dev`
|
|
422
430
|
|
|
423
|
-
Starts development server with hot reload:
|
|
431
|
+
Starts the Vite development server on port 3000 with hot reload:
|
|
424
432
|
|
|
425
433
|
```bash
|
|
426
|
-
ssx dev [options]
|
|
434
|
+
pnpm ssx dev [options]
|
|
427
435
|
|
|
428
436
|
Options:
|
|
429
437
|
-c, --config <file> Config file (default: "site.config.js")
|
|
@@ -431,18 +439,6 @@ Options:
|
|
|
431
439
|
-p, --port <port> Dev server port (default: 3000)
|
|
432
440
|
```
|
|
433
441
|
|
|
434
|
-
### Package.json Scripts
|
|
435
|
-
|
|
436
|
-
```json
|
|
437
|
-
{
|
|
438
|
-
"scripts": {
|
|
439
|
-
"dev": "ssx dev",
|
|
440
|
-
"build": "ssx build",
|
|
441
|
-
"preview": "pnpm dlx serve dist"
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
```
|
|
445
|
-
|
|
446
442
|
---
|
|
447
443
|
|
|
448
444
|
## Project Structure
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/ssx",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Server-Side-X. Xecution? Xperience? Who knows.",
|
|
5
5
|
"author": "IceOnFire <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,14 +44,15 @@
|
|
|
44
44
|
"fast-xml-parser": "^5.3.3",
|
|
45
45
|
"glob": "^13.0.0",
|
|
46
46
|
"rollup-plugin-minify-template-literals": "^1.1.7",
|
|
47
|
+
"sharp": "^0.34.5",
|
|
48
|
+
"svgo": "^4.0.0",
|
|
47
49
|
"vite": "^7.1.3",
|
|
48
|
-
"
|
|
50
|
+
"vite-plugin-image-optimizer": "^2.0.3",
|
|
51
|
+
"@inglorious/web": "4.0.2"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
51
54
|
"prettier": "^3.6.2",
|
|
52
|
-
"
|
|
53
|
-
"svgo": "^4.0.0",
|
|
54
|
-
"vite-plugin-image-optimizer": "^2.0.3",
|
|
55
|
+
"serve": "^14.2.1",
|
|
55
56
|
"vitest": "^1.6.1",
|
|
56
57
|
"@inglorious/eslint-config": "1.1.1"
|
|
57
58
|
},
|
|
@@ -65,6 +66,6 @@
|
|
|
65
66
|
"test": "vitest run",
|
|
66
67
|
"dev": "node ./bin/ssx.js dev -r ./src/__fixtures__",
|
|
67
68
|
"build": "node ./bin/ssx.js build -r ./src/__fixtures__",
|
|
68
|
-
"preview": "
|
|
69
|
+
"preview": "serve dist"
|
|
69
70
|
}
|
|
70
71
|
}
|