vyriy 0.5.5 → 0.6.0

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 (3) hide show
  1. package/README.md +13 -0
  2. package/cli.js +10 -0
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -100,10 +100,23 @@ Starts the reusable `@vyriy/static` server command:
100
100
  vyriy static
101
101
  vyriy static public
102
102
  vyriy static --port 3000 dist
103
+ vyriy static dist --cache static
104
+ vyriy static dist --spa --fallback index.html --cache static
103
105
  vyriy static --help
104
106
  vyriy static --version
105
107
  ```
106
108
 
109
+ Static options are delegated to `@vyriy/static`:
110
+
111
+ ```bash
112
+ vyriy static dist --cache none
113
+ vyriy static dist --cache default
114
+ vyriy static dist --cache static
115
+ vyriy static dist --cache immutable
116
+ vyriy static dist --index index.html --not-found 404.html
117
+ vyriy static dist --spa --fallback index.html
118
+ ```
119
+
107
120
  ## Presets
108
121
 
109
122
  Registered presets:
package/cli.js CHANGED
@@ -18,6 +18,14 @@ Create options:
18
18
  vyriy create --no-install Create files without installing dependencies
19
19
  vyriy create --no-verify Install dependencies without running checks
20
20
 
21
+ Static options:
22
+ vyriy static --port 3000 dist Serve on a specific port
23
+ vyriy static dist --cache static Cache preset: none, default, static, immutable
24
+ vyriy static dist --index index.html Static directory index file
25
+ vyriy static dist --not-found 404.html Static 404 response file
26
+ vyriy static dist --spa Enable SPA fallback mode
27
+ vyriy static dist --fallback index.html SPA fallback file
28
+
21
29
  Examples:
22
30
  vyriy create app
23
31
  vyriy create app --dry-run
@@ -26,6 +34,8 @@ Examples:
26
34
  vyriy dist
27
35
  vyriy static
28
36
  vyriy static --port 3000 dist
37
+ vyriy static dist --cache static
38
+ vyriy static dist --spa --fallback index.html --cache static
29
39
  vyriy static dist
30
40
  vyriy check`;
31
41
  export const cli = async (args = []) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vyriy",
3
- "version": "0.5.5",
3
+ "version": "0.6.0",
4
4
  "description": "Interactive project master for calm cloud-ready applications.",
5
5
  "type": "module",
6
6
  "bin": "./bin/vyriy.js",
@@ -9,10 +9,10 @@
9
9
  },
10
10
  "packageManager": "yarn@4.16.0",
11
11
  "dependencies": {
12
- "@vyriy/check": "0.5.5",
13
- "@vyriy/create": "0.5.5",
14
- "@vyriy/dist": "0.5.5",
15
- "@vyriy/static": "0.5.5"
12
+ "@vyriy/check": "0.6.0",
13
+ "@vyriy/create": "0.6.0",
14
+ "@vyriy/dist": "0.6.0",
15
+ "@vyriy/static": "0.6.0"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "@testing-library/dom": "^10.4.1",