Skip to content
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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

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.

@@ -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));
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" [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.

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.

3 participants