@webqit/webflo 0.8.49 → 0.8.50
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/docker/Dockerfile +1 -1
- package/docker/README.md +5 -3
- package/package.json +1 -4
- package/src/cmd/server.js +1 -1
package/docker/Dockerfile
CHANGED
|
@@ -14,7 +14,7 @@ RUN npm install @webqit/playui-cli -g
|
|
|
14
14
|
WORKDIR /home/www/app
|
|
15
15
|
|
|
16
16
|
# To auto-start app (flags optional), we would add...
|
|
17
|
-
# CMD ["webflo", "start", "--env=dev", "--http-only"]
|
|
17
|
+
# CMD ["webflo", "start", "--env=dev", "--watch", "--http-only"]
|
|
18
18
|
|
|
19
19
|
# To build the image locally...
|
|
20
20
|
# docker build --no-cache -t webflo ./docker
|
package/docker/README.md
CHANGED
|
@@ -29,18 +29,20 @@ docker run -d -p 80:3000 --name my-app webqit/webflo webflo start
|
|
|
29
29
|
Visit [localhost](http://localhost) to view your app.
|
|
30
30
|
|
|
31
31
|
#### To Start In Dev Mode
|
|
32
|
-
Webflo's *dev* mode is the perfect mode for developing locally. All you do is append the `--env=dev`
|
|
32
|
+
Webflo's *dev* mode is the perfect mode for developing locally. All you do is append the `--env=dev --watch` flags to your webflo commands. [(Learn more)](#)
|
|
33
33
|
|
|
34
34
|
```shell
|
|
35
|
-
docker run -d -p 80:3000 --name my-app webqit/webflo webflo start --env=dev
|
|
35
|
+
docker run -d -p 80:3000 --name my-app webqit/webflo webflo start --env=dev --watch
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
In *dev* mode, webflo automatically restarts as you make changes to your codebase. Since webflo now lives inside a container, you'll need to *bind* the directory of your source code on your host machine to the `/home/www/app` directory of the container.
|
|
39
39
|
|
|
40
40
|
```shell
|
|
41
|
-
docker run -d -v /Users/me/my-app:/home/www/app -p 80:3000 --name my-app webqit/webflo webflo start --env=dev
|
|
41
|
+
docker run -d -v /Users/me/my-app:/home/www/app -p 80:3000 --name my-app webqit/webflo webflo start --env=dev --watch
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
+
docker run -d -v /Users/ox-harris/Documents/CODE/webqit/webqit.io:/home/www/app -p 80:3000 --name my-app webqit/webflo webflo start --env=dev --watch
|
|
45
|
+
|
|
44
46
|
### To Use In the Cloud
|
|
45
47
|
TODO
|
|
46
48
|
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"vanila-javascript"
|
|
13
13
|
],
|
|
14
14
|
"homepage": "https://webqit.io/tooling/webflo",
|
|
15
|
-
"version": "0.8.
|
|
15
|
+
"version": "0.8.50",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -58,9 +58,6 @@
|
|
|
58
58
|
"uuid": "^8.3.2",
|
|
59
59
|
"webpack": "^5.50.0"
|
|
60
60
|
},
|
|
61
|
-
"devDependencies": {
|
|
62
|
-
"nodemon": "^2.0.7"
|
|
63
|
-
},
|
|
64
61
|
"author": "Oxford Harrison <oxharris.dev@gmail.com>",
|
|
65
62
|
"maintainers": [
|
|
66
63
|
"Oxford Harrison <oxharris.dev@gmail.com>"
|
package/src/cmd/server.js
CHANGED
|
@@ -61,7 +61,7 @@ export async function start(Ui, flags = {}, layout = {}) {
|
|
|
61
61
|
if (flags.env !== 'prod' && flags.watch) {
|
|
62
62
|
var nodemon, ecpt;
|
|
63
63
|
try {
|
|
64
|
-
nodemon = await import('nodemon');
|
|
64
|
+
nodemon = await import('./node_modules/nodemon');
|
|
65
65
|
} catch(e) {
|
|
66
66
|
ecpt = e;
|
|
67
67
|
}
|