Skip to content

Conversation

@yofreke
Copy link
Contributor

@yofreke yofreke commented Jul 28, 2015

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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" notifications@github.com 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.

Copy link
Contributor

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.

yofreke and others added 6 commits July 31, 2015 14:28
 - 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants