cozy-bar 8.7.4 → 8.9.0

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 CHANGED
@@ -12,9 +12,9 @@
12
12
  [Cozy] is a platform that brings all your web services in the same private space. With it, your webapps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one's tracking you.
13
13
 
14
14
 
15
- ## What's cozy-bar.js?
15
+ ## What's cozy-bar?
16
16
 
17
- `cozy-bar.js` is a javascript library made by Cozy. It enables the _CozyBar_ component in your application. This component is a banner on the top of your application, responsible of cross-apps navigation, user facilities, intents, etc.
17
+ `cozy-bar` is a javascript library made by Cozy. It enables the _CozyBar_ component in your application. This component is a banner on the top of your application, responsible of cross-apps navigation, user facilities, intents, etc.
18
18
 
19
19
 
20
20
  ## Use
@@ -129,16 +129,41 @@ Then you have to reload the page.
129
129
  flag(bar.debug, true)
130
130
  ```
131
131
 
132
- ## Contribute
132
+ Development mode
133
+ ----------
133
134
 
134
- If you want to work on cozy-client-js itself and submit code modifications, feel free to open pull-requests! See the [contributing guide][contribute] for more information about this repository structure, testing, linting and how to properly open pull-requests.
135
+ In order to add new features to the cozy-bar v7 while working on another cozy-app:
135
136
 
137
+ * Please ensure your app has the latest v7-stable `cozy-bar` version
136
138
 
137
- ## Community
139
+ * Please ensure your app has at least the 6.3.4 `cozy-scripts` version
140
+
141
+ * Then, follow these steps:
142
+
143
+ `$ yarn link` // in cozy-bar
144
+
145
+ `$ rlink cozy-bar` // in the cozy-app
146
+
147
+ `$ yarn start` // in cozy-bar
148
+
149
+ `$ yarn start` // in the cozy-app
150
+
151
+ ### How does it work?
138
152
 
139
- ### Maintainer
153
+ When Drive is building, the cozy-bar assets are defined dynamically if __STACK_ASSETS__ = true
154
+ [inside the browser file](https://github.com/cozy/cozy-drive/blob/master/src/drive/targets/browser/index.ejs#L27-L32)
140
155
 
141
- The lead maintainer for cozy-bar.js is [@CPatchane](https://github.com/CPatchane), send him/her a :beers: to say hello!
156
+ In [dev mode on webpack, __STACK_ASSETS__ = false](https://github.com/cozy/create-cozy-app/blob/532dc9848526d48b749a8fd4fecdce1c9a6880c2/packages/cozy-scripts/config/webpack.environment.dev.js#L27)
157
+
158
+ [In that case, the cozy-bar is injected](https://github.com/cozy/create-cozy-app/blob/532dc9848526d48b749a8fd4fecdce1c9a6880c2/packages/cozy-scripts/config/webpack.environment.dev.js#L35-L57)
159
+
160
+ Contribute
161
+ ----------
162
+
163
+ If you want to work on cozy-bar itself and submit code modifications, feel free to open pull-requests! See the [contributing guide][contribute] for more information about this repository structure, testing, linting and how to properly open pull-requests.
164
+
165
+
166
+ ## Community
142
167
 
143
168
 
144
169
  ### Get in touch
@@ -153,7 +178,7 @@ You can reach the Cozy Community by:
153
178
 
154
179
  ## Licence
155
180
 
156
- cozy-bar.js is developed by Cozy Cloud and distributed under the [MIT].
181
+ cozy-bar is developed by Cozy Cloud and distributed under the [MIT].
157
182
 
158
183
 
159
184