@@ -49,32 +49,38 @@ angular-http-server --cors
4949```
5050
5151Specify a path to serve from
52+
5253``` sh
5354angular-http-server --path example
5455```
5556
5657Specify the base href of the application
58+
5759``` sh
5860angular-http-server --baseHref myapp
5961```
6062
6163Disable logging
64+
6265``` sh
6366angular-http-server --silent
6467```
6568
6669All options can be specified by a config file, optionally read via ` --config ` flag.
6770CLI options take precedence over any options read from the config file.
71+
6872``` sh
6973angular-http-server --config configs/angular-http-server.config.js
7074```
7175
7276Feedback via: https://github.com/simonh1000/angular-http-server
7377
7478## Config File
79+
7580The config file can either export an object of parameters, or a function that will be passed in the parsed ` argv ` from minimalist.
7681
7782Simple example:
83+
7884``` js
7985module .exports = {
8086 p: 8081 ,
@@ -84,6 +90,7 @@ module.exports = {
8490```
8591
8692Complicated example:
93+
8794``` js
8895module .exports = (argv ) => {
8996 const config = {
@@ -106,12 +113,12 @@ The `--https` or `--ssl` flags are intended for development and/or testing purpo
106113
107114## Changelog
108115
109- - 1.9.0 - adds --baseHref (thanks bertbaron)
110- - 1.8.0 - rewrite of path resolution (thanks dpraul)
111- - 1.7.0 - add option to include own ssl certificate (thanks dpraul)
112- - 1.6.0 - add --config option (thanks dpraul)
113- - 1.5.0 - add --open option (thanks tluanga34)
114- - 1.4.0 - add --path option (thanks nick-bogdanov)
116+ - 1.9.0 - adds --baseHref (thanks bertbaron)
117+ - 1.8.0 - rewrite of path resolution (thanks dpraul)
118+ - 1.7.0 - add option to include own ssl certificate (thanks dpraul)
119+ - 1.6.0 - add --config option (thanks dpraul)
120+ - 1.5.0 - add --open option (thanks tluanga34)
121+ - 1.4.0 - add --path option (thanks nick-bogdanov)
115122
116123## Contributing
117124
@@ -122,8 +129,9 @@ Use prettier for formatting
122129## Testing
123130
124131Run unit tests with
132+
125133``` sh
126- $ yarn run test
134+ $ npm run test
127135```
128136
129137Testing - try:
0 commit comments