-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdeveloperNotes.txt
More file actions
28 lines (22 loc) · 899 Bytes
/
Copy pathdeveloperNotes.txt
File metadata and controls
28 lines (22 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
CHAT:
[Ian] - [14-12-23 ; 2259Hrs]
-> Finally create a dev branch and have main branch use production code.
-> Create test branch and create new VM to test it on oracle.
-> Handle case where deck gets empty.
}
{
V1.0 GOALS:
-> Deploy with helmet, compression, permissions policy.
}
BROWSERIFY:
browserify enables useage of CommonJS entities [ like require() ] on the client side Javascript:
Eg: Check line 1 and 2 of /static/js/play.js
To bundle your custom Javascript module from src to destination:
-> browserify -r [src]:[module_name] > [destination]
-> browserify -r ./modules/algoCard.js:algoCard > ./static/js/browserifyBundles/algoCardBundle.js
(
NOTE:
Here `-r` enables requirement to the bundled module in subsequent scripts,
ie. /static/js/browserifyBundles/algoCardBundle.js enables requirement of algoCard in /static/js/play.js
)