Using the changed styles in platform-client
Make the changes you need in the css in the Pattern Library.
If you have made changes to the html or added new classes, you need to make those changes in the html in the Platform Client as well
Commit and push to your fork of the Pattern Library.
In the directory where you cloned the platform-client repository for local development, go to package.json.
Find the entry for ushahidi-pattern-library
Change to the url to the new repository + the new pattern library commit id in this format: "ushahidi-platform-pattern-library":"git://github.com/{your-own org}/ushahidi-platform-pattern-library-sivico.git#{commit}"
Do npm install in the platform-client
Go to platform-client/node_modules/ushahidi-pattern-library
Run npm install there too (this step is normally made by npm when using the Ushahidi-release so you need to do it yourself when using your own code)
Now the Pattern Library is available in the platform-client development environment. To make the changes visible in your development environment, run gulp build in the platform-client again.
The css changes should be visible in the client now .
Pattern Library: publishing a new version in your npm account and using it in the platform web client
Please note, the complete, most up to date information on how to publish and use npm is available in the npm documentation, https://docs.npmjs.com .
Go to package.json in your version of the Pattern Library
Change the name of the package to something else (for example "YourProjectName-Pattern-Library")
Keep the version number unless you already made changes. If you made any changes, you should bump the version number.
Publish the package to npm through npm publish
In platform-client, go to the file: package.json
Find “ushahidi-pattern-library” and change to "YourProjectName-Pattern-Library": "v3.12.4" (substitute version number to the one you published)
Do npm-install and gulp build again
Each time the pattern-library is updated:
Change the version-number in YourProjectName-Pattern-Librarys package.json
Do npm publish
Update to the new version-number in package.json in platform-client
Do npm install and gulp build in the platform-client again.