@commerce7/admin-ui 1.11.38 → 1.11.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -16
- package/lib/build.js +1 -1
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -81,48 +81,59 @@ Examples used here are admin and admin-ui.
|
|
|
81
81
|
|
|
82
82
|
```
|
|
83
83
|
In admin-ui terminal
|
|
84
|
-
|
|
85
|
-
2. npm link
|
|
84
|
+
1. npm link
|
|
86
85
|
```
|
|
87
86
|
|
|
88
87
|
```
|
|
89
88
|
In admin terminal
|
|
90
|
-
|
|
89
|
+
2. npm link @commerce7/admin-ui@{version-number}
|
|
91
90
|
```
|
|
92
91
|
|
|
93
92
|
```
|
|
94
|
-
In VS code
|
|
95
|
-
|
|
93
|
+
In VS code
|
|
94
|
+
3. Restart VS code
|
|
95
|
+
4.After rebooting VS code, the @commerce7/admin-ui folder in the admin/@node_modules should have an arrow icon beside it. This shows it is properly linked.
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
```
|
|
99
|
-
In admin
|
|
100
|
-
|
|
99
|
+
In admin
|
|
100
|
+
5. In order to test locally, add **path.resolve('./node_modules/@commerce7/admin-ui/node_modules')** to webpack.{project-name}.config.js. Ex: webpack.admin.dev.js
|
|
101
|
+
6. Run npm run frontend-admin
|
|
101
102
|
```
|
|
102
103
|
|
|
103
104
|
```
|
|
104
|
-
In
|
|
105
|
-
|
|
105
|
+
In admin-ui
|
|
106
|
+
5. When you change something in admin-ui and want to see the changes in admin, you need to run **npm run build** in admin-ui to sync with admin. After you run **npm run build**, when you have symbolic link, the admin page will automatically be refreshed and will get the latest changes.
|
|
106
107
|
```
|
|
107
108
|
|
|
108
|
-
After rebooting VS code the @commerce7 admin-ui folder should have an arrow icon beside it. This shows it is properly linked.
|
|
109
|
-
|
|
110
109
|
### Unlinking
|
|
111
110
|
|
|
112
111
|
```
|
|
112
|
+
|
|
113
113
|
In admin terminal
|
|
114
|
-
|
|
114
|
+
1. npm unlink --no-save @commerce7/admin-ui@{version-number}
|
|
115
|
+
|
|
115
116
|
```
|
|
116
117
|
|
|
117
118
|
```
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
|
|
120
|
+
In admin-ui terminal
|
|
121
|
+
2. npm unlink @commerce7/admin-ui@{version-number}
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
|
|
120
125
|
```
|
|
121
126
|
|
|
127
|
+
In VS code
|
|
128
|
+
3. Restart VS code
|
|
129
|
+
|
|
122
130
|
```
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
|
|
123
134
|
In VS code in admin project
|
|
124
|
-
|
|
125
|
-
|
|
135
|
+
4. Run npm install
|
|
136
|
+
|
|
126
137
|
```
|
|
127
138
|
|
|
128
139
|
After restarting the arrow icon should be removed. This means the project has successfully be unlinked from the local version of admin ui.
|