Quellcode durchsuchen

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é vor 7 Jahren
Ursprung
Commit
169c47ac7f
2 geänderte Dateien mit 13 neuen und 8 gelöschten Zeilen
  1. 4
    0
      Makefile
  2. 9
    8
      README.md

+ 4
- 0
Makefile Datei anzeigen

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

+ 9
- 8
README.md Datei anzeigen

44
 make
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
 By default the library is build from its git repository sources. The default dependency path in package.json is :
49
 By default the library is build from its git repository sources. The default dependency path in package.json is :
50
 ```json
50
 ```json
72
 ```bash
72
 ```bash
73
 cd lib-jitsi-meet
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
 npm link
76
 npm link
77
 
77
 
78
 cd ../jitsi-meet
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
 npm link lib-jitsi-meet
81
 npm link lib-jitsi-meet
82
 ```
82
 ```
83
 
83
 
90
 npm unlink lib-jitsi-meet
90
 npm unlink lib-jitsi-meet
91
 npm install
91
 npm install
92
 ```
92
 ```
93
-## Running with webpack-dev-server for development   
93
+### Running with webpack-dev-server for development
94
 
94
 
95
 Use it at the CLI, type
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
 The app should be running at https://localhost:8080/
106
 The app should be running at https://localhost:8080/
122
 
123
 
123
 The Jitsi Meet architecture allows you to deploy your own version, including
124
 The Jitsi Meet architecture allows you to deploy your own version, including
124
 all server components, and in that case your security guarantees will be roughly
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
 Jitsi Meet in terms of security.
127
 Jitsi Meet in terms of security.
127
 
128
 
128
 The [meet.jit.si](https://meet.jit.si) service is maintained by the Jitsi team
129
 The [meet.jit.si](https://meet.jit.si) service is maintained by the Jitsi team

Laden…
Abbrechen
Speichern