-
Notifications
You must be signed in to change notification settings - Fork 58
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
Use latest gb master as per July 2nd, 2018 #61
Conversation
That's the folder where the source code of the published NPM packages resides and it's only used for the publishing to NPM process. We need to use the published packages from NPM in the first place.
ATM, the build (tests) fail because the GB package |
Also added a `preset` directive to the "fake" .babelrc file since that's needed for proper transformation of the ES6 files before they get executed in Jest.
Fixed the issue with the GB Babel configuration having a local hardcoded path to The Travis build now fails because of some issue with the shell commands around the Even after that shell issue gets fixed though (Edit: fixed with 254446c), there's an additional issue that will make the testsuite fail: Block validation fails for the |
Edit the files in the `build/` subfolders directly to have hot-reload work. If you change the ones in `src/` then the packages need to be rebuilt via GB (npm run build:packages). * Metro does its magic here and finds the packages directly in the gutenberg/packages folder automagically * Jest needs to be configured to find them (mapping) * Flow needs configuration too
Those might be present if you build GB.
cb62dca
to
6f909f9
Compare
I've changed (aac9681) the source from where the GB packages are consumed to point directly to the GB
Also, updated the GB reference to point to 2a012ff which includes the With all the changes above the build is now green on Travis. |
The Gutenberg packages need to be installed and built. This is done via the following commands: | ||
|
||
``` | ||
pushd gutenberg |
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.
Should we put it in the shell script and run as postinstall
script for the repository?
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.
Perhaps. I refrained from automating it from the beginning so to give us time/space to see how we use it actually but, I can give it a try now and see.
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.
So, gave postinstall
. Our patterns these days involve more than a few yarn install
attempts and that will cause npm i
to be called too many times, unnecessarily. Ideally, we want npm i
to be called rarely, like, when the GB repo is cloned or when the GB branch is changed.
I think we can leave npm i
out of automation for the following days/weeks and re-assess, depending on the patterns we notice.
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.
And btw, thanks for the review @gziolo !
@@ -6547,6 +6547,10 @@ remark-parse@4.0.0: | |||
vfile-location "^2.0.0" | |||
xtend "^4.0.1" | |||
|
|||
rememo@^3.0.0: |
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.
The only downside of the current setup is that we need to ensure that all npm packages are referenced in package.json
in the main repository folder.
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.
True, thankfully, the ones missing get reported by Metro when yarn start
the packager so it's rather easy to spot.
Looks good! |
…ion-absolute-position Android Fix - cursor position - Return the exact location of the cursor in the editor
This PR refreshes the reference to GB's master.
npm install
inside the GB directory.Added a couple of yarn scripts (
start:reset
,clean:runtime
,clean:setup
) to help modularize and provide some shortcuts to frequently used CLI commands.