We choose the fork repository, and then submit the form of PR for development.
git clone <your forked repository>
Need to install yarn in advance
npm run bootstrap
LF is managed in the form of monorepo, and there is a dependency relationship between each package, so it is necessary to build the type and source code once before development.
npm run build:types
npm run build
develop core package
cd packages/core
npm run dev
# or skip the above "build part" and run directly
npm run dev:core
development extension
cd packages/extension
npm run dev
# or skip the above "build part" and run directly
npm run dev:extension
The line breaks between windows and mac platforms are inconsistent, under windows is CRLF, under mac is LF, so the eslint rules need to be modified under windows system: (If widows is configured to convert to LF, this item does not apply)
{
rules: {
'linebreak-style': ['error', 'unix'],
// ...
}
}
// change to
{
rules: {
'linebreak-style': ['error', process.env.NODE_ENV === 'production' ? 'unix' : 'windows'],
// ...
}
}
git clone [email protected]:didi/LogicFlow.git
# install dependencies
npm run bootstrap
# build types
npm run build:types
# Bale
npm run build
npm config set registry https://registry.npmjs.org/
npm login
# Check if you are logged in
npm whoami
lerna version patch
For the detailed usage of lerna version, see here
npm run lerna: publish
git push origin --tags