@appshell/cli 0.4.0 → 0.5.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.
package/README.md CHANGED
@@ -56,7 +56,7 @@ Generates a resource
56
56
  Commands:
57
57
  appshell generate manifest Generate the appshell manifest by processing the template specified by --template
58
58
  appshell generate env Generate the runtime environment js file that reflects the current process.env
59
- appshell generate index Generate the appshell index file by merging sources specifed by --registry options
59
+ appshell generate global-config Generate the global appshell configuration file by merging sources specifed by --registry options
60
60
  appshell generate metadata Generate the appshell metadata file by merging sources specifed by --registry options
61
61
  ```
62
62
 
@@ -72,7 +72,7 @@ Generate the appshell global runtime manifest
72
72
  Options:
73
73
  --help Show help [boolean]
74
74
  --version Show version number [boolean]
75
- -t, --template Path to the appshell manifest template to process [string] [default: "appshell.config.json"]
75
+ -t, --template Path to the appshell config template to process [string] [default: "appshell.template.json"]
76
76
  -o, --outDir Output location for the appshell manifest [string] [default: "dist"]
77
77
  -f, --outFile Output filename for the appshell manifest [string] [default: "appshell.manifest.json"]
78
78
  ```
@@ -80,14 +80,14 @@ Options:
80
80
  ### Sample usage
81
81
 
82
82
  ```bash
83
- appshell generate manifest --template dist/appshell.config.json
83
+ appshell generate manifest --template dist/appshell.template.json
84
84
  ```
85
85
 
86
86
  **Where does the content of APPSHELL_REGISTRY come from?**
87
87
 
88
88
  > Each micro-frontend configured to use [@appshell/manifest-webpack-plugin](https://www.npmjs.com/package/@appshell/manifest-webpack-plugin) emits a manifest template, which is subsequently used to generate a manifest for the remote module. This manifest is then registered with the APPSHELL_REGISTRY.
89
89
 
90
- Sample manifest template `appshell.config.json`:
90
+ Sample config template `appshell.template.json`:
91
91
 
92
92
  ```json
93
93
  {
@@ -259,8 +259,8 @@ Options:
259
259
  --help Show help [boolean]
260
260
  --version Show version number [boolean]
261
261
  -e, --env The .env file to process [string] [default: ".env"]
262
- -o, --outDir Output location for the runtime environment js [string] [default: "."]
263
- -f, --outFile Output filename for the runtime environment js [string] [default: "runtime.env.js"]
262
+ -o, --outDir Output location for the appshell environment js [string] [default: "."]
263
+ -f, --outFile Output filename for the appshell environment js [string] [default: "appshell.env.js"]
264
264
  -p, --prefix Only capture environment variables that start with prefix [string] [default: ""]
265
265
  -g, --globalName Global variable name window[globalName] used in the output js [string] [default: "__appshell_env__"]
266
266
  ```
@@ -271,7 +271,7 @@ Options:
271
271
  appshell generate env -e .env --prefix APPSHELL_ --outDir dist
272
272
  ```
273
273
 
274
- Sample output `runtime.env.js`
274
+ Sample output `appshell.env.js`
275
275
 
276
276
  ```js
277
277
  window.__appshell_env__ = {
@@ -283,5 +283,5 @@ window.__appshell_env__ = {
283
283
  Include in the public html
284
284
 
285
285
  ```html
286
- <script src="runtime.env.js"></script>
286
+ <script src="appshell.env.js"></script>
287
287
  ```