Skip to content
This repository was archived by the owner on Apr 11, 2019. It is now read-only.

Commit 3f34133

Browse files
committed
2 parents c992596 + e9b0888 commit 3f34133

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
- This release includes a new generator for containers that creates a graphql / apollo query and mutation if the option is selected.
66
- By selecting the graphql option when running the container generator, the user will be prompted about adding graphql queries / mutations.
7+
- Pages now have a generator to import a Container by the same name
8+
- The comments that are required for successful code generation new are prefixed with `Generator`.
79

810
## 1.0.0
911

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![Scalable Boilerplate Logo](https://github.com/RyanCCollins/cdn/blob/master/alumni-webapp/scalable-boilerplate-logo.png?raw=true)
22

3-
# NOTE:
4-
Recently, this boilerplate received a huge update. If you are using this in production, you may want to use the [Stable](https://github.com/RyanCCollins/scalable-react-boilerplate/tree/stable) branch for a bit. See the CHANGELOG for more information.
3+
# PLEASE NOTE:
4+
Recently, this boilerplate received a huge update including: GraphQL / Apollo Support, Server Rendering, Generator Refactoring, etc. If you are using this in production, you may want to use the [Stable](https://github.com/RyanCCollins/scalable-react-boilerplate/tree/stable) branch for a bit. See the [CHANGELOG](https://github.com/RyanCCollins/scalable-react-boilerplate/blob/master/CHANGELOG.md) for more information of the recent updates.
55

66
# Scalable React Boilerplate
77
[![npm version](https://badge.fury.io/js/scalable-react-boilerplate.svg)](https://badge.fury.io/js/scalable-react-boilerplate)
@@ -23,6 +23,12 @@ If this is confusing, don't fret, we've set you up with a few examples and code
2323

2424
## Example Apps
2525
Below are a few example apps that have been built with this project
26+
- Udacity Alumni App
27+
- [See the Code](https://github.com/udacityalumni/alumni-client)
28+
- Live App coming soon
29+
- RyanCollins.io v3.0
30+
- [See the Code](https://github.com/RyanCCollins/ryancollinsio)
31+
- Live App coming soon
2632
- React Weekly
2733
- [See the Code](https://github.com/RyanCCollins/react-weekly)
2834
- [See the Live App](http://www.reactweekly.co/)
@@ -35,9 +41,6 @@ Below are a few example apps that have been built with this project
3541
- Meetup Event Planner
3642
- [See the Code](https://github.com/RyanCCollins/meetup-event-planner)
3743
- [See the Live App](http://meetup-event-planner.herokuapp.com/)
38-
- Udacity Alumni App
39-
- [See the Code](https://github.com/udacityalumni/alumni-client)
40-
- Live App coming soon
4144

4245
## Experimental Features
4346
### Server Rendering
@@ -188,9 +191,11 @@ The boilerplate contains generators for easy project scaffolding. At the moment
188191
- SCSS modules
189192
- Tests for all of the above
190193
- README.md file that documents the component
194+
- GraphQL: If you want, the generator can add collocated queries and mutations using GraphQL / ApolloClient. Accept the option to use this feature.
191195
- Page `npm run generate:page`
192196
- Name: The name of the route, i.e. Home, which gets converted to `HomePage`
193197
- Route: the route that corresponds to the page
198+
- Container Import: Most of the time, a Route exists only to import a container by the same name. This is enabled by default, so make sure to run the container generator if you want to use this feature.
194199

195200
To run the generators with a list of options, run
196201
```
@@ -210,17 +215,13 @@ where <type_of_component> is one of: component, container or page.
210215
The generators use the same feature-first file organization as the rest of the project, encapsulating components within their own folder.
211216

212217
### **Gotchas**
213-
In order to get the import / export to work, the generator does some pattern matching of the comments in the files to place the new imports. Just don't delete the comments within the root level index.js file in each directory and things will work fine!
218+
In order to get the import / export to work, the generator does some pattern matching of the comments in the files to place the new imports. Just don't delete the any comment that is prefixed with GENERATOR and things will work great.
214219

215220
From `app/src/container/index.js` or `app/src/component/index.js`
216221
```
217-
// ... Other components here
218-
import MyComponent from 'MyComponent';
219-
220-
export {
221-
// ... Other components here
222-
MyComponent
223-
}
222+
/* GENERATOR: Assemble all containers for export */
223+
export LandingContainer from './LandingContainer';
224+
export AppContainer from './AppContainer';
224225
```
225226

226227
### Configuring your own generators

0 commit comments

Comments
 (0)