Переглянути джерело

misc: add helper make dev command

Running webpack-dev-server is not enough, so add a helper which takes are of
doing the needful.
master
Saúl Ibarra Corretgé 7 роки тому
джерело
коміт
169c47ac7f
2 змінених файлів з 13 додано та 8 видалено
  1. 4
    0
      Makefile
  2. 9
    8
      README.md

+ 4
- 0
Makefile Переглянути файл

@@ -9,6 +9,7 @@ STYLES_BUNDLE = css/all.bundle.css
9 9
 STYLES_DESTINATION = css/all.css
10 10
 STYLES_MAIN = css/main.scss
11 11
 WEBPACK = ./node_modules/.bin/webpack
12
+WEBPACK_DEV_SERVER = ./node_modules/.bin/webpack-dev-server
12 13
 
13 14
 all: compile deploy clean
14 15
 
@@ -56,6 +57,9 @@ deploy-css:
56 57
 deploy-local:
57 58
 	([ ! -x deploy-local.sh ] || ./deploy-local.sh)
58 59
 
60
+dev: deploy-init deploy-css deploy-lib-jitsi-meet
61
+	$(WEBPACK_DEV_SERVER)
62
+
59 63
 source-package:
60 64
 	mkdir -p source_package/jitsi-meet/css && \
61 65
 	cp -r *.js *.html connection_optimization favicon.ico fonts images libs static sounds LICENSE lang source_package/jitsi-meet && \

+ 9
- 8
README.md Переглянути файл

@@ -44,7 +44,7 @@ To build the Jitsi Meet application, just type
44 44
 make
45 45
 ```
46 46
 
47
-## Working with the library sources (lib-jitsi-meet)
47
+### Working with the library sources (lib-jitsi-meet)
48 48
 
49 49
 By default the library is build from its git repository sources. The default dependency path in package.json is :
50 50
 ```json
@@ -72,12 +72,12 @@ It allows to link `lib-jitsi-meet` dependency to local source in few steps:
72 72
 ```bash
73 73
 cd lib-jitsi-meet
74 74
 
75
-# create global symlink for lib-jitsi-meet package
75
+#### create global symlink for lib-jitsi-meet package
76 76
 npm link
77 77
 
78 78
 cd ../jitsi-meet
79 79
 
80
-# create symlink from the local node_modules folder to the global lib-jitsi-meet symlink
80
+#### create symlink from the local node_modules folder to the global lib-jitsi-meet symlink
81 81
 npm link lib-jitsi-meet
82 82
 ```
83 83
 
@@ -90,16 +90,17 @@ cd jitsi-meet
90 90
 npm unlink lib-jitsi-meet
91 91
 npm install
92 92
 ```
93
-## Running with webpack-dev-server for development   
93
+### Running with webpack-dev-server for development
94 94
 
95 95
 Use it at the CLI, type
96 96
 ```
97
-node_modules/.bin/webpack-dev-server
97
+make dev
98 98
 ```
99 99
 
100
-By default the backend deployment used is `beta.meet.jit.si`, you can point the Jitsi-Meet app at a different backend by using a proxy server. To do this set the WEBPACK_DEV_SERVER_PROXY_TARGET variable, type 
100
+By default the backend deployment used is `beta.meet.jit.si`, you can point the Jitsi-Meet app at a different backend by using a proxy server. To do this set the WEBPACK_DEV_SERVER_PROXY_TARGET variable:
101 101
 ```
102
-WEBPACK_DEV_SERVER_PROXY_TARGET=https://your-example-server.com node_modules/.bin/webpack-dev-server
102
+export WEBPACK_DEV_SERVER_PROXY_TARGET=https://your-example-server.com
103
+make dev
103 104
 ```
104 105
 
105 106
 The app should be running at https://localhost:8080/
@@ -122,7 +123,7 @@ network but decrypted on the machine that hosts the bridge.
122 123
 
123 124
 The Jitsi Meet architecture allows you to deploy your own version, including
124 125
 all server components, and in that case your security guarantees will be roughly
125
-equivalent to these of a direct one-to-one WebRTC call. This is what's unique to 
126
+equivalent to these of a direct one-to-one WebRTC call. This is what's unique to
126 127
 Jitsi Meet in terms of security.
127 128
 
128 129
 The [meet.jit.si](https://meet.jit.si) service is maintained by the Jitsi team

Завантаження…
Відмінити
Зберегти