-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client side compile for simulator - faster simulator #238
base: master
Are you sure you want to change the base?
Conversation
@@ -54,6 +50,8 @@ exports.serveWeb = function (opts, cb) { | |||
app.use('/compile/', importMiddleware(getPath('static/'))); | |||
|
|||
// serve static files | |||
var devkitPath = path.resolve(__dirname, '..', '..'); | |||
app.use('/devkit/', express.static(devkitPath)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this feels a little excessive, do we need to serve the entire devkit directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Serving the entire thing because its part of the available path ingame, I
think. If we don't need devkit on the games path, we don't have to serve
the whole thing (or if there are specific subpaths)
On Jul 29, 2015 1:23 PM, "Martin Hunt" [email protected] wrote:
In src/serve/index.js
#238 (comment):@@ -54,6 +50,8 @@ exports.serveWeb = function (opts, cb) {
app.use('/compile/', importMiddleware(getPath('static/')));// serve static files
- var devkitPath = path.resolve(__dirname, '..', '..');
- app.use('/devkit/', express.static(devkitPath));
this feels a little excessive, do we need to serve the entire devkit
directory?—
Reply to this email directly or view it on GitHub
https://github.com/gameclosure/devkit/pull/238/files#r35807066.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really? I thought only module code was available, and then only the folders specified in a module's package config.
- copied from devkit-core - build hooks now return all responses and which module they came from - build hooks now accept hooks returning promises rather than calling a callback - fix bug returning build result from buildQueue
Matching PRs on gameclosure/devit-core and gameclosure/js.io.
This turns off server side compilation for simulator builds, allowing the client to make better use of the browser cache. The goal of this PR was to bring simulator rebuild times to ~1 second.