Skip to content

Commit c3d687c

Browse files
committed
feat(scripts): add script for easy installation
1 parent 68b4901 commit c3d687c

File tree

7 files changed

+15
-6
lines changed

7 files changed

+15
-6
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_js:
33
- "lts/*"
44
cache: yarn
55
script:
6+
- yarn setup
67
- yarn test
78
- yarn deploy
89
os:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ other folders. Feel free to look at the `package.json` files in each folder to s
4040
how this has been configured.
4141

4242
#### General
43+
`yarn setup`: Installs all dependencies in each folder.
4344
`yarn start`: Starts the React packager with Webpack hot reload enabled for development.
4445
`yarn start:electron`: Same as above, additionally opening the Electron wrapper in development mode.
4546
`yarn start:prebuilt`: Builds the app for deployment and begins serving it on localhost:3000 statically.

electron-wrapper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "electron-wrapper",
33
"productName": "ReactTypescriptBoilerplateExample",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"description": "Just a simple electron wrapper for my boilerplate.",
66
"main": "src/index.ts",
77
"scripts": {

functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "functions",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"license": "MIT",
55
"author": "Austin Peterson <[email protected]> (https://blog.akpwebdesign.com)",
66
"scripts": {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "react-electron-typescript-firebase-boilerplate",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"private": true,
55
"license": "MIT",
66
"author": "Austin Peterson <[email protected]> (https://blog.akpwebdesign.com)",
77
"scripts": {
8+
"setup": "cd react && yarn && cd ../functions && yarn && cd ../electron-wrapper && yarn",
89
"start": "yarn react:start",
910
"start:electron": "yarn react:start:electron",
1011
"start:prebuilt": "yarn react:start:prebuilt",

react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-boilerplate",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"private": true,
55
"license": "MIT",
66
"author": "Austin Peterson <[email protected]> (https://blog.akpwebdesign.com)",
@@ -114,7 +114,7 @@
114114
],
115115
"globals": {
116116
"ts-jest": {
117-
"tsConfigFile": "C:\\code\\github.com\\DataAnalyticsServices\\need-a-name\\tsconfig.test.json"
117+
"tsConfigFile": "tsconfig.test.json"
118118
}
119119
}
120120
},

react/src/App.test.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import * as React from 'react';
22
import * as ReactDOM from 'react-dom';
3+
import { Provider } from 'react-redux';
34
import App from './App';
5+
import store from './utils/store';
46

57
it('renders without crashing', () => {
68
const div = document.createElement('div');
7-
ReactDOM.render(<App />, div);
9+
ReactDOM.render((
10+
<Provider store={store}>
11+
<App />
12+
</Provider>)
13+
, div);
814
});

0 commit comments

Comments
 (0)