forked from airyrooms/maleo.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(maleo-core): show error message for dev build
move the callback function to after showing error message for development build fix airyrooms#153 feat(maleo-core): split dev server to a new file move dev server to a new file for single responsibility priniciple feat(dev-server): refactor server options feat(dev-server): add minimal build for development server minimal build is used for faster development build feat(maleo-server): add lazy load functionality add lazy build functionality but not applied yet, due to missing knowledge regarding lazy building re airyrooms#157
- Loading branch information
Showing
15 changed files
with
504 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
module.exports = require('./lib/server/server.js'); | ||
if (process.env.NODE_ENV === 'development') { | ||
module.exports = require('./lib/server/dev-server.js'); | ||
} else { | ||
module.exports = require('./lib/server/server'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,7 @@ if (type === 'run') { | |
env, | ||
buildType: 'server', | ||
callback: exec, | ||
minimalBuild: true, | ||
}); | ||
} | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
import { DocumentProps, AppProps } from '../render/IRender'; | ||
|
||
export interface IOptions { | ||
port: number | string; | ||
|
||
assetDir?: string; | ||
routes?: []; | ||
|
||
_document?: React.ReactElement<DocumentProps>; | ||
_app?: React.ReactElement<AppProps>; | ||
_wrap?: React.ReactElement<any>; | ||
} |
Oops, something went wrong.