-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Attempt at making ssr-config compatible with wp-desktop #11785
Conversation
client/sections.js
Outdated
@@ -7,8 +7,7 @@ const path = require( 'path' ); | |||
/** | |||
* Internal dependencies | |||
*/ | |||
const config = require( 'config' ); |
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.
Good catch :)
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.
I'm not sure if this is a good idea, i may put config
back. I think i removed it while i was looking into why config
was breaking everything
client/config/index.js
Outdated
@@ -1,7 +1,8 @@ | |||
/** | |||
* Internal dependencies | |||
*/ | |||
import createConfig from 'lib/config'; | |||
//import createConfig from 'lib/config'; |
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.
I think we should remove comments and proceed without ES6 modules.
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.
definitely
f039dcd
to
3483909
Compare
3483909
to
0bc75c2
Compare
0bc75c2
to
8307eb6
Compare
To test:
|
28077fb
to
42f2431
Compare
I decided to rename |
Sort of feels like we are running away from a problem, but heck its simpler 👍 . |
We recently launched a change to the build system: #11352 that breaks wp-desktop.
It made it so that instead of generating a bundle per environment, we only generate a single build. T
here are a couple changes to make here and to wp-desktop to make it compatible.
The changes necessary for wp-calypso are:
desktop.jade
switch to node style export/import forconfig
. We cannot use es6 modules forconfig
because it gets pulled in by wp-desktop's node serverremove config fromsections.js
. I'm not sure why this is necessary just yetclient/lib/config
toclient/lib/create-config
to avoid naming collision with Desktop files.Testing
make run
make test