We'd love for you to help develop improvements to Accord Project technology! Please refer to the Accord Project Development guidelines we'd like you to follow.
The packages have all been created by running yarn create react-app %PROJECT_NAME% --template npm-library
in the packages directory.
After running the command above, you need to:
cd MY_PACKAGE
node ./prepare.js
- Edit the
build
andbuild:lib
targets inpackage.json
so that the library is built when build is run, rather than the test app
"build:app": "react-scripts build",
"build": "npx rollup -c",
The source code for libraries should be placed in the src/lib
folder.
npm install -g lerna
lerna clean && lerna bootstrap && lerna run build
cd packages/storybook
npm run storybook
While Storybook is running, if you make a change in a package that you want to see reflected in the demo, in a new terminal:
cd packages/<PACKAGE>
npm run build
Storybook will reload with the applied changes.
Releases are made manually by maintainers through GitHub. Version tags follow semantic-versioning conventions with a v
prefix, for example v1.2.3
.
A markdown changelog that includes the contributors and links to changes can be generated automatically through the lerna-changelog
tool.
- You will need a GitHub Personal Access Token with
public_repo
permissions. - Review all merged PRs since the last release to ensure that they are appropriately labelled with one of the following labels.
Type: Breaking Change 💥
Type: Enhancement ✨
Type: Bug 🐛
Type: Chore 🧼
Type: Documentation 📝
Note that
Type: Styling
andType: Feature Request
are not used, you should useType: Enhancement
instead.
- Run the following command from the root folder of an up-to-date local clone of this repository to generate the markdown content.
GITHUB_AUTH=[YOUR_PERSONAL_ACCESS_TOKEN] npm run changelog:unreleased
- Copy the markdown output from the terminal to the GitHub release editor.