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

Initial integration with Umberto #428

Merged
merged 10 commits into from
Apr 27, 2017
Merged

Initial integration with Umberto #428

merged 10 commits into from
Apr 27, 2017

Conversation

m-turek
Copy link
Contributor

@m-turek m-turek commented Apr 26, 2017

Internal: Initial integration with Umberto. Example directory structure for documentation. Closes #427.

@m-turek m-turek requested a review from Reinmar April 26, 2017 07:59
.gitignore Outdated
@@ -8,4 +8,6 @@ node_modules/**
build/**
coverage/**
packages/**
umberto-output/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep this in build/docs/?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I will change default output path to be build/docs/. Also any project can change the output path by creating a custom config file for hexo.

package.json Outdated
@@ -41,7 +41,8 @@
"gulp": "^3.9.0",
"guppy-pre-commit": "^0.4.0",
"lerna": "^2.0.0-rc.1",
"mgit2": "^0.5.1"
"mgit2": "^0.5.1",
"umberto": "0.0.6"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use ^ ranges.

umberto.json Outdated
@@ -0,0 +1,80 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking... maybe it would be cleaner if this file was kept in docs/? There are already many files in the root dir of every package.

@Reinmar
Copy link
Member

Reinmar commented Apr 26, 2017

The commit message (the thing which starts with "Internal:...") should be in the PR body, not in the title. See other PRs for examples.

gulpfile.js Outdated
} );
} );

gulp.task( 'umberto', () => {
return require( 'umberto' )
.buildSingleProject( true );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's not a part of this PR, but we used to passing objects instead of flags as the objects are more explicit in such situations and easier to understand.

Consider this:

.buildSingleProject( { clean: true } );

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I wanted to comment on this too. It's indeed not part of this PR though :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, thx

@m-turek m-turek changed the title Internal: Initial integration with Umberto. Example directory structure for doc… Initial integration with Umberto. Example directory structure for doc… Apr 26, 2017
@Reinmar Reinmar changed the title Initial integration with Umberto. Example directory structure for doc… Initial integration with Umberto Apr 26, 2017
@Reinmar
Copy link
Member

Reinmar commented Apr 26, 2017

OK, it seems that we're running into lerna/lerna#789. I disabled concurrency for now. It seems to slow down lerna bootstrap from 140s to 250s, but now Lerna has a lot more packages to install (this PR introduces them) so there may not be a difference really. I need to check that on master to have comparable results.

However, it made me think that perhaps we shouldn't install umberto by default. This slows down the whole process significantly as this entire tool is huuge. Maybe, we could have it as an optional dependency. I'd also move there ckeditor5-dev-env which is also pretty big. I need to think on that.

@Reinmar Reinmar merged commit f87cc9b into master Apr 27, 2017
@Reinmar Reinmar deleted the t/427 branch April 27, 2017 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants