Made with create-react-library
npm install --save knotel-website-ui
import React, { Component } from "react";
import MyComponent from "knotel-website-ui";
import "knotel-website-ui/dist/index.css";
class Example extends Component {
render() {
return <MyComponent />;
}
}
- check the package.json to see what the version is
- update package.json's version to the next version e.g. 1.4.15 -> 1.4.16 (this is very important--otherwise it gets detected as the same NPM module version)
- from the root dir run
yarn run build
- manually crete a folder called "package" and copy/paste the package.json, readme.md, and dist folder into it
- from the root dir, run: tar -cvzf knotel-website-ui-v1.4.16.tgz package/
- publish
- update new-website with new reference
- fin
- update package.json to new verison
- (if never done before): invoke in bash the following to enable execution of the script
chmod +x maketar.sh
- invoke in bash:
./maketar.sh 1.6.4
where the version matches the package.json version - commit the files and push
- if this is a production release, create a new tag and include that
The salesforce team (Dheeconsulting) will provide a form element. Convert the form in src/components/ContactForm/index.js to match the form components. Do not just copy paste the form in. you will get an unstyled form.