Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Update boilerplate to be a base theme #698

Merged
merged 9 commits into from
Sep 1, 2016
Merged

Conversation

MoOx
Copy link
Owner

@MoOx MoOx commented Aug 31, 2016

Closes #529
Closes #444
Will closes #433

@thangngoc89
Copy link
Contributor

So far so good, I didn't see any different from this and the old boilerplate. Am I right ? Just out of curiosity, do you have plan to let user swap out compatible theme with 1 line of config ?

@MoOx
Copy link
Owner Author

MoOx commented Sep 1, 2016

So far so good, I didn't see any different from this and the old boilerplate.

You probably didn't look enough. There are a lot of noticeable differences if you look at the tree.

Am I right ? Just out of curiosity, do you have plan to let user swap out compatible theme with 1 line of config ?

On the long run yes, but for now we are far from that (maybe not that far but still).

@MoOx MoOx changed the title (wip) update boilerplate to be a base theme Update boilerplate to be a base theme Sep 1, 2016
@MoOx
Copy link
Owner Author

MoOx commented Sep 1, 2016

PR updated. Should be good now.


render() {
return (
<div className={ styles.container }>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is unnecessary, can we just move the styling part to AppContainer ?

Copy link
Owner Author

Choose a reason for hiding this comment

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

This is to keep a simple AppContainer without any CSS.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK. 👍

@thangngoc89
Copy link
Contributor

Except for my comments. LGTM

We encourage you to update to a similar structure if you were using the
previous one.
Main changes:

  - ``web_modules/layouts`` => ``src/layouts``
  - ``web_modules/{Components}`` => ``src/components/*``
  - ``web_modules/app/*`` => ``src/*``
  - ``web_modules/LayoutContainer`` => ``src/AppContainer.js``

Closes #529
Closes #444
To prevent issue in the future, is now accessible by doing
``import { PageContainer } from "phenomic"``.
If you want to import it with a different name, you can do it this way:
```js
import { PageContainer as PhenomicPageContainer } from "phenomic"
```
…iv>``

if a single string is passed as a child.
@MoOx MoOx merged commit cca39e3 into master Sep 1, 2016
@MoOx MoOx deleted the feat.prepare-theme-base branch September 1, 2016 09:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants