jsgui3-server 0.0.113 → 0.0.115
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.
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
const jsgui = require('jsgui3-client');
|
|
2
|
+
const {controls, Control, mixins} = jsgui;
|
|
3
|
+
const {dragable} = mixins;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const {Checkbox, Date_Picker, Text_Input, Text_Field} = controls;
|
|
7
|
+
|
|
8
|
+
const Active_HTML_Document = require('../../../controls/Active_HTML_Document');
|
|
9
|
+
|
|
10
|
+
// Will make Date_Picker use progressive enhancement.
|
|
11
|
+
// On activation would create a new element? Create a new sibling?
|
|
12
|
+
// May want code that checks for .el being changed.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class Demo_UI extends Active_HTML_Document {
|
|
20
|
+
constructor(spec = {}) {
|
|
21
|
+
spec.__type_name = spec.__type_name || 'demo_ui';
|
|
22
|
+
super(spec);
|
|
23
|
+
const {context} = this;
|
|
24
|
+
|
|
25
|
+
// Make sure it requires the correct CSS.
|
|
26
|
+
// Though making that 'effortless' on the server may help more.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
// Maybe can't do this here???
|
|
30
|
+
|
|
31
|
+
// Does not have .body (yet) on the client.
|
|
32
|
+
// simple way to get the client to attach the body of the Active_HTML_Document?
|
|
33
|
+
// maybe with jsgui-data-controls?
|
|
34
|
+
// Though automatically having the .body property available on the client without sending extra HTTP
|
|
35
|
+
// plumbing will help.
|
|
36
|
+
|
|
37
|
+
// .body will not be available before activation.
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
// .body should not be a normal function....?
|
|
41
|
+
// a getter function would be better.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
if (typeof this.body.add_class === 'function') {
|
|
45
|
+
this.body.add_class('demo-ui');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
//console.log('this.body', this.body);
|
|
49
|
+
//console.log('this.body.add_class', this.body.add_class);
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
const compose = () => {
|
|
53
|
+
// put 20 of them in place.
|
|
54
|
+
|
|
55
|
+
// Then how to arrange them...?
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
const window = new controls.Window({
|
|
61
|
+
context: context,
|
|
62
|
+
title: 'jsgui3-html Mirrored Text_Input controls',
|
|
63
|
+
pos: [5, 5]
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
window.size = [480, 160];
|
|
67
|
+
|
|
68
|
+
// Have Tab_Page items inside???
|
|
69
|
+
|
|
70
|
+
// Setting a 'selectable' property at the composition stage could be very helpful in some cases,
|
|
71
|
+
// May want composition-level mixins?
|
|
72
|
+
// Maybe those mixins would also have code that runs on activation.
|
|
73
|
+
// 'compositional mixins' ???
|
|
74
|
+
|
|
75
|
+
// Need mixins to be very flexible to avoid the probles React had with them.
|
|
76
|
+
// Choose what functionality the mixin provides in some cases.
|
|
77
|
+
// Need to keep tight control over the coupling of mixins.
|
|
78
|
+
// Each mixin may need to be somewhat complex to avoid hiccups - and to consistently act in the set modes.
|
|
79
|
+
// If a mixin is to do something different to before that functionality should be called differently.
|
|
80
|
+
|
|
81
|
+
// mixin.enabled_feature_sets = [feature_set_1_name, feature_set_2_name] ....
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
// Will work on more options & perfection for month_view.
|
|
86
|
+
|
|
87
|
+
/*
|
|
88
|
+
|
|
89
|
+
new Checkbox({
|
|
90
|
+
context,
|
|
91
|
+
label: {
|
|
92
|
+
text: 'A checkbox'
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
// Sensible properties like this will help.
|
|
99
|
+
|
|
100
|
+
// A progressively enhancing control could help a lot.
|
|
101
|
+
// Something that when it's in the doc will even replace its own element.
|
|
102
|
+
// Lower level code to enable really simple to express progressive enhancement could help, maybe would not be needed.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
const ti1 = new Text_Field({
|
|
109
|
+
context,
|
|
110
|
+
text: 'A'
|
|
111
|
+
//label: {
|
|
112
|
+
// text: 'A checkbox'
|
|
113
|
+
//}
|
|
114
|
+
})
|
|
115
|
+
|
|
116
|
+
window.inner.add(ti1);
|
|
117
|
+
|
|
118
|
+
const ti2 = new Text_Field({
|
|
119
|
+
context,
|
|
120
|
+
text: 'B'
|
|
121
|
+
//label: {
|
|
122
|
+
// text: 'A checkbox'
|
|
123
|
+
//}
|
|
124
|
+
})
|
|
125
|
+
|
|
126
|
+
window.inner.add(ti2);
|
|
127
|
+
|
|
128
|
+
this.body.add(window);
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
this._ctrl_fields = this._ctrl_fields || {};
|
|
134
|
+
this._ctrl_fields.ti1 = ti1;
|
|
135
|
+
this._ctrl_fields.ti2 = ti2;
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
if (!spec.el) {
|
|
140
|
+
compose();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
activate() {
|
|
144
|
+
if (!this.__active) {
|
|
145
|
+
super.activate();
|
|
146
|
+
const {context, ti1, ti2} = this;
|
|
147
|
+
|
|
148
|
+
console.log('activate Demo_UI');
|
|
149
|
+
// and events dealing with changes to those tis.
|
|
150
|
+
|
|
151
|
+
// ti1, ti2.
|
|
152
|
+
|
|
153
|
+
// Some kind of tracking of what the event initiator could help?
|
|
154
|
+
// Automatically avoiding feedback somehow???
|
|
155
|
+
// If it gets changed to its current value it does not push the change...?
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
// a non-dom change???
|
|
159
|
+
// or basically .view.model.change even????
|
|
160
|
+
|
|
161
|
+
// ti1.view.model.on('change') could be much clearer, disambiguating it from a dom change event.
|
|
162
|
+
// assign .view.model events ....?
|
|
163
|
+
// doing this on a lower level would help.
|
|
164
|
+
|
|
165
|
+
// Just creating .view and .view.model objects (getters and setters specified) in jsgui3-html will help
|
|
166
|
+
// when referring to them.
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
// ti1.value.on('change') ????
|
|
172
|
+
// where the value is an Evented_Class or even Data_Object????
|
|
173
|
+
// and where we can also get the value out of it easily / do so automatically, maybe within other useful functions.
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
// ti1.model.on('change') ????
|
|
177
|
+
// or .view.model to be most specific for the moment...?
|
|
178
|
+
// and raise those events within the controls on those .view.model objects.
|
|
179
|
+
|
|
180
|
+
// Maybe just try it on Text_Field for the moment.
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
// Need to work on having it update the dom with value changes....
|
|
185
|
+
|
|
186
|
+
ti1.view.model.on('change', e => {
|
|
187
|
+
//console.log('ti1 change e', e);
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
if (e.property_name === 'value') {
|
|
191
|
+
if (e.value !== e.old) {
|
|
192
|
+
ti2.value = e.value;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// setting ti2.view.model.value even????
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
})
|
|
202
|
+
ti2.view.model.on('change', e => {
|
|
203
|
+
//console.log('ti2 change e', e);
|
|
204
|
+
|
|
205
|
+
//
|
|
206
|
+
|
|
207
|
+
if (e.value !== e.old) {
|
|
208
|
+
ti1.value = e.value;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
})
|
|
213
|
+
|
|
214
|
+
// listen for change events.
|
|
215
|
+
// would be nice to know which change events originated from the user interacting with that specific HTML element (or ctrl???)
|
|
216
|
+
|
|
217
|
+
// e.from_user === true test.
|
|
218
|
+
|
|
219
|
+
// e.user_initiated_on_this ????
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
//console.log('activate Demo_UI');
|
|
225
|
+
// listen for the context events regarding frames, changes, resizing.
|
|
226
|
+
|
|
227
|
+
context.on('window-resize', e_resize => {
|
|
228
|
+
|
|
229
|
+
// Could see about having some window contents bound through CSS to the size of the window.
|
|
230
|
+
// Though having a framework of adjusting CSS from the JS on-the-fly could work too.
|
|
231
|
+
|
|
232
|
+
// May be done with the 'bind' mixin, or will make more specific mixins to do things like bind
|
|
233
|
+
// a control to the space within another control, space within a specific part of that control.
|
|
234
|
+
|
|
235
|
+
// Or bind to parent size. That should be possible with CSS though.
|
|
236
|
+
// May make some controls make more use of CSS by default
|
|
237
|
+
// Or having an absolutely positioned box model used extensively could avoid some ambiguity, though
|
|
238
|
+
// making use of and supporting generally respected CSS features will help too.
|
|
239
|
+
|
|
240
|
+
//console.log('window-resize', e_resize);
|
|
241
|
+
|
|
242
|
+
// Make all internal controls go absolute in terms of position
|
|
243
|
+
// Remove them from their containers too?
|
|
244
|
+
// Ie their containing divs?
|
|
245
|
+
|
|
246
|
+
// Would be nice to do this really simple with a fn call or very simple piece of code.
|
|
247
|
+
// Like get absolute position, set position to be absolute, move to that position.
|
|
248
|
+
// Maybe something within jsgui3-client helps with this, this is more about what needs to be done on the client.
|
|
249
|
+
// Though recognising perf implications, it's (more) OK to include client-side functionality in jsgui3-html.
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// Include this in bundling.
|
|
263
|
+
// Want CSS bundling so that styles are read out from the JS document and compiled to a stylesheet.
|
|
264
|
+
|
|
265
|
+
//controls.Demo_UI = Demo_UI;
|
|
266
|
+
|
|
267
|
+
// A css file may be an easier way to get started...?
|
|
268
|
+
// Want to support but not require css in js.
|
|
269
|
+
|
|
270
|
+
// But need to set up the serving of the CSS both on the server, and on the client.
|
|
271
|
+
// Ofc setting it up on the server first is important - then can that stage set it up in the doc sent to the client?
|
|
272
|
+
|
|
273
|
+
// Including the CSS from the JS like before.
|
|
274
|
+
// Needs to extract the CSS and serve it as a separate CSS file.
|
|
275
|
+
// Should also have end-to-end regression tests so this does not break again in the future.
|
|
276
|
+
// The code was kind of clunky and got refactored away.
|
|
277
|
+
//
|
|
278
|
+
|
|
279
|
+
// Would need to parse the JS files to extract the CSS.
|
|
280
|
+
// Maybe could do it an easier way??? Now that it's easy, want a faster way.
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
Demo_UI.css = `
|
|
284
|
+
|
|
285
|
+
* {
|
|
286
|
+
margin: 0;
|
|
287
|
+
padding: 0;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
body {
|
|
291
|
+
overflow-x: hidden;
|
|
292
|
+
overflow-y: hidden;
|
|
293
|
+
background-color: #E0E0E0;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.demo-ui {
|
|
297
|
+
|
|
298
|
+
/*
|
|
299
|
+
|
|
300
|
+
display: flex;
|
|
301
|
+
flex-wrap: wrap;
|
|
302
|
+
|
|
303
|
+
flex-direction: column;
|
|
304
|
+
justify-content: center;
|
|
305
|
+
align-items: center;
|
|
306
|
+
text-align: center;
|
|
307
|
+
min-height: 100vh;
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
}
|
|
311
|
+
`;
|
|
312
|
+
|
|
313
|
+
// But may want to remove them from that flex upon picking up / dropping them.
|
|
314
|
+
// Maybe best upon drop.
|
|
315
|
+
|
|
316
|
+
// Maybe want other examples that use absolute positioning to position the items at the start?
|
|
317
|
+
//
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
//controls.Square_Box = Square_Box;
|
|
322
|
+
// could export jsgui with the updated controls....
|
|
323
|
+
// so that they are in the correct Page Context.?
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
controls.Demo_UI = Demo_UI;
|
|
327
|
+
|
|
328
|
+
module.exports = jsgui;
|
|
329
|
+
|
|
330
|
+
/*
|
|
331
|
+
module.exports = {
|
|
332
|
+
Square_Box: Square_Box,
|
|
333
|
+
Demo_UI: Demo_UI
|
|
334
|
+
}
|
|
335
|
+
*/
|
|
336
|
+
|
|
337
|
+
// Then if window...?
|
|
338
|
+
|
|
339
|
+
// Need to add the Square_Box control to the context or original map of controls...
|
|
340
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
const jsgui = require('./client');
|
|
2
|
+
|
|
3
|
+
const {Demo_UI} = jsgui.controls;
|
|
4
|
+
const Server = require('../../../server');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// what would be the (best?) way to include the whole thing in one JS file?
|
|
8
|
+
// Maybe don't try that right now.
|
|
9
|
+
// maybe standardise on the dir, then client.js and server.js inside.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
// Want to exclude this from the client bundle.
|
|
14
|
+
// Some kind of marking to say that it's server-side only?
|
|
15
|
+
|
|
16
|
+
// Need to include JSGUI3 js within the client document.
|
|
17
|
+
// Seems like an earlier code simplification removed this functionality?
|
|
18
|
+
// Just specifying a Ctrl for the server - and giving it the 'disk_path_client_js'.
|
|
19
|
+
// May as well fix that....
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// The server code may be tiny, it seems best not to abstract it away totally though.
|
|
23
|
+
// At least not for the moment.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
if (require.main === module) {
|
|
30
|
+
|
|
31
|
+
// By default should include the JS and the CSS.
|
|
32
|
+
// By reference, serving them from their respective paths.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
// This API is not working right now.
|
|
36
|
+
|
|
37
|
+
// A very simple syntax for running a single control would be great.
|
|
38
|
+
|
|
39
|
+
// Need to in the default (server) configuration build and serve the client-side app.
|
|
40
|
+
// Want to be able to make interactive apps quickly with minimal server side code that needs to be written as boilerplate to
|
|
41
|
+
// get the app running.
|
|
42
|
+
|
|
43
|
+
// Though maybe defining a webpage, that serves the client js, and renders the control on the server, and activates it on the client,
|
|
44
|
+
// would be the right approach.
|
|
45
|
+
|
|
46
|
+
// Want to make the code really explicit, in a simple way.
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
// eg { '/': Demo_UI }
|
|
50
|
+
// eg { '*': Demo_UI }
|
|
51
|
+
// as at least it explicitly assigns it to the '/' route
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
// But worth keeping the '/' Ctrl property?
|
|
55
|
+
// Could change it to explicitly setting the route(s).
|
|
56
|
+
|
|
57
|
+
// Do want it to build the client js on start.
|
|
58
|
+
|
|
59
|
+
// Could extract the CSS from the file itself, or maybe better reading it from the classes and objects that are loaded / referenced.
|
|
60
|
+
// All kinds of complex server program structures exist already, so could use Publishers if needed for some things.
|
|
61
|
+
// But need to keep the surface-level API really simple.
|
|
62
|
+
|
|
63
|
+
// Maybe define a Webpage and maybe use / define an HTML_Webpage_Publisher for example too.
|
|
64
|
+
// The clearest code would be really explicit about what it does, but in terms of almost English idioms
|
|
65
|
+
// and on the surface-level not spelling out in great detail what it's doing, but referencing objects and
|
|
66
|
+
// instructions with clear purposes, though details could be obscure at the top level. Eg it's the publisher's responsibility
|
|
67
|
+
// to include the CSS and JS that's needed to get it to run. A publisher is referenced and used, and it does its thing.
|
|
68
|
+
|
|
69
|
+
// The Server could automatically involk the use of a Publisher.
|
|
70
|
+
// May be better to either require or recommend more explicit code, have them in the examples,
|
|
71
|
+
// but also to document some shortcuts, defaults, and abbreviations (though they may omit some essential info, so not recommended for beginners)
|
|
72
|
+
|
|
73
|
+
// Could have a tabbed view for examples for 'explicit' and 'short' notations when there are multiple.
|
|
74
|
+
|
|
75
|
+
// jsgui3-html-suite may be of use, for some more extended controls that are built on top of jsgui3-html, but not specifically
|
|
76
|
+
// client or server.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
const server = new Server({
|
|
84
|
+
Ctrl: Demo_UI,
|
|
85
|
+
//debug: true,
|
|
86
|
+
// Giving it the Ctrl and disk path client js should enable to server to get the JS-bundled CSS from the file(s).
|
|
87
|
+
// Putting the JS files through proper parsing and into a syntax tree would be best.
|
|
88
|
+
|
|
89
|
+
//'js_mode': 'debug',
|
|
90
|
+
'src_path_client_js': require.resolve('./client.js'),
|
|
91
|
+
//debug: true // should not minify the js, should include the symbols.
|
|
92
|
+
//js_client: require.resolve('./square_box.js')
|
|
93
|
+
});
|
|
94
|
+
// A callback or event for when the bundling has been completed
|
|
95
|
+
// a 'ready' event.
|
|
96
|
+
|
|
97
|
+
// then start the server....
|
|
98
|
+
// be able to choose the port / ports?
|
|
99
|
+
console.log('waiting for server ready event');
|
|
100
|
+
server.one('ready', () => {
|
|
101
|
+
console.log('server ready');
|
|
102
|
+
|
|
103
|
+
// server start will change to observable?
|
|
104
|
+
|
|
105
|
+
server.start(8080, function (err, cb_start) {
|
|
106
|
+
if (err) {
|
|
107
|
+
throw err;
|
|
108
|
+
} else {
|
|
109
|
+
// Should have build it by now...
|
|
110
|
+
|
|
111
|
+
console.log('server started');
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
})
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
}
|
package/package.json
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"esbuild": "^0.19.5",
|
|
13
13
|
"fnl": "^0.0.30",
|
|
14
14
|
"fnlfs": "^0.0.29",
|
|
15
|
-
"jsgui3-client": "^0.0.
|
|
16
|
-
"jsgui3-html": "^0.0.
|
|
17
|
-
"jsgui3-webpage": "^0.0.
|
|
18
|
-
"jsgui3-website": "^0.0.
|
|
15
|
+
"jsgui3-client": "^0.0.101",
|
|
16
|
+
"jsgui3-html": "^0.0.139",
|
|
17
|
+
"jsgui3-webpage": "^0.0.7",
|
|
18
|
+
"jsgui3-website": "^0.0.7",
|
|
19
19
|
"lang-tools": "^0.0.22",
|
|
20
20
|
"multiparty": "^4.2.3",
|
|
21
21
|
"ncp": "^2.0.0",
|
|
@@ -25,14 +25,11 @@
|
|
|
25
25
|
"url-parse": "^1.5.10"
|
|
26
26
|
},
|
|
27
27
|
"commentDeps": {
|
|
28
|
-
"jsgui3-html": "0.0.102",
|
|
29
28
|
"babel-plugin-minify-dead-code-elimination": "^0.5.0",
|
|
30
29
|
"babel-plugin-remove-comments": "^2.0.0",
|
|
31
30
|
"babel-plugin-transform-class": "^0.3.0",
|
|
32
31
|
"babel-plugin-transform-es2015-classes": "^6.24.1",
|
|
33
|
-
"babel-plugin-transform-es2015-object-super": "^6.24.1"
|
|
34
|
-
"iltorb": "^2.4.3",
|
|
35
|
-
"lang-mini": "^0.0.25"
|
|
32
|
+
"babel-plugin-transform-es2015-object-super": "^6.24.1"
|
|
36
33
|
},
|
|
37
34
|
"engines": {
|
|
38
35
|
"node": ">=15.0.0"
|
|
@@ -43,5 +40,5 @@
|
|
|
43
40
|
"type": "git",
|
|
44
41
|
"url": "https://github.com/metabench/jsgui3-server.git"
|
|
45
42
|
},
|
|
46
|
-
"version": "0.0.
|
|
43
|
+
"version": "0.0.115"
|
|
47
44
|
}
|
|
@@ -155,7 +155,7 @@ const call_multi = jsgui.call_multi,
|
|
|
155
155
|
//var zlib = require('zlib');
|
|
156
156
|
const util = require('util');
|
|
157
157
|
|
|
158
|
-
const browserify = require('browserify');
|
|
158
|
+
//const browserify = require('browserify');
|
|
159
159
|
const babel = require('@babel/core');
|
|
160
160
|
|
|
161
161
|
// Extends AutoStart_Resource?
|
|
@@ -233,6 +233,9 @@ class Site_JavaScript extends Resource {
|
|
|
233
233
|
|
|
234
234
|
'build_client'(callback) {
|
|
235
235
|
|
|
236
|
+
console.trace();
|
|
237
|
+
throw 'Deprecated';
|
|
238
|
+
|
|
236
239
|
// Configurable building mechanisms....
|
|
237
240
|
// Want to provide jsgui events / logs on the build process.
|
|
238
241
|
|
|
@@ -269,6 +272,9 @@ class Site_JavaScript extends Resource {
|
|
|
269
272
|
var app_path = appDir + '/js/app.js';
|
|
270
273
|
var app_bundle_path = appDir + '/js/app-bundle.js';
|
|
271
274
|
var wstream = fs.createWriteStream(app_bundle_path);
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
272
278
|
var b = browserify();
|
|
273
279
|
//b.require(app_path, {
|
|
274
280
|
// entry: true,
|