Skip to content

Commit cf5fd87

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 7a5fbd3 + 95e40ed commit cf5fd87

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Run this to [increase the limit](http://stackoverflow.com/questions/16748737/gru
3737
`echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p`
3838

3939
**On Windows:**
40-
1. **Install [Python 2.7](https://www.python.org/downloads/)**. Browser-sync (and various other Node modules) rely on node-gyp, which requires Python on Windows.
41-
2. **Install C++ Compiler**. [Visual Studio Express](https://www.visualstudio.com/en-US/products/visual-studio-express-vs) comes bundled with a free C++ compiler. Or, if you already have Visual Studio installed: Open Visual Studio and go to File -> New -> Project -> Visual C++ -> Install Visual C++ Tools for Windows Desktop. The C++ compiler is used to compile browser-sync (and perhaps other Node modules).
40+
1. **Install [Python 2.7](https://www.python.org/downloads/)**. Browser-sync (and various other Node modules) rely on node-gyp, which requires Python on Windows.
41+
2. **Install C++ Compiler**. [Visual Studio Express](https://www.visualstudio.com/en-US/products/visual-studio-express-vs) comes bundled with a free C++ compiler. Or, if you already have Visual Studio installed: Open Visual Studio and go to File -> New -> Project -> Visual C++ -> Install Visual C++ Tools for Windows Desktop. The C++ compiler is used to compile browser-sync (and perhaps other Node modules).
4242

4343
##FAQ
4444
###Why does this exist?
@@ -118,21 +118,21 @@ No problem. Reference your CSS file in index.html, and add a step to the build p
118118

119119
### I just want an empty starter kit.
120120
This starter kit includes an example app so you can see how everything hangs together on a real app. To create an empty project, you can delete the following:
121-
1. Components in src/components
122-
2. Styles in src/styles/styles.scss
123-
3. Delete files in src/businessLogic
121+
1. Components in src/components
122+
2. Styles in src/styles/styles.scss
123+
3. Delete files in src/businessLogic
124124

125125
Don't want to use Redux? See the next question for some steps on removing Redux.
126126

127127
### Do I have to use Redux?
128128
Nope. Redux is useful for applications with more complex data flows. If your app is simple, Redux is overkill. Remove Redux like this:
129129

130-
1. Delete the following folders and their contents: actions, constants, reducers, containers, store
131-
2. Uninstall Redux related packages: `npm uninstall redux react-redux redux-thunk`
132-
3. Remove Redux related imports from /src/index.js: `import configureStore from './store/configureStore';`, `import App from './containers/App';` and `import { Provider } from 'react-redux';`
133-
4. Remove this line from /src/index.js: `const store = configureStore();`
134-
5. Delete components in /components and create a new empty component.
135-
6. Replace the call to `<Provider><App/></Provider>` in /src/index.js with a call to the new top level component you just created in step 5.
130+
1. Delete the following folders and their contents: actions, constants, reducers, containers, store
131+
2. Uninstall Redux related packages: `npm uninstall redux react-redux redux-thunk`
132+
3. Remove Redux related imports from /src/index.js: `import configureStore from './store/configureStore';`, `import App from './containers/App';` and `import { Provider } from 'react-redux';`
133+
4. Remove this line from /src/index.js: `const store = configureStore();`
134+
5. Delete components in /components and create a new empty component.
135+
6. Replace the call to `<Provider><App/></Provider>` in /src/index.js with a call to the new top level component you just created in step 5.
136136

137137
### How do I deploy this?
138138
`npm run build`. This will build the project for production. It does the following:
@@ -157,9 +157,9 @@ Since browsers don't currently support ES6, we're using Babel to compile our ES6
157157
Also note that no actual physical files are written to the filesystem during the dev build. **For performance, all files exist in memory when served from the webpack server.**. Physical files are only written when you run `npm run build`.
158158

159159
**Tips for debugging via sourcemaps:**
160-
1. Browsers vary in the way they allow you to view the original source. Chrome automatically shows the original source if a sourcemap is available. Safari, in contrast, will display the minified source and you'll [have to cmd+click on a given line to be taken to the original source](http://stackoverflow.com/questions/19550060/how-do-i-toggle-source-mapping-in-safari-7).
161-
2. Do **not** enable serving files from your filesystem in Chrome dev tools. If you do, Chrome (and perhaps other browsers) may not show you the latest version of your code after you make a source code change. Instead **you must close the source view tab you were using and reopen it to see the updated source code**. It appears Chrome clings to the old sourcemap until you close and reopen the source view tab. To clarify, you don't have to close the actual tab that is displaying the app, just the tab in the console that's displaying the source file that you just changed.
162-
3. If the latest source isn't displaying the console, force a refresh. Sometimes Chrome seems to hold onto a previous version of the sourcemap which will cause you to see stale code.
160+
1. Browsers vary in the way they allow you to view the original source. Chrome automatically shows the original source if a sourcemap is available. Safari, in contrast, will display the minified source and you'll [have to cmd+click on a given line to be taken to the original source](http://stackoverflow.com/questions/19550060/how-do-i-toggle-source-mapping-in-safari-7).
161+
2. Do **not** enable serving files from your filesystem in Chrome dev tools. If you do, Chrome (and perhaps other browsers) may not show you the latest version of your code after you make a source code change. Instead **you must close the source view tab you were using and reopen it to see the updated source code**. It appears Chrome clings to the old sourcemap until you close and reopen the source view tab. To clarify, you don't have to close the actual tab that is displaying the app, just the tab in the console that's displaying the source file that you just changed.
162+
3. If the latest source isn't displaying the console, force a refresh. Sometimes Chrome seems to hold onto a previous version of the sourcemap which will cause you to see stale code.
163163

164164
### I'm getting an error when running npm install: Failed to locate "CL.exe"
165165
On Windows, you need to install extra dependencies for browser-sync to build and install successfully. Follow the getting started steps above to assure you have the necessary dependencies on your machine.

0 commit comments

Comments
 (0)