You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/SETUP.md
+12-17Lines changed: 12 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,31 +6,29 @@ Clone the repository and run the following commands from the root directory
6
6
#### 1. Go to the fe-theme repo location in your terminal and do
7
7
```
8
8
npm install
9
-
```
10
-
```
11
9
npm start
12
-
13
10
```
11
+
14
12
#### 2. Open terminal and Go to any ```working react application``` in your system, where you want to ```implement FE-Theme```
15
13
16
14
```js
17
15
npm link {PATH}/fe-theme/ {PATH}/fe-theme/node_modules/styled-components/ {PATH}/fe-theme/node_modules/react {PATH}/fe-theme/node_modules/react-dom
18
16
```
19
-
**Note:** PATH is the location of cloned fe-theme folder
17
+
**Note:** PATH is the location of cloned fe-theme folder
20
18
21
19
#### 3. Last step to get config folder(fe-theme) contains config files of each component in your project repo
22
20
23
-
Create config file for all the component of fe-theme
21
+
Create config file for all the component of fe-theme
24
22
```js
25
-
COMPONENT_CONFIG_PATH=./{location of fe-theme configuration folder in your application} ENVI=local CURRENT_APP_DIR=$(pwd) npm run theme-prepare --prefix ./node_modules/fe-theme
23
+
COMPONENT_CONFIG_PATH=./{Location} ENVI=local CURRENT_APP_DIR=$(pwd) npm run theme-prepare --prefix ./node_modules/fe-theme
26
24
```
27
25
28
-
Create config file for a single component of fe-theme
26
+
Create config file for a single component of fe-theme
29
27
```js
30
-
COMPONENET_NAME=button COMPONENT_CONFIG_PATH=./{location of fe-theme configuration folder in your application} ENVI=local CURRENT_APP_DIR=$(pwd) npm run theme-prepare --prefix ./node_modules/fe-theme
28
+
COMPONENET_NAME=button COMPONENT_CONFIG_PATH=./{Location} ENVI=local CURRENT_APP_DIR=$(pwd) npm run theme-prepare --prefix ./node_modules/fe-theme
31
29
```
32
30
**Note:**
33
-
```COMPONENT_CONFIG_PATH``` is a variable and setup it properly.
31
+
```COMPONENT_CONFIG_PATH``` is the ***Location*** of ***fe-theme-config*** folder in your application.
Yeah, We have created config files Mannually but You can also generate config files automatically using command line [Check Commands](./.github/COMMAND.md)
138
145
139
-
#### 4. Pass the newly created theme file in init function
146
+
#### 2. Pass the newly created theme file in init function
0 commit comments