@@ -14,10 +14,16 @@ If you want to contribute but don’t know what to do, take a look at these two
14
14
15
15
## Development workflow
16
16
17
- Run Babel in watch mode and start example style guide :
17
+ Run Babel in watch mode:
18
18
19
19
``` bash
20
- npm run compile:watch & npm start
20
+ npm run compile:watch
21
+ ```
22
+
23
+ Then open a new terminal and start an example style guide:
24
+
25
+ ``` bash
26
+ npm start
21
27
```
22
28
23
29
Open [ localhost:6060] ( http://localhost:6060 ) in a browser.
@@ -54,13 +60,19 @@ First install dependencies:
54
60
npm run test:cypress:pre
55
61
```
56
62
57
- Then start Styleguidist server:
63
+ Then run Babel in watch mode:
64
+
65
+ ``` bash
66
+ npm run compile:watch
67
+ ```
68
+
69
+ Then open a new terminal and start Styleguidist server:
58
70
59
71
``` bash
60
- npm run compile:watch & npm run test:cypress:startServer
72
+ npm run test:cypress:startServer
61
73
```
62
74
63
- And, finally, in a separate terminal run tests:
75
+ And, finally, in another separate terminal run tests:
64
76
65
77
``` bash
66
78
npm run test:cypress:run
@@ -78,11 +90,11 @@ npm run test:cypress:open
78
90
- We’re using [ Prettier] ( https://github.com/prettier/prettier ) to format JavaScript, so don’t worry much about code formatting.
79
91
- Don’t commit generated files, like minified JavaScript.
80
92
- Don’t change version number and change log.
81
- - If you're updating examples other then ` examples/basic ` , you'll need to modify your watch and start commands:
93
+ - If you're updating examples other then ` examples/basic ` , you'll need to modify your start commands:
82
94
83
95
``` bash
84
- npm run compile:watch & npm run start:customised # if making changes to examples/customised
85
- npm run compile:watch & npm run start:sections # if making changes to examples/sections
96
+ npm run start:customised # if making changes to examples/customised
97
+ npm run start:sections # if making changes to examples/sections
86
98
```
87
99
88
100
See the ` scripts ` section of the top level [ package.json] ( https://github.com/styleguidist/react-styleguidist/blob/master/package.json#L135 )
0 commit comments